dm: error return error for discards
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Aug 2010 03:14:14 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:14 +0000 (04:14 +0100)
commit38e1b257fd7b4f3eee667d29a5e44ec15e253c1c
treec5b8d853de330cb2db9fefc8588e283a1916b934
parent3fd5d48027181168ce85e8094b926aeb9f34c556
dm: error return error for discards

Have the error target respond to a discard request with a hard -EIO
rather than fail the request with -EOPNOTSUPP.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-target.c