]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_002_pos.ksh
Update ZTS to work on FreeBSD
[mirror_zfs.git] / tests / zfs-tests / tests / functional / zvol / zvol_misc / zvol_misc_002_pos.ksh
index 203b552cff6c67066b01c70523487d0f1722a8e4..72446ee986fe9983046e00dec8814ec41611916f 100755 (executable)
@@ -66,8 +66,7 @@ NUM_WRITES=40
 
 log_must zfs set volsize=128m $TESTPOOL/$TESTVOL
 
-echo "y" | newfs -v ${ZVOL_RDEVDIR}/$TESTPOOL/$TESTVOL >/dev/null 2>&1
-(( $? != 0 )) && log_fail "Unable to newfs(1M) $TESTPOOL/$TESTVOL"
+log_must new_fs ${ZVOL_RDEVDIR}/$TESTPOOL/$TESTVOL
 
 log_must mount ${ZVOL_DEVDIR}/$TESTPOOL/$TESTVOL $TESTDIR
 
@@ -84,7 +83,7 @@ while (( 1 )); do
        (( fn = fn + 1 ))
 done
 
-if is_linux; then
+if is_linux || is_freebsd ; then
        log_must sync
 else
        log_must lockfs -f $TESTDIR