Commit fea5f25
btrfs-progs: tests: update misc/046 to not try to mount block device into different filesystems
Since kernel commit 40426dd147ff ("btrfs: use the super_block as holder
when mounting file systems"), the kernel will not allow a block device
belonging to two different filesystems.
This means a seed device can only be mounted through either the sprouted
fs, or the seed device, not both at the same time.
Although a seed device can still be shared between different sprouted
fs, only one of those fs can be mounted.
Considering the extra benefit (extra protection, better device events
handling), it's worthy to do the kernel behavior change.
Update the test case to follow the new limits.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>1 parent 5f69f2d commit fea5f25
1 file changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
0 commit comments