From: Fox, K. M <kev...@pn...> - 2011-03-16 14:19:00
|
Cool. Could this be adapted to do auto_remount as well? -----Original Message----- From: ma...@ke... [mailto:ma...@ke...] Sent: Wednesday, March 16, 2011 01:41 AM Pacific Standard Time To: fus...@li... Cc: mi...@sz... Subject: [fuse-devel] [PATCH] Support for auto_unmount option (take 0) I sent a question whether it's possible to unmount FUSE based FS automatically when an application dies (segfault, unhandled signal, etc). Nobody had any answers/suggestions on that. Back then I also mentioned that I was thinking about adding an option to fusermount that would make it wait for the parent to die and then unmount the original mount point. Nobody seemed to have any heartburn over that. So this patch series does exactly that. It adds "auto_unmount" option to libfuse and fusermount. When the option is specified libfuse will always call fusermount, it will not close its control socket and won't wait for the fusermount to exit. When fusermount sees that option it will do the normal mount thing and will then become a daemon, block all signals and wait for the control socket to get closed. After that it does the normal unmount thing. Let me know what does not look right or whether there is a better aproach. I can respin the patches if needed. Diffstat: lib/mount.c | 35 +++++++++++++++++++++++------- util/fusermount.c | 63 ++++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 76 insertions(+), 22 deletions(-) ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ fuse-devel mailing list fus...@li... https://lists.sourceforge.net/lists/listinfo/fuse-devel |