Skip to content

Commit 61931c0

Browse files
committed
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 <[email protected]>
1 parent 0cede37 commit 61931c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/md/dm-ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid)
20442044

20452045
return r;
20462046
}
2047-
2047+
EXPORT_SYMBOL_GPL(dm_copy_name_and_uuid);
20482048

20492049
/**
20502050
* dm_early_create - create a mapped device in early boot.

include/uapi/linux/dm-ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ enum {
272272
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
273273

274274
#define DM_VERSION_MAJOR 4
275-
#define DM_VERSION_MINOR 42
275+
#define DM_VERSION_MINOR 43
276276
#define DM_VERSION_PATCHLEVEL 0
277-
#define DM_VERSION_EXTRA "-ioctl (2020-02-27)"
277+
#define DM_VERSION_EXTRA "-ioctl (2020-10-01)"
278278

279279
/* Status bits */
280280
#define DM_READONLY_FLAG (1 << 0) /* In/Out */

0 commit comments

Comments
 (0)