! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Free Space Checker waking up autofs mounts
Status:
RESOLVED: MOVED
Product:
Xfce4-fsguard-plugin
Component:
General

Comments

Description Massimo Burcheri 2017-08-15 07:58:07 CEST
I have several network and local filesystems mounted via autofs. It took me long to find out which process is periodically waking them up (standby usb drives in spin-down) and remounting.
No process was appearing in lsof or fuser.
Stopping the autofs for debugging this time encountered a crash on that panel item "Free Space Checker" (please rename the panel item to match the package name "fsguard".
Anyway not with that crash I got an idea who is the culprit.

Could you add the default behaviour that only mounted locations are monitored? A `df` wouldn't wake up my usb-drive. But an explicit `df /mnt/usb/data` would do.
So if not adding a default behaviour you could at least add an option for [ ] silent checking of [ ] removable for drives and locations that are not always mounted. That would need to parse the existing mounts first before checking the `df`on that location.

For now I need to remove all "Free Space Checker" items checking removable (that is autofs managed) mounts for getting these mounts unmounted after timeout.

This is fsguard-plugin 1.1.0.
Comment 1 Landry Breuil editbugs 2017-10-18 21:38:29 CEST
The plugin doesnt spawn df, it directly uses statfs() function to guery the available space on the path you gave it - see https://git.xfce.org/panel-plugins/xfce4-fsguard-plugin/tree/panel-plugin/fsguard.c#n272

I dont use linux so i dont have the usecase for autofs, but i see where you're coming from.

I don't think adding an option for this would make sense, someone just needs to add a bit of code to see if fsguard->path is mounted before calling statfs().
Comment 2 Massimo Burcheri 2020-02-05 08:24:27 CET
Are there any news on this issue?
Comment 3 Landry Breuil editbugs 2020-02-05 09:22:04 CET
my comment from 2 years ago still stands :) that would be a good item to fix for a new contributor !
Comment 4 Git Bot editbugs 2020-05-22 23:57:05 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-fsguard-plugin/-/issues/2.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #13782

Reported by:
Massimo Burcheri
Reported on: 2017-08-15
Last modified on: 2020-05-22

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information