dm ioctl: forbid multiple device specifiers
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:06 +0000 (12:32 +0100)
commit759dea204cce9f1fc2a5d00ea25211299fc7a4a0
tree3ddbfdc0c4cb97317ea0d0d7bb6879fcac72b840
parentba2e19b0f4ccd6920fe175a86521ff18ede260cb
dm ioctl: forbid multiple device specifiers

Exactly one of name, uuid or device must be specified when referencing
an existing device.  This removes the ambiguity (risking the wrong
device being updated) if two conflicting parameters were specified.
Previously one parameter got used and any others were ignored silently.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c