dm: export dm_copy_name_and_uuid

Allow DM targets to access the configured name and uuid.
Also, bump DM ioctl version.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
Mike Snitzer
2020-10-01 15:00:56 -04:00
parent 0cede372ce
commit 61931c0ee9
2 changed files with 3 additions and 3 deletions

View File

@@ -2044,7 +2044,7 @@ out:
return r; return r;
} }
EXPORT_SYMBOL_GPL(dm_copy_name_and_uuid);
/** /**
* dm_early_create - create a mapped device in early boot. * dm_early_create - create a mapped device in early boot.

View File

@@ -272,9 +272,9 @@ enum {
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4 #define DM_VERSION_MAJOR 4
#define DM_VERSION_MINOR 42 #define DM_VERSION_MINOR 43
#define DM_VERSION_PATCHLEVEL 0 #define DM_VERSION_PATCHLEVEL 0
#define DM_VERSION_EXTRA "-ioctl (2020-02-27)" #define DM_VERSION_EXTRA "-ioctl (2020-10-01)"
/* Status bits */ /* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */ #define DM_READONLY_FLAG (1 << 0) /* In/Out */