]> git.sesse.net Git - bcachefs-tools-debian/commit
feat(cmd_mount): Add support for magic keyword `OLD_BLKID_UUID`
authorTruongSinh Tran-Nguyen <i@truongsinh.pro>
Wed, 26 Apr 2023 17:15:12 +0000 (10:15 -0700)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 26 Apr 2023 21:46:23 +0000 (17:46 -0400)
commit9ee211eacad51bce6858ca9b9755b6c9eb253f2e
tree13b7f55bb984c88d1534c96722f366792ab6a178
parent47ec3ed6edb90c1117d0c79c382f03a3ed87c5ca
feat(cmd_mount): Add support for magic keyword `OLD_BLKID_UUID`

This commit enhances mount sub command by allowing it to accept
`OLD_BLKID_UUID=xxx` as the device, enabling whole fs mounting without relying
on colon-separated devices.

Using colon-separated devices in fstab is discouraged due to potential device
reference issues after reboot. Additionally, using `UUID=xxx` in fstab or with
`mount -t bcachefs` is currently infeasible as it depends on blkid, which prior
to v2.39, does not recognize bcachefs. This update enables mounting via fstab
using `OLD_BLKID_UUID=xxx` as obtained from `bcachefs show-super` "External
UUID".

Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
rust-src/src/cmd_mount.rs