Skip to contentSkip to conversation

fix xfsqa 049 when using whole scratch device

PATCH In review Eric Sandeen 3 participants 3 messages Mar 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix xfsqa 049 when using whole scratch device

if SCRATCH_DEV happens to be a whole device, mke2fs will wait for confirmation.

(mke2fs -F would work, too...)

-Eric

xfstests/049 +1 -1
Index: xfs-cmds/xfstests/049
===================================================================
@@ -60,7 +60,7 @@ echo "--- mounts" >> $seq.full
 mount >> $seq.full
 
 _log "Create ext2 fs on scratch"
-mkfs -t ext2 $SCRATCH_DEV >> $seq.full 2>&1 \
+echo y | mkfs -t ext2 $SCRATCH_DEV >> $seq.full 2>&1 \
     || _fail "!!! failed to mkfs ext2"
 
 _log "Mount ext2 fs on scratch"
#1 lore raw
Quoted 4 lines · Eric Sandeen

if SCRATCH_DEV happens to be a whole device, mke2fs will wait for confirmation.

(mke2fs -F would work, too...)

Looks good.

#2 lore raw
In reply to Eric Sandeen
Quoted 4 lines · Eric Sandeen

if SCRATCH_DEV happens to be a whole device, mke2fs will wait for confirmation.

(mke2fs -F would work, too...)

Tested; does NOT cause a regression.

Josef 'Jeff' Sipek.

Signature · 2 lines
Failure is not an option,
It comes bundled with your Microsoft product.