Skip to content

Commit

Permalink
dm: export dm_copy_name_and_uuid
Browse files Browse the repository at this point in the history
Allow DM targets to access the configured name and uuid.
Also, bump DM ioctl version.

Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Oct 1, 2020
1 parent 0cede37 commit 61931c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,7 @@ int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid)

return r;
}

EXPORT_SYMBOL_GPL(dm_copy_name_and_uuid);

/**
* dm_early_create - create a mapped device in early boot.
Expand Down
4 changes: 2 additions & 2 deletions include/uapi/linux/dm-ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,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 42
#define DM_VERSION_MINOR 43
#define DM_VERSION_PATCHLEVEL 0
#define DM_VERSION_EXTRA "-ioctl (2020-02-27)"
#define DM_VERSION_EXTRA "-ioctl (2020-10-01)"

/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */
Expand Down

0 comments on commit 61931c0

Please sign in to comment.