public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs/020: use -f option for xfs_repair a fs image
@ 2015-08-12 17:33 Zorro Lang
  2015-08-12 17:37 ` Eric Sandeen
  0 siblings, 1 reply; 5+ messages in thread
From: Zorro Lang @ 2015-08-12 17:33 UTC (permalink / raw)
  To: fstests; +Cc: eguan, Zorro Lang

This case creates a 60t image file on TEST_DIR. Generally
this's no problem. But if the image sector size is smaller
than the TEST_DEV sector size, for example we create the
image on hard 4k TEST_DEV, the test will fail.

So use -f for xfs_repair will helpful.

Signed-off-by: Zorro Lang <zlang@redhat.com>
---
 tests/xfs/020 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/020 b/tests/xfs/020
index dc305c1..120492d 100755
--- a/tests/xfs/020
+++ b/tests/xfs/020
@@ -55,7 +55,7 @@ fsfile=$TEST_DIR/fsfile.$seq
 rm -f $fsfile
 
 $MKFS_PROG -t xfs -d size=60t,file,name=$fsfile >/dev/null
-$XFS_REPAIR_PROG -o ag_stride=32 -t 1 $fsfile >/dev/null 2>&1
+$XFS_REPAIR_PROG -f -o ag_stride=32 -t 1 $fsfile >/dev/null 2>&1
 
 status=$?
 exit
-- 
1.9.3


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

end of thread, other threads:[~2015-08-14  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12 17:33 [PATCH] xfs/020: use -f option for xfs_repair a fs image Zorro Lang
2015-08-12 17:37 ` Eric Sandeen
2015-08-13  1:59   ` Zirong Lang
2015-08-13 15:15   ` Zirong Lang
2015-08-14  9:23     ` Eryu Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox