Commit f0457aba authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

Revert "UBUNTU: SAUCE: dm: introduce a target_ioctl op to allow target specific ioctls"

This reverts commit fac8e7e04e5649ff40cb920385c95c7449a4f6f9.

BugLink: http://bugs.launchpad.net/bugs/1538618Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent ae47d760
......@@ -610,15 +610,6 @@ static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode,
if (r < 0)
return r;
if (tgt->type->target_ioctl) {
int res = tgt->type->target_ioctl(tgt, cmd, arg);
if (res != -ENOTTY) {
r = res;
goto out;
}
}
if (r > 0) {
/*
* Target determined this ioctl is being issued against
......
......@@ -81,8 +81,6 @@ typedef int (*dm_message_fn) (struct dm_target *ti, unsigned argc, char **argv);
typedef int (*dm_prepare_ioctl_fn) (struct dm_target *ti,
struct block_device **bdev, fmode_t *mode);
typedef int (*dm_target_ioctl_fn) (struct dm_target *ti, unsigned int cmd,
unsigned long arg);
/*
* These iteration functions are typically used to check (and combine)
......@@ -159,7 +157,6 @@ struct target_type {
dm_status_fn status;
dm_message_fn message;
dm_prepare_ioctl_fn prepare_ioctl;
dm_target_ioctl_fn target_ioctl;
dm_busy_fn busy;
dm_iterate_devices_fn iterate_devices;
dm_io_hints_fn io_hints;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment