Whamcloud - gitweb
LU-4228 debugfs: fix swabbing of LMA FID 16/8216/1
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 8 Nov 2013 04:51:00 +0000 (21:51 -0700)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 8 Nov 2013 05:47:57 +0000 (22:47 -0700)
The LMA lma_self_fid is stored on disk in little-endian order, not
big endian order.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I09c3b062efd1d4bec0f29fb10758e73913500c1e

debugfs/debugfs.c
version.h

index eefddf7..0860793 100644 (file)
@@ -551,7 +551,7 @@ static void print_lmastr(FILE *out, ext2_ino_t inode_num, void *data, int len)
                        debug_prog_name, inode_num, len);
                return;
        }
-       fid_be_to_cpu(&lma->lma_self_fid, &lma->lma_self_fid);
+       fid_le_to_cpu(&lma->lma_self_fid, &lma->lma_self_fid);
        fprintf(out, "  lma: fid="DFID" compat=%x incompat=%x\n",
                PFID(&lma->lma_self_fid), ext2fs_le32_to_cpu(lma->lma_compat),
                ext2fs_le32_to_cpu(lma->lma_incompat));
index 3043c72..b5840e8 100644 (file)
--- a/version.h
+++ b/version.h
@@ -7,5 +7,5 @@
  * file may be redistributed under the GNU Public License v2.
  */
 
-#define E2FSPROGS_VERSION "1.42.7.wc1"
-#define E2FSPROGS_DATE "12-Apr-2013"
+#define E2FSPROGS_VERSION "1.42.7.wc2"
+#define E2FSPROGS_DATE "07-Nov-2013"