mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
ccdcf1236c
commit
dbbaa6d4bc
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user