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.
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().
Are there any news on this issue?
my comment from 2 years ago still stands :) that would be a good item to fix for a new contributor !
-- 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