Whamcloud - gitweb
LU-4961 lustre: remove liblustre.h and obd.h from userspace
[fs/lustre-release.git] / lustre / utils / ll_decode_filter_fid.c
index 04dadf7..7f2e170 100644 (file)
@@ -27,7 +27,7 @@
  * 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, 2013, Intel Corporation.
  */
 /*
  * 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 <liblustre.h>
+#include <libcfs/libcfs.h>
 #include <lustre/lustre_user.h>
 
 int main(int argc, char *argv[])
@@ -82,13 +82,13 @@ int main(int argc, char *argv[])
                               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_ver));
+                              le32_to_cpu(ffo->ff_parent.f_stripe_idx));
                } else {
                        printf("%s: parent="DFID" stripe=%u\n", argv[i],
                               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_ver));
+                              le32_to_cpu(ff->ff_parent.f_stripe_idx));
                }
        }