From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> CC: Federico Simoncelli <fsimonce@xxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- tests/ts/blkdiscard/offsets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ts/blkdiscard/offsets b/tests/ts/blkdiscard/offsets index 29597ad..2888411 100755 --- a/tests/ts/blkdiscard/offsets +++ b/tests/ts/blkdiscard/offsets @@ -46,6 +46,11 @@ function run_tscmd { ts_log "testing offsets with full block size" run_tscmd $TS_CMD_BLKDISCARD -v $DEVICE +if [ "$?" != "0" ]; then + # Skip the rest? For example loop backing files on NFS seem unsupported. + grep -q "BLKDISCARD ioctl failed: Operation not supported" "$TS_OUTPUT" \ + && ts_skip "BLKDISCARD not supported" +fi run_tscmd $TS_CMD_BLKDISCARD -v -o 1 $DEVICE run_tscmd $TS_CMD_BLKDISCARD -v -o 511 $DEVICE run_tscmd $TS_CMD_BLKDISCARD -v -o 512 $DEVICE -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html