bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

bcachefs-tools should not use ":" to separate devices

Open walexb opened this issue 4 years ago • 2 comments
trafficstars

The df --local command does not list multiple-device bcachefs filesystems, even if it lists single-device ones.

$ df --local /mnt/tmp
df: no file systems processed
$ df /mnt/tmp
Filesystem          1M-blocks   Used Available Use% Mounted on
/dev/sdb1:/dev/sdb3    999736 318746    680991  32% /mnt/tmp

I guess that is because it considers mount-device strings containing a ":" as non-local. Two possible solutions:

  • Accept another device-list separator, for example ",".
  • Allow specifying a single device as mount device and use a mount option to list additional devices.

I think that the second option is preferable, as there is precedent, and having long mount-device strings screws up the output of df and other commands.

walexb avatar Mar 15 '21 12:03 walexb

This seem related to https://github.com/koverstreet/bcachefs/issues/1

davidak avatar Mar 24 '21 23:03 davidak