summaryrefslogtreecommitdiff
path: root/libbcachefs/error.h
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2024-02-26 16:07:54 -0600
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-20 17:02:35 -0400
commit89b322abb3450bd689ed50d7f55178887941ddfe (patch)
treecb2137c55ff97c66d3da58faf25851a381c06514 /libbcachefs/error.h
parentc28af3c0ccdc62eb7b92e78b0aaebde394e34cb1 (diff)
mount: Handle multi-device with 1 device node
Instead of requiring the user to supply all the device nodes for a multi-device FS, allow them to specifiy 1 of them. We then fetch the UUID for the FS and then find all the disks on the system that match this UUID. This allows me to bring up a bcachefs FS in /etc/fstab by using a UUID. This works because it appears the mount command looks up the UUID, finds an entry in /dev/disk/by-uuid and then passes that found device node to mount.bcachefs which fails with `insufficient_devices_to_start` as bcachefs is expecting a list of devices with a ":" between them. This behavior is preserved if a user specifies a list of all the needed device nodes to bring up the FS. Signed-off-by: Tony Asleson <tasleson@redhat.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/error.h')
0 files changed, 0 insertions, 0 deletions