[Bug 1704932] Re: xfstests fails with Metadata corruption at leaf on xfs filesystem

Steve Langasek steve.langasek at canonical.com
Wed Jul 26 21:58:17 UTC 2017


I've confirmed that this test fails with xfsprogs 4.3.0 in xenial and
zesty, and passes with xfsprogs 4.9.0 in artful.

** Description changed:

  Problem Description
  ----------------------------
  xfstests fails with Metadata corruption at leaf on xfs filesystem
  
  Environment
  ------------------
  Kernel Build:  4.12.1-041201-generic
  System Name : ltc-test-ci2
  Model  : 8247-22L
  Platform    :  PowerNV ( P8 )
  
  Uname output
  -------------------
  # uname -a
  Linux ltc-test-ci2 4.12.1-041201-generic #201707121132 SMP Wed Jul 12 17:03:25 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
  
  Steps to reproduce:
  ----------------------------------------
- 1. Create a loop device with xfs filesystem
- 2. git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git; cd xfstests-dev
- 3. make
- 4. Create a local.config for running with created loop device
- 5. Run xfstests-dev test  : ./check tests/xfs/288
- 
+ 1. dd if=/dev/null of=/tmp/loop.img bs=$((1024*1024*1024)) count=0 seek=5
+ 2. dd if=/dev/null of=/tmp/loop2.img bs=$((1024*1024*1024)) count=0 seek=5
+ 3. sudo apt install libaio-dev acl-dev attr-dev xfslibs-dev xfsprogs attr bc
+ 4. git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git; cd xfstests-dev
+ 5. make
+ 6. LOOP=$(sudo losetup -f --show /tmp/loop.img)
+ 7. LOOP2=$(sudo losetup -f --show /tmp/loop2.img)
+ 6. $ cat > local.config <<EOF
+ export TEST_DEV=$LOOP
+ export TEST_DIR=/mnt/test
+ export SCRATCH_DEV=$LOOP2
+ export SCRATCH_MNT=/mnt/scratch
+ EOF
+ 7. sudo mkdir -p /mnt/test /mnt/scratch
+ 8. Run xfstests-dev test  : sudo ./check tests/xfs/288
+ 9. sudo rmdir -p /mnt/test /mnt/scratch
+ 10. sudo losetup -d $LOOP LOOP2
+ 11. rm /tmp/loop.img /tmp/loop2.img
  
  FSTYP         -- xfs (non-debug)
  PLATFORM      -- Linux/ppc64le ltc-test-ci2 4.12.1-041201-generic
  MKFS_OPTIONS  -- -f -bsize=4096 /dev/loop6
  MOUNT_OPTIONS -- /dev/loop6 /mnt/scratch
  
  xfs/288	 [failed, exit status 1] - output mismatch (see /root/harish/xfstests-dev/results//xfs/288.out.bad)
-     --- tests/xfs/288.out	2017-07-13 06:04:36.276322778 -0400
-     +++ /root/harish/xfstests-dev/results//xfs/288.out.bad	2017-07-17 06:08:53.590779133 -0400
-     @@ -1,2 +1,3 @@
-      QA output created by 288
-     -Silence is golden
-     +xfs_repair didn't junk the empty attr leaf
-     +(see /root/harish/xfstests-dev/results//xfs/288.full for details)
-     ...
-     (Run 'diff -u tests/xfs/288.out /root/harish/xfstests-dev/results//xfs/288.out.bad'  to see the entire diff)
+     --- tests/xfs/288.out	2017-07-13 06:04:36.276322778 -0400
+     +++ /root/harish/xfstests-dev/results//xfs/288.out.bad	2017-07-17 06:08:53.590779133 -0400
+     @@ -1,2 +1,3 @@
+      QA output created by 288
+     -Silence is golden
+     +xfs_repair didn't junk the empty attr leaf
+     +(see /root/harish/xfstests-dev/results//xfs/288.full for details)
+     ...
+     (Run 'diff -u tests/xfs/288.out /root/harish/xfstests-dev/results//xfs/288.out.bad'  to see the entire diff)
  _check_xfs_filesystem: filesystem on /dev/loop6 is inconsistent (r)
  (see /root/harish/xfstests-dev/results//xfs/288.full for details)
  Ran: xfs/288
  Failures: xfs/288
  Failed 1 of 1 tests
  
  Nothing observed in dmesg.
  
  Full log is attached.
  
- 
- Found https://patchwork.kernel.org/patch/9678821/ related. 
+ Found https://patchwork.kernel.org/patch/9678821/ related.
  .
- xfsprogs source (https://launchpad.net/ubuntu/+source/xfsprogs/4.3.0+nmu1ubuntu4) 
- is downloaded and check for the commit and not able to see this commit integrated. 
+ xfsprogs source (https://launchpad.net/ubuntu/+source/xfsprogs/4.3.0+nmu1ubuntu4)
+ is downloaded and check for the commit and not able to see this commit integrated.
  
  https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-
  dev.git/commit/?id=f71401617acd8fccb2461dcd03d8868f8c87c07b

** Changed in: xfsprogs (Ubuntu)
       Status: New => Fix Released

** Changed in: xfsprogs (Ubuntu)
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) => Canonical Foundations Team (canonical-foundations)

** Changed in: ubuntu-power-systems
     Assignee: Canonical Foundations Team (canonical-foundations) => (unassigned)

** Changed in: xfsprogs (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to xfsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/1704932

Title:
  xfstests fails with Metadata corruption at leaf on xfs filesystem

Status in The Ubuntu-power-systems project:
  New
Status in xfsprogs package in Ubuntu:
  Fix Released

Bug description:
  Problem Description
  ----------------------------
  xfstests fails with Metadata corruption at leaf on xfs filesystem

  Environment
  ------------------
  Kernel Build:  4.12.1-041201-generic
  System Name : ltc-test-ci2
  Model  : 8247-22L
  Platform    :  PowerNV ( P8 )

  Uname output
  -------------------
  # uname -a
  Linux ltc-test-ci2 4.12.1-041201-generic #201707121132 SMP Wed Jul 12 17:03:25 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

  Steps to reproduce:
  ----------------------------------------
  1. dd if=/dev/null of=/tmp/loop.img bs=$((1024*1024*1024)) count=0 seek=5
  2. dd if=/dev/null of=/tmp/loop2.img bs=$((1024*1024*1024)) count=0 seek=5
  3. sudo apt install libaio-dev acl-dev attr-dev xfslibs-dev xfsprogs attr bc
  4. git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git; cd xfstests-dev
  5. make
  6. LOOP=$(sudo losetup -f --show /tmp/loop.img)
  7. LOOP2=$(sudo losetup -f --show /tmp/loop2.img)
  6. $ cat > local.config <<EOF
  export TEST_DEV=$LOOP
  export TEST_DIR=/mnt/test
  export SCRATCH_DEV=$LOOP2
  export SCRATCH_MNT=/mnt/scratch
  EOF
  7. sudo mkdir -p /mnt/test /mnt/scratch
  8. Run xfstests-dev test  : sudo ./check tests/xfs/288
  9. sudo rmdir -p /mnt/test /mnt/scratch
  10. sudo losetup -d $LOOP LOOP2
  11. rm /tmp/loop.img /tmp/loop2.img

  FSTYP         -- xfs (non-debug)
  PLATFORM      -- Linux/ppc64le ltc-test-ci2 4.12.1-041201-generic
  MKFS_OPTIONS  -- -f -bsize=4096 /dev/loop6
  MOUNT_OPTIONS -- /dev/loop6 /mnt/scratch

  xfs/288	 [failed, exit status 1] - output mismatch (see /root/harish/xfstests-dev/results//xfs/288.out.bad)
      --- tests/xfs/288.out	2017-07-13 06:04:36.276322778 -0400
      +++ /root/harish/xfstests-dev/results//xfs/288.out.bad	2017-07-17 06:08:53.590779133 -0400
      @@ -1,2 +1,3 @@
       QA output created by 288
      -Silence is golden
      +xfs_repair didn't junk the empty attr leaf
      +(see /root/harish/xfstests-dev/results//xfs/288.full for details)
      ...
      (Run 'diff -u tests/xfs/288.out /root/harish/xfstests-dev/results//xfs/288.out.bad'  to see the entire diff)
  _check_xfs_filesystem: filesystem on /dev/loop6 is inconsistent (r)
  (see /root/harish/xfstests-dev/results//xfs/288.full for details)
  Ran: xfs/288
  Failures: xfs/288
  Failed 1 of 1 tests

  Nothing observed in dmesg.

  Full log is attached.

  Found https://patchwork.kernel.org/patch/9678821/ related.
  .
  xfsprogs source (https://launchpad.net/ubuntu/+source/xfsprogs/4.3.0+nmu1ubuntu4)
  is downloaded and check for the commit and not able to see this commit integrated.

  https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-
  dev.git/commit/?id=f71401617acd8fccb2461dcd03d8868f8c87c07b

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1704932/+subscriptions



More information about the foundations-bugs mailing list