]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared: test truncate orphan inodes when mounting extN
authorEryu Guan <eguan@redhat.com>
Mon, 4 May 2015 12:55:39 +0000 (22:55 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 4 May 2015 12:55:39 +0000 (22:55 +1000)
commit3634bde3397cb9b717e91300eaf9a43a980d00ad
treeca3a7bdf049b3193b9d8c9111808993feb6d35b7
parentddb8f4e390eed99ed1b99011217b8a495ec833ae
shared: test truncate orphan inodes when mounting extN

ext4 should hold i_mutex when truncating orhpan inodes, or a WARNING
would be triggered. This commit fixed this issue.

721e3eb ext4: lock i_mutex when truncating orphan inodes

Though it's an ext4 specific issue, there's no harm to test on ext2/3
too, as debugfs is used to set orphan inode list.

This test is based on a script from Lukas Czerner.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/shared/001 [new file with mode: 0755]
tests/shared/001.out [new file with mode: 0644]
tests/shared/group