]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit197f17dc9bebd482df3a08a24b6cc2bbf12753a0
tree3ddbfdc0c4cb97317ea0d0d7bb6879fcac72b840
parentdab8c59961625efb612c5467028d24bde4cdae94
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