On 09/03/2026 11:02, Mark Harmstone wrote:
Use the STATX_SUBVOL mask to request the stx_subvol field from statx(), and detect subvolume roots by comparing a child directory's subvolume ID with its parent's. When the IDs differ, the directory is a subvolume root and is coloured using the new 'sv' indicator (default: cyan on blue, 36;34).
Thank you for taking the time to supply a patch. I'm not 100% convinced of the need though because: - why would one color subvolume points differently to say mount points - adding colors to ls isn't generally extendable. It quickly gets confusing - statx_subvol means something different on XFS (I think it just extends the inode space there) - this is really only applicable to BTRFS right? - Might a tool like findmnt be more appropriate for functionality like this thanks, Padraig
