Hello, [email protected],
I am exploring the feasibility of adding colorization of subvolumes to
the output of the coreutils `ls` program. Specifically, for the
BTRFS, ZFS, and Bcachefs filesystems.
In order for `ls` colorization of subvolumes to be feasible, detection
of subvolumes, by non-root users, needs to be implemented in an
efficient and reliable manner.
In searching the linux-bcachefs mailing list, I found a post by Kent Overstreet:
On 4 Nov 2021, Kent Overstreet wrote:
Still todo:
- need to export a different st_dev for each subvolume, like btrfs, so that
find -xdev does what you want and skips snapshots
Source:
https://lore.kernel.org/linux-bcachefs/[email protected]/
What is the status of the above todo item regarding a distinct st_dev
value for each subvolume?
A second question: On Btrfs, each subvolume has an inode value of 256.
Source: https://btrfs.readthedocs.io/en/latest/Subvolumes.html
Is there any easy method for users (especially non-root users) to
identify Bcachefs subvolumes?
Thank you,
Parke