lkml.org 
[lkml]   [2022]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] btrfs/219: fix problems with mount old generation
Date
Hi Nikolay & David,

As we discussed, I changed the test btrfs/219 to make it pass.

This test try to mount btrfs filesystem with old generation.

Devices are matched by UUID in btrfs filesystem. The mount of btrfs with
old generation should be failed on purpose.

Signed-off-by: Flint.Wang <hmsjwzb@zoho.com>
---
tests/btrfs/219 | 3 +--
tests/btrfs/219.out | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/btrfs/219 b/tests/btrfs/219
index 528175b8..5152fa91 100755
--- a/tests/btrfs/219
+++ b/tests/btrfs/219
@@ -73,8 +73,7 @@ _mount $loop_dev $loop_mnt > /dev/null 2>&1 || \
$UMOUNT_PROG $loop_mnt

_mount -o loop $fs_img2 $loop_mnt > /dev/null 2>&1 || \
- _fail "We couldn't mount the old generation"
-$UMOUNT_PROG $loop_mnt
+ echo "We couldn't mount the old generation"

_mount $loop_dev $loop_mnt > /dev/null 2>&1 || \
_fail "Failed to mount the second time"
diff --git a/tests/btrfs/219.out b/tests/btrfs/219.out
index 162074d3..6fe85f24 100644
--- a/tests/btrfs/219.out
+++ b/tests/btrfs/219.out
@@ -1,2 +1,3 @@
QA output created by 219
+We couldn't mount the old generation
Silence is golden
--
2.37.0
Thanks

\
 
 \ /
  Last update: 2022-07-27 11:19    [W:0.075 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site