generic: test orphan inode recovery on RO mount
authorEric Sandeen <sandeen@redhat.com>
Fri, 10 Mar 2017 03:57:11 +0000 (11:57 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 10 Mar 2017 06:30:44 +0000 (14:30 +0800)
commit265c1037eeaf2fa9e4c0cede132c22b3cadf9fb8
tree563a3dab0d32116b66d1344f576effdd4e081815
parent11a3e8bd821cb96f1fa6036263f933581296ba26
generic: test orphan inode recovery on RO mount

There's a bug in xfs where the orphan inode list
is not processed on a readonly mount, and is still not
processed even if it gets mounted rw.  This test exercises
that, and makes sure that the unlinked list is empty after
a transition to rw and an unmount.

While we're at it, sanity check the same thing for pure ro
and rw unmounts.

Now that shutdown is generic, we can test other filesystems
as well, so this is in the generic group.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/417 [new file with mode: 0755]
tests/generic/417.out [new file with mode: 0644]
tests/generic/group