cannot mount btrfs subvolume by name - No Such File or Directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Expired
|
Undecided
|
Unassigned |
Bug Description
It is not possible to mount a btrfs subvolume by supplying the name to the subvol= argument. The mount only works by using subvolid="ID" where "ID" is the subvolume ID. If you try to mount using the name, "No such file or directory" is returned.
# sudo btrfs subvolume list /home
ID 3000 gen 109677 top level 5 path ryan/test
# sudo mount -t btrfs -o subvol=test /dev/sda1 testdir
mount: No such file or directory
# sudo mount -t btrfs -o subvolid=3000 /dev/sda1 testdir
< successful mount>
Ubuntu version:
Description: Linux Mint 17.1 Rebecca
Release: 17.1
Package version:
btrfs-tools:
Installed: 3.12-1
Candidate: 3.12-1
Version table:
*** 3.12-1 0
500 http://
100 /var/lib/
Expected behavior:
Subvolume can be mounted by name
Actual behavior:
Mounting only works when using the ID
Status changed to 'Confirmed' because the bug affects multiple users.