Mainstream DEs need to be taught to ignore filesize on composefs.
Currently, desktop managers display composefs as a full partition. We need to somehow teach them to hide the size bar there to not alarm users. Should happen both on KDE and Gnome. Pictures below.
I think it'd probably make sense for this project to install udev rule that blanket ignores filesystems of type erofs that have a composefs mount source.
But users still need access to the root partition so it's not so clear-cut
They'll still have that by accessing / which is the overlayfs component (for the booted host case) right?
There's a chain here of: [e.g. ostree-prepare-root bind mount for /] -> overlayfs -> erofs -> [backing files].
The erofs is an internal implementation detail of composefs and should always be ignored basically.
Usually in KDE and from Windows convention, you expect to be able to access the drive in the bottom left. Seasoned users can type / for sure.
Ah sorry I was totally wrong above and you're right, they're showing / here and indeed we'd need to do something special for that. It's hard to say what the most "user friendly" presentation is here. Maybe they could just learn to detect "composefs for /" and actually show the free space on the backing filesystem mount (xref https://github.com/composefs/composefs/issues/280 though in at least ostree usage today that's at /sysroot).
GNOME Files has stopped showing root altogether by default, so at least the default user experience is fine here. KDE uses Dolphin by default and I think the easiest way is for Dolphin to just make the size bar grey (or completely hidden) on detecting overlayfs, instead of hiding it altogether.
It's a bit of a higher level fix, and if there's anything better that can be done on a lower level, that's of course a better solution, so that you don't have to update all file managers one by one.
It's a bit of a higher level fix, and if there's anything better that can be done on a lower level, that's of course a better solution, so that you don't have to update all file managers one by one.
All fs drivers need to be compliant with the stat system call protocol. Anything else is just a hack.
Please improve composefs and also perhaps erofs (if that is needed) to do the right thing.
Doing workarounds in dozens of tools and apps I feel is not the way. Fixing this where it was changed is the right solution, thanks.
Doing workarounds in dozens of tools and apps I feel is not the way. Fixing this where it was changed is the right solution, thanks.
FYI - I just helped another group of Bazzite users think through problems they are experiencing with the DropBox flatpak.
They are contacting DropBox support now ...