All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 254: disable space cache
@ 2011-11-18  8:43 ` Li Zefan
  0 siblings, 0 replies; 8+ messages in thread
From: Li Zefan @ 2011-11-18  8:43 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs, linux-btrfs@vger.kernel.org

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>
---
 254 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/254 b/254
index 5216120..1cd4832 100755
--- a/254
+++ b/254
@@ -48,7 +48,7 @@ _supported_os Linux
 _require_scratch
 
 _scratch_mkfs > /dev/null 2>&1
-_scratch_mount
+_scratch_mount -o nospace_cache
 
 # First test basic snapshotting
 echo "Creating file foo in root dir"
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-21  6:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-18  8:43 [PATCH] 254: disable space cache Li Zefan
2011-11-18  8:43 ` Li Zefan
2011-11-21  1:46 ` Hidetoshi Seto
2011-11-21  1:46   ` Hidetoshi Seto
2011-11-21  2:42   ` Li Zefan
2011-11-21  2:42     ` Li Zefan
2011-11-21  6:43     ` Christoph Hellwig
2011-11-21  6:43       ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.