[PATCH] common/reflink: fix error messages in _require_scratch_dedupe()

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



In case dedupe returns an error in _require_scratch_dedupe(),
report the error for the scratch rather than for the test
filesystem.

Signed-off-by: Anthony Iliopoulos <ailiopoulos@xxxxxxxx>
---
 common/reflink | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/reflink b/common/reflink
index e2663277..11561a76 100644
--- a/common/reflink
+++ b/common/reflink
@@ -145,11 +145,11 @@ _require_scratch_dedupe()
 	$XFS_IO_PROG -f -c "pwrite -S 0x61 0 65536" "$SCRATCH_MNT/file2" > /dev/null
 	testio="$($XFS_IO_PROG -f -c "dedupe $SCRATCH_MNT/file1 0 0 65536" "$SCRATCH_MNT/file2" 2>&1)"
 	echo $testio | grep -q "Operation not supported" && \
-		_notrun "Dedupe not supported by test filesystem type: $FSTYP"
+		_notrun "Dedupe not supported by scratch filesystem type: $FSTYP"
 	echo $testio | grep -q "Inappropriate ioctl for device" && \
-		_notrun "Dedupe not supported by test filesystem type: $FSTYP"
+		_notrun "Dedupe not supported by scratch filesystem type: $FSTYP"
 	echo $testio | grep -q "Invalid argument" && \
-		_notrun "Dedupe not supported by test filesystem type: $FSTYP"
+		_notrun "Dedupe not supported by scratch filesystem type: $FSTYP"
 	_scratch_unmount
 }
 
-- 
2.16.3




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux