cannot mount btrfs subvolume by name - No Such File or Directory

Bug #1445283 reported by Ryan S Kingsbury
14
This bug affects 3 people
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://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Expected behavior:
Subvolume can be mounted by name

Actual behavior:
Mounting only works when using the ID

Tags: btrfs
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in btrfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Thiago Martins (martinx) wrote :
Revision history for this message
Rolf Leggewie (r0lf) wrote :

the name of the subvolume is ryan/test, not just test, isn't it? Try that.

Changed in btrfs (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Ubuntu has not shipped a btrfs package for a long time, moving to generic Ubuntu for triage.

affects: btrfs (Ubuntu) → ubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

Changed in ubuntu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.