From cda0fa2a7bb0cadaedc526a7d4e2f3d9fb3c1319 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Mon, 11 Mar 2013 09:27:39 -0700 Subject: [PATCH] LU-2190 utils: Use LDD_PREFIX in LDD_*_PROP macros This patch replaces the hard coded "lustre:" string used in the LDD_*_PROP macro definitions with the LDD_PREFIX macro. This is functionally equivalent, but eases the burden if the prefix string is ever changed (and subjectively makes the code easier to read). Signed-off-by: Prakash Surya Change-Id: Ief0e710b90cf922eb4d4cc8a162ee1b0d21317b4 Reviewed-on: http://review.whamcloud.com/5671 Tested-by: Hudson Reviewed-by: Alex Zhuravlev Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/utils/mount_utils_zfs.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lustre/utils/mount_utils_zfs.c b/lustre/utils/mount_utils_zfs.c index 79c4e94..5edc8e1 100644 --- a/lustre/utils/mount_utils_zfs.c +++ b/lustre/utils/mount_utils_zfs.c @@ -34,15 +34,15 @@ #include /* Persistent mount data is stored in these user attributes */ -#define LDD_PREFIX "lustre:" -#define LDD_VERSION_PROP "lustre:version" -#define LDD_FLAGS_PROP "lustre:flags" -#define LDD_INDEX_PROP "lustre:index" -#define LDD_FSNAME_PROP "lustre:fsname" -#define LDD_SVNAME_PROP "lustre:svname" -#define LDD_UUID_PROP "lustre:uuid" -#define LDD_USERDATA_PROP "lustre:userdata" -#define LDD_MOUNTOPTS_PROP "lustre:mountopts" +#define LDD_PREFIX "lustre:" +#define LDD_VERSION_PROP LDD_PREFIX "version" +#define LDD_FLAGS_PROP LDD_PREFIX "flags" +#define LDD_INDEX_PROP LDD_PREFIX "index" +#define LDD_FSNAME_PROP LDD_PREFIX "fsname" +#define LDD_SVNAME_PROP LDD_PREFIX "svname" +#define LDD_UUID_PROP LDD_PREFIX "uuid" +#define LDD_USERDATA_PROP LDD_PREFIX "userdata" +#define LDD_MOUNTOPTS_PROP LDD_PREFIX "mountopts" /* This structure is used to help bridge the gap between the ZFS * properties Lustre uses and their corresponding internal LDD fields. -- 1.8.3.1