From: Han-Wen N. <ha...@gm...> - 2013-03-01 19:37:25
|
On Thu, Feb 28, 2013 at 3:23 PM, Goswin von Brederlow <gos...@we...> wrote: > On Thu, Feb 28, 2013 at 01:10:16PM +0200, Nick Katsipoulakis wrote: >> First of all, I would like to thank you for your response. It was quite >> helpful. >> >> However, I would like to ask you also the following. When the FUSE >> file-system is unmounted, which function is called. I need to know which >> one is called, in order to call the appropriate closing functions. >> >> Thank you, >> Nick > > /usr/include/fuse/fuse.h: > /** > * Clean up filesystem > * > * Called on filesystem exit. > * > * Introduced in version 2.3 > */ > void (*destroy) (void *); The kernel on recent linuxes never sends the DESTROY opcode (I guess it's an older protocol version), but it forgets the inodes. Forgetting inode 1 (root) is the signal that the file system is being unmounted. -- Han-Wen Nienhuys - ha...@xs... - http://www.xs4all.nl/~hanwen |