umounting notification

Issue #48 new
Malo Skrylevo created an issue

How to know when unmount procedure is completed on unmount operation? Since umount folder returns immediately.

Comments (7)

  1. Alexander Galanin repo owner

    Unfortunately, synchronized umount is now supported by FUSE only with privileged 'blkdev' option. You have two possibilites:

    1. Mount by root with blkdev option.
    2. Wait until file system process is finished. Use -f flag to disable fork-ing of a file system process from caller.
  2. Malo Skrylevo reporter

    I saw fusermount have 2 umount option -z, -u:

    fusermount: [options] mountpoint
     Options:
      -u            unmount
      -z            lazy unmount
    

    so weither possible to umount wit non-lazy mode ensuring that zip archive is updated to that time?

  3. Alexander Galanin repo owner

    How to wait until file system process is really finished:

    1. Mount archive with -f option to never fork the process:
    fuse-zip -f archive.zip mountpoint &
    pid=$!
    
    1. do anything with mounted file system
    2. unmount the file system:
    fusermount -u mountpoint
    
    1. wait until process is finished:
    wait $pid
    
  4. Log in to comment