Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-progs: open the devices exclusively for writes #888

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

adam900710
Copy link
Collaborator

There is an internal report that, during btrfs-convert to block-group tree, by accident some systemd events triggered the mount of the target fs.

This leads to double mount (one by kernel and one by the btrfs-progs), which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is doing write operations.

Reported-by: pandada8 [email protected]

There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Reported-by: pandada8 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
@adam900710 adam900710 added this to the v6.10.2 milestone Sep 12, 2024
@adam900710 adam900710 added the bug label Sep 12, 2024
@adam900710 adam900710 merged commit 73f8379 into kdave:devel Sep 12, 2024
2 checks passed
kdave pushed a commit that referenced this pull request Sep 12, 2024
There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Pull-request: #888
Reported-by: pandada8 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
kdave pushed a commit that referenced this pull request Sep 12, 2024
There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Pull-request: #888
Reported-by: pandada8 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
kdave pushed a commit that referenced this pull request Sep 12, 2024
There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Pull-request: #888
Reported-by: pandada8 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
kdave pushed a commit that referenced this pull request Sep 17, 2024
There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Pull-request: #888
Reported-by: pandada8 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
@kdave kdave modified the milestones: v6.10.2, v6.11 Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants