diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-10-15 01:10:27 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-10-15 01:10:27 +0000 |
commit | 57a8279442e7269e41a77448f9eccdcbe555168a (patch) | |
tree | 8bdc3888b1c1daea7d74c55f1953e9be5199d3ce /libdm/misc/dm-ioctl.h | |
parent | 2c33c8b80c7754a56c63166ab2761c3adc984d02 (diff) | |
download | lvm2-57a8279442e7269e41a77448f9eccdcbe555168a.tar.gz lvm2-57a8279442e7269e41a77448f9eccdcbe555168a.tar.xz lvm2-57a8279442e7269e41a77448f9eccdcbe555168a.zip |
Add --setuuid to dmsetup rename.
Add dm_task_set_newuuid to set uuid of mapped device post-creation. (pjones)
Diffstat (limited to 'libdm/misc/dm-ioctl.h')
-rw-r--r-- | libdm/misc/dm-ioctl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h index c5b3860a..f21272b0 100644 --- a/libdm/misc/dm-ioctl.h +++ b/libdm/misc/dm-ioctl.h @@ -46,7 +46,7 @@ * Remove a device, destroy any tables. * * DM_DEV_RENAME: - * Rename a device. + * Rename a device or set its uuid if none was previously supplied. * * DM_SUSPEND: * This performs both suspend and resume, depending which flag is @@ -269,9 +269,9 @@ enum { #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) #define DM_VERSION_MAJOR 4 -#define DM_VERSION_MINOR 17 +#define DM_VERSION_MINOR 19 #define DM_VERSION_PATCHLEVEL 0 -#define DM_VERSION_EXTRA "-ioctl (2010-03-05)" +#define DM_VERSION_EXTRA "-ioctl (2010-10-14)" /* Status bits */ #define DM_READONLY_FLAG (1 << 0) /* In/Out */ @@ -324,4 +324,10 @@ enum { */ #define DM_UEVENT_GENERATED_FLAG (1 << 13) /* Out */ +/* + * If set, rename changes the uuid not the name. Only permitted + * if no uuid was previously supplied: an existing uuid cannot be changed. + */ +#define DM_NEW_UUID_FLAG (1 << 14) /* In */ + #endif /* _LINUX_DM_IOCTL_H */ |