| To: | david@xxxxxxxxxxxxx, eguan@xxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 05/17] common/reflink: actually test dedupe on scratch device |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 21 Jul 2016 16:46:48 -0700 |
| Cc: | linux-btrfs@xxxxxxxxxxxxxxx, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146914477514.11762.3144320628851923350.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146914477514.11762.3144320628851923350.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
In _require_scratch_dedupe, test the scratch device, not the testdev.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
common/reflink | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/reflink b/common/reflink
index 4ec390d..1363971 100644
--- a/common/reflink
+++ b/common/reflink
@@ -107,7 +107,7 @@ _require_scratch_dedupe()
_scratch_mount
"$XFS_IO_PROG" -f -c "pwrite -S 0x61 0 65536" "$SCRATCH_MNT/file1" >
/dev/null
"$XFS_IO_PROG" -f -c "pwrite -S 0x61 0 65536" "$SCRATCH_MNT/file2" >
/dev/null
- testio="$("$XFS_IO_PROG" -f -c "dedupe $TEST_DIR/file1 0 0 65536"
"$TEST_DIR/file2" 2>&1)"
+ 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"
echo $testio | grep -q "Inappropriate ioctl for device" && \
|
| Previous by Date: | [PATCH 04/17] xfs/122: list the new log redo items, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 06/17] xfs: run xfs_repair at the end of each test, Darrick J. Wong |
| Previous by Thread: | [PATCH 04/17] xfs/122: list the new log redo items, Darrick J. Wong |
| Next by Thread: | [PATCH 06/17] xfs: run xfs_repair at the end of each test, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |