This constant is useful elsewhere, too. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/devmapper.c | 3 --- libmultipath/devmapper.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index 573fc75cfa54..f112e1cb0e66 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -30,9 +30,6 @@ #define MAX_WAIT 5 #define LOOPS_PER_SEC 5 -#define UUID_PREFIX "mpath-" -#define UUID_PREFIX_LEN 6 - static int dm_conf_verbosity; #ifdef LIBDM_API_DEFERRED diff --git a/libmultipath/devmapper.h b/libmultipath/devmapper.h index 62e14d1c0b97..558e6914074f 100644 --- a/libmultipath/devmapper.h +++ b/libmultipath/devmapper.h @@ -24,6 +24,9 @@ #define MPATH_UDEV_NO_PATHS_FLAG 0 #endif +#define UUID_PREFIX "mpath-" +#define UUID_PREFIX_LEN (sizeof(UUID_PREFIX) - 1) + void dm_init(int verbosity); void libmp_dm_init(void); void libmp_udev_set_sync_support(int on); -- 2.15.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel