'fusermount -u' does not wait for file system process to finish

View: New views
2 Messages — Rating Filter:   Alert me  

'fusermount -u' does not wait for file system process to finish

by Alexander Galanin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I am author of fuse-zip(http://code.google.com/p/fuse-zip/) file system
for FUSE.

My file system saves all modified data to archive only on unmounting
(on destroy() operation call). This can take a very long time.

When I run 'fusermount -u $mountPoint' fusermount process will return
to the shell before filesystem really unmounted.

Is it possible to wait for file system process finish before unmounting?

--
Alexander Galanin

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: 'fusermount -u' does not wait for file system process to finish

by Miklos Szeredi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 12 Jul 2008, Alexander Galanin wrote:

> Hello!
>
> I am author of fuse-zip(http://code.google.com/p/fuse-zip/) file system
> for FUSE.
>
> My file system saves all modified data to archive only on unmounting
> (on destroy() operation call). This can take a very long time.
>
> When I run 'fusermount -u $mountPoint' fusermount process will return
> to the shell before filesystem really unmounted.
>
> Is it possible to wait for file system process finish before unmounting?

Well, you can do something like:

  while test "`pidof fuse-zip`" != ""; do sleep 1; done

Synchronous umount is on my todo list.

Miklos

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel