compat: use stat -c instead of stat --format

For busy-box systems that don't support the extended format options.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Ari Sundholm
2015-09-21 13:06:18 +10:00
committed by Dave Chinner
parent ccdcf1236c
commit dbbaa6d4bc
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ _load_flakey_table $FLAKEY_ALLOW_WRITES
_mount_flakey
# Now verify both our files have a link count of 2.
echo "Link count for file foo: $(stat --format=%h $SCRATCH_MNT/testdir/foo)"
echo "Link count for file bar: $(stat --format=%h $SCRATCH_MNT/testdir/bar)"
echo "Link count for file foo: $(stat -c %h $SCRATCH_MNT/testdir/foo)"
echo "Link count for file bar: $(stat -c %h $SCRATCH_MNT/testdir/bar)"
# We should be able to remove all the links of our files in testdir, and after
# that the parent directory should become empty and therefore possible to