254: disable space cache

I can't pass 254, and below is the output:

254 3s ... - output mismatch (see 254.out.bad)
...
 ID 256 top level 5 path snap
-ID 257 top level 5 path subvol
+ID 258 top level 5 path subvol

When space cache is enabled (and now mkfs.btrfs always enables it),
there will be some space cache inodes in the root tree, and they
consume some IDs, and that's why "subvol" has the ID 258 but not 257.

Just disable space cache for this test case.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Li Zefan
2011-11-18 16:43:47 +08:00
committed by Christoph Hellwig
parent 9a02d1a1b4
commit a0c92a5871
+1 -1
View File
@@ -48,7 +48,7 @@ _supported_os Linux
_require_scratch _require_scratch
_scratch_mkfs > /dev/null 2>&1 _scratch_mkfs > /dev/null 2>&1
_scratch_mount _scratch_mount -o nospace_cache
# First test basic snapshotting # First test basic snapshotting
echo "Creating file foo in root dir" echo "Creating file foo in root dir"