composefs icon indicating copy to clipboard operation
composefs copied to clipboard

Mainstream DEs need to be taught to ignore filesize on composefs.

Open antheas opened this issue 9 months ago • 9 comments

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.

Image

Image

antheas avatar Apr 17 '25 08:04 antheas

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.

cgwalters avatar Apr 17 '25 15:04 cgwalters

But users still need access to the root partition so it's not so clear-cut

antheas avatar Apr 17 '25 15:04 antheas

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.

cgwalters avatar Apr 17 '25 16:04 cgwalters

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.

antheas avatar Apr 17 '25 16:04 antheas

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).

cgwalters avatar Apr 17 '25 16:04 cgwalters

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.

CheckYourFax avatar Apr 21 '25 13:04 CheckYourFax

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.

klmcwhirter avatar May 21 '25 10:05 klmcwhirter

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.

Justinzobel avatar Aug 26 '25 02:08 Justinzobel

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 ...

klmcwhirter avatar Aug 26 '25 18:08 klmcwhirter