mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
staging/lustre/mdt: add macros for fid string len
add 2 macros for the length of a fid string 0xSEQ:0xOID:0xVER and it's brace version (FID_NOBRACE_LEN, and FID_LEN) Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2782 Lustre-change: http://review.whamcloud.com/5299 Signed-off-by: JC Lafoucriere <[email protected]> Reviewed-by: Jinshan Xiong <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: Peng Tao <[email protected]> Signed-off-by: Andreas Dilger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5dd1641991
commit
001f54878a
1 changed files with 2 additions and 0 deletions
|
|
@ -462,6 +462,8 @@ static inline void obd_uuid2fsname(char *buf, char *uuid, int buflen)
|
|||
|
||||
/* printf display format
|
||||
e.g. printf("file FID is "DFID"\n", PFID(fid)); */
|
||||
#define FID_NOBRACE_LEN 40
|
||||
#define FID_LEN (FID_NOBRACE_LEN + 2)
|
||||
#define DFID_NOBRACE LPX64":0x%x:0x%x"
|
||||
#define DFID "["DFID_NOBRACE"]"
|
||||
#define PFID(fid) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue