Bug 12111

Summary: mount doesn't support non-default subvolume in BTRFS
Product: Busybox Reporter: lord-busybox
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.30.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description lord-busybox 2019-08-14 23:04:18 UTC
While trying to mount another subvolume than the default one it fails.

When launching *mount /dev/sdb /mnt -o subvolid=555* it fails.
When launching *mount /dev/sdb /mnt -o subvolid=5* it works.

In BTRFS the subvolume 5 is the default one, trying to mount any other than this one it will fail.

Mount from util-linux can mount any subvolid.

This bug is present in 1.30.1 (alpine) in 1.31 (gentoo) too.


busybox mount /dev/sdb /mnt/test -o subvolid=555 -t btrfs
mount: mounting /dev/sdb on /mnt/test failed: No such file or directory

My fs is a multi-device raid6 btrfs (it may be the root of the bug ?).