mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
254: avoid output mismatch due to space cache
This reverts commit a0c92a5871 (disable
space cache), as option nospace_cache was newly introduced in linux-3.2,
so we'll fail to mount btrfs in older kernels.
As an alternative fix, we just list subvolme names, don't assume
what ID numbers those subvolumes will have.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
a0c92a5871
commit
b235a158b1
@@ -48,7 +48,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
_scratch_mkfs > /dev/null 2>&1
|
||||
_scratch_mount -o nospace_cache
|
||||
_scratch_mount
|
||||
|
||||
# First test basic snapshotting
|
||||
echo "Creating file foo in root dir"
|
||||
@@ -95,7 +95,7 @@ ls $SCRATCH_MNT
|
||||
|
||||
# Test listing the subvolumes
|
||||
echo "Listing subvolumes"
|
||||
btrfs subvolume list $SCRATCH_MNT | _filter_scratch
|
||||
btrfs subvolume list $SCRATCH_MNT | awk '{ print $NF }'
|
||||
|
||||
# Delete the snapshot
|
||||
btrfs subvolume delete $SCRATCH_MNT/snap | _filter_scratch
|
||||
|
||||
Reference in New Issue
Block a user