]> git.baikalelectronics.ru Git - kernel.git/commit
dm ioctl: allow rename to fill empty uuid
authorPeter Jones <pjones@redhat.com>
Thu, 13 Jan 2011 19:59:47 +0000 (19:59 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 19:59:47 +0000 (19:59 +0000)
commit2af346ae02f10d5effe8d6ad886019fc98301909
tree6b6ca2c400b7a6e09da46b051c177317316f0b93
parente8886e275f93fe042446f94e709593f79c7ac1fc
dm ioctl: allow rename to fill empty uuid

Allow the uuid of a mapped device to be set after device creation.
Previously the uuid (which is optional) could only be set by
DM_DEV_CREATE.  If no uuid was supplied it could not be set later.

Sometimes it's necessary to create the device before the uuid is known,
and in such cases the uuid must be filled in after the creation.

This patch extends DM_DEV_RENAME to accept a uuid accompanied by
a new flag DM_UUID_FLAG.  This can only be done once and if no
uuid was previously supplied.  It cannot be used to change an
existing uuid.

DM_VERSION_MINOR is also bumped to 19 to indicate this interface
extension is available.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c
include/linux/dm-ioctl.h