diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2023-03-23 17:50:15 +0100 |
---|---|---|
committer | Jes Sorensen <jes@trained-monkey.org> | 2023-05-08 22:23:45 +0200 |
commit | 0f8347d4f6588ee6ded55af3e307418cee286a6f (patch) | |
tree | 4aebed93e4b352701fdf87ba194097c8e7a7e4a2 /mdadm.h | |
parent | mdadm: define DEV_MD_DIR (diff) | |
download | mdadm-0f8347d4f6588ee6ded55af3e307418cee286a6f.tar.xz mdadm-0f8347d4f6588ee6ded55af3e307418cee286a6f.zip |
mdadm: define DEV_NUM_PREF
Use define instead of inlines. Add _LEN define.
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -100,6 +100,14 @@ struct dlm_lksb { #define DEFAULT_BITMAP_DELAY 5 #define DEFAULT_MAX_WRITE_BEHIND 256 +/* DEV_NUM_PREF is a subpath to numbered MD devices, e.g. /dev/md1 or directory name. + * DEV_NUM_PREF_LEN is a length with Null byte excluded. + */ +#ifndef DEV_NUM_PREF +#define DEV_NUM_PREF "/dev/md" +#define DEV_NUM_PREF_LEN (sizeof(DEV_NUM_PREF) - 1) +#endif /* DEV_NUM_PREF */ + /* DEV_MD_DIR points to named MD devices directory. * DEV_MD_DIR_LEN is a length with Null byte excluded. */ |