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
subdir mount X-mount.subdir=
option do not work on bcachefs
#2834
Comments
@detiam I am seeing same issue behavior, latest bcachefs tools in arch (1.6), util-linux. By any chance, are you using an encrypted volume? I am trying to narrow it down, as I am trying to use encrypted volume + separate subvol as root (using X-mount.subdir). Trying to narrow down issue before I open it on bcachefs side. |
@dblaber no I only enabled lz4 background compress |
Hmm, very weird then... weirdly some folks on reddit say that mount is working. Which kernel version are you using? (I am still on latest 6.7x in arch, although tempted to try 6.8 just to see if it fixes) |
|
I'm getting the same issue, I can get the subdir mounted if i have the environment variable I can also replicate this with NTFS where When running without the above environment variable and with
|
@yemouu Do you have a strace log to the libmount log? |
@t-8ch here is the strace output
|
Just to add some additional datapoints, I found that setting LIBMOUNT_FORCE_MOUNT2 does not work in preboot/emergency shell in initrd (before root is mounted). Not sure if this is related to ash shell, or util-linux(mount2) depends on something else that needs to be in initrd env to make this work. After system is up and running, root is mounted and switched to, LIBMOUNT_FORCE_MOUNT2 works again. |
I plan to mount a bcachefs snapshot as root today, so I ran:
# mount -v -o X-mount.subdir=.snapshots/1 /dev/nvme0n1p2 /mnt/ INFO - bcachefs::commands::cmd_mount: mounting with params: device: /dev/nvme0n1p2, target: /run/mount/tmptgt, options: rw DEBUG - bcachefs::commands::cmd_mount: parsing mount options: rw INFO - bcachefs::commands::cmd_mount: mounting bcachefs filesystem, /run/mount/tmptgt INFO - bcachefs::commands::cmd_mount: mounting filesystem INFO - bcachefs::commands::cmd_mount: Successfully mounted
the command exit with 0, but
/mnt/
isn't mount, nothing change.I have test
X-mount.subdir
on my system with ext4, btrfs, these can mount folder in target filesystem successfully.os: archlinux rolling
ver: 2.39.3-2 in archlinux core repo
The text was updated successfully, but these errors were encountered: