Skip to content

Can't unmount squashfs files after opening one of their folders

Version information

4.20.5, but the issue happens in all 4.20.x. EDIT: this is the offending commit: 3ff904cd

PorteuX 2.4 x64 dev

Steps to reproduce

PorteuX uses AUFS filesystem to be able to dinamically mount squashfs into the union (root folder).

  1. Mount a squashfs
  2. Try to unmount it -- it works
  3. Mount again
  4. Now go to one of the folders of this mounted squashfs
  5. Try to unmount it -- it doesn't work, even if you browse back to a folder outside the mounted squashfs

Current behavior

Since Thunar 4.20.0 something gets cached/locked (my guess) and the squashfs files fail to unmount until you manually kill Thunar daemon -- or simply close Thunar if it's not running as daemon.

Expected outcome

I tested this in the latest versions of the following file managers:

  1. nemo (Cinnamon)
  2. nautilus (GNOME)
  3. dolphin (KDE)
  4. pcmanfm (LXDE)
  5. pcmanfm-qt (LXQt)
  6. caja (MATE)

They all work just fine. So I guess Thunar is doing something wrong.

Additional information

I haven't tested 4.19.x, but 4.18.x works just fine. EDIT: the version that introduced this issue is 4.19.3 EDIT2: this is the offending commit: 3ff904cd

If I go to one of the mounted squashfs folders via file picker the issue doesn't happen, which seems to confirm this is not a GTK issue.

If run lsof nothing related shows up.

Edited by fulalas