multi-device btrfs filesystem automatically mounted once for each device

Bug #991471 reported by Glyph Lefkowitz on 2012-04-29
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
btrfs (Ubuntu)
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
btrfs-tools (Ubuntu)
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
gvfs (Ubuntu)
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
udev (Ubuntu)
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
udisks2 (Ubuntu)
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie

Bug Description

If I have a multi-device btrfs filesystem, and I plug it in via some removable interface (for example, USB3), it will automatically mount on the desktop multiple times. For example, if I have a filesystem labeled FooBar on /dev/sdb /dev/sdc /dev/sdd and /dev/sde, it will be mounted as /media/FooBar, /media/FooBar1, /media/FooBar2, and /media/FooBar3. It should show up only once.

It seems like everything still basically works, but I didn't test writing to said filesystem under the different aliases.

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/991471/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Glyph Lefkowitz (glyph) on 2012-04-30
affects: ubuntu → btrfs-tools (Ubuntu)

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs (Ubuntu):
status: New → Confirmed
Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
Changed in udev (Ubuntu):
status: New → Confirmed
Changed in udisks (Ubuntu):
status: New → Confirmed
Dimitri John Ledkov (xnox) wrote :

btrfs package doesn't exist for a long time now.
I don't see any obvious problems with udev rules shipped in btrfs-tools.
udev & udisks are left to inspect.

Changed in btrfs (Ubuntu):
status: Confirmed → Invalid
summary: - mutli-device raid btrfs filesystem automatically mounted once for each
+ multi-device raid btrfs filesystem automatically mounted once for each
device

I can confirm the problem

Changed in udev (Ubuntu):
importance: Undecided → Medium
Changed in udisks (Ubuntu):
importance: Undecided → Medium
Rolf Leggewie (r0lf) wrote :

This is still present in trusty and xenial as confirmed by a DM (me) and a DD -> bug 1550831

summary: - multi-device raid btrfs filesystem automatically mounted once for each
- device
+ multi-device btrfs filesystem automatically mounted once for each device
Rolf Leggewie (r0lf) wrote :

moving udisks tasks to udisks2 (udisks was dropped in after vivid, trusty had both udisks and udisks2)

description: updated
tags: added: trusty xenial
affects: udisks (Ubuntu) → udisks2 (Ubuntu)
Changed in btrfs-tools (Ubuntu):
importance: Undecided → Medium
Changed in btrfs (Ubuntu):
importance: Undecided → Medium
Rolf Leggewie (r0lf) wrote :

Interestingly enough, one of my trusty computers apparently does not exhibit this behaviour, even though udisks2 is installed. Partitions get mounted via udisks2, too.

Unfortunately, the problem seems to have gotten much worse in the latest development release. Whereas previously, each btrfs device of the btrfs FS would be mounted once, it seems that in artful, one new mount happens every few minutes. I came back to over 20 mounts on a three-device btrfs FS after a few hours. This was on a very recent live CD.

Rolf Leggewie (r0lf) on 2017-08-24
tags: added: artful
Rolf Leggewie (r0lf) on 2018-04-17
tags: added: bionic
Rolf Leggewie (r0lf) on 2018-04-21
Changed in gvfs (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers