]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: test xfs_copy V5 XFS without -d option
authorZorro Lang <zlang@redhat.com>
Tue, 8 Nov 2016 05:33:50 +0000 (13:33 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 13 Nov 2016 06:01:06 +0000 (14:01 +0800)
commit08adb2554ea282b6c0daf11f7905e94ffe55c111
treeb63778b719dcc7345a6b7140b31dd819b06d2d29
parent5e885bfedb71593a75361350cc4500846b23c56a
fstests: test xfs_copy V5 XFS without -d option

Before xfsprogs commit a872b62 (xfs_copy: band-aids for CRC
filesystems), xfs_copy requires the "-d" option to copy a V5 XFS,
because it can't rewrite the UUID of V5 XFS properly.

Now xfs_copy already full support to copy a V5 XFS. But for above
old problem, xfstests use below patch to make sure xfs_copy always
use "-d" option to copy a V5 XFS:

  8346e53 common: append -d option to XFS_COPY_PROG when testing v5 xfs

That cause xfstests miss the coverage of copying a V5 XFS without
"-d". For test this feature I did below things:

  1. Changed init_rc(), add "-d" to $XFS_COPY_PROG if xfs_copy can't
     copy a V5 XFS properly.
  2. xfs/073 test V4 xfs forcibly by specify "-m crc=0" in case. I
     think it's useless now, so remove it.
  3. Changed xfs/032. If xfs_copy full support to copy a V5 XFS, test
     with and without "-d" option, or only test with "-d" option.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc
tests/xfs/032
tests/xfs/073