Whamcloud - gitweb
LU-2190 utils: Use LDD_PREFIX in LDD_*_PROP macros
authorPrakash Surya <surya1@llnl.gov>
Mon, 11 Mar 2013 16:27:39 +0000 (09:27 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 13 Mar 2013 06:06:17 +0000 (02:06 -0400)
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 <surya1@llnl.gov>
Change-Id: Ief0e710b90cf922eb4d4cc8a162ee1b0d21317b4
Reviewed-on: http://review.whamcloud.com/5671
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/utils/mount_utils_zfs.c

index 79c4e94..5edc8e1 100644 (file)
 #include <dlfcn.h>
 
 /* Persistent mount data is stored in these user attributes */
 #include <dlfcn.h>
 
 /* 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.
 
 /* This structure is used to help bridge the gap between the ZFS
  * properties Lustre uses and their corresponding internal LDD fields.