Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8078 iokit: correct obdfilter-survey output data format
[fs/lustre-release.git]
/
lustre
/
utils
/
ll_decode_filter_fid.c
diff --git
a/lustre/utils/ll_decode_filter_fid.c
b/lustre/utils/ll_decode_filter_fid.c
index
04dadf7
..
00de58e
100644
(file)
--- a/
lustre/utils/ll_decode_filter_fid.c
+++ b/
lustre/utils/ll_decode_filter_fid.c
@@
-27,7
+27,7
@@
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, Intel Corporation.
+ * Copyright (c) 2011,
2014,
Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-46,7
+46,7
@@
#include <errno.h>
#include <sys/types.h>
#include <sys/xattr.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/xattr.h>
-#include <lib
lustre
.h>
+#include <lib
cfs/byteorder
.h>
#include <lustre/lustre_user.h>
int main(int argc, char *argv[])
#include <lustre/lustre_user.h>
int main(int argc, char *argv[])
@@
-75,20
+75,20
@@
int main(int argc, char *argv[])
struct filter_fid_old *ffo = (void *)buf;
/* old filter_fid */
struct filter_fid_old *ffo = (void *)buf;
/* old filter_fid */
- printf("%s: objid=
"LPU64" seq="LPU64"
parent="DFID
+ printf("%s: objid=
%llu seq=%llu
parent="DFID
" stripe=%u\n", argv[i],
" stripe=%u\n", argv[i],
- le64_to_cpu(ffo->ff_objid),
- le64_to_cpu(ffo->ff_seq),
- le64_to_cpu(ffo->ff_parent.f_seq),
+
(unsigned long long)
le64_to_cpu(ffo->ff_objid),
+
(unsigned long long)
le64_to_cpu(ffo->ff_seq),
+
(unsigned long long)
le64_to_cpu(ffo->ff_parent.f_seq),
le32_to_cpu(ffo->ff_parent.f_oid), 0 /* ver */,
/* this is stripe_nr actually */
le32_to_cpu(ffo->ff_parent.f_oid), 0 /* ver */,
/* this is stripe_nr actually */
- le32_to_cpu(ffo->ff_parent.f_
ver
));
+ le32_to_cpu(ffo->ff_parent.f_
stripe_idx
));
} else {
printf("%s: parent="DFID" stripe=%u\n", argv[i],
} else {
printf("%s: parent="DFID" stripe=%u\n", argv[i],
- le64_to_cpu(ff->ff_parent.f_seq),
+
(unsigned long long)
le64_to_cpu(ff->ff_parent.f_seq),
le32_to_cpu(ff->ff_parent.f_oid), 0, /* ver */
/* this is stripe_nr actually */
le32_to_cpu(ff->ff_parent.f_oid), 0, /* ver */
/* this is stripe_nr actually */
- le32_to_cpu(ff->ff_parent.f_
ver
));
+ le32_to_cpu(ff->ff_parent.f_
stripe_idx
));
}
}
}
}