umounting notification
Issue #48
new
How to know when unmount procedure is completed on unmount operation? Since umount folder
returns immediately.
Comments (7)
-
repo owner -
reporter @agalanin
Wait until file system process is finished
do you mean?
`umount -f`
-
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?
-
repo owner so weither possible to umount wit non-lazy mode ensuring that zip archive is updated to that time?
No. FUSE does not allow non-privileged userspace processes to block unmount process. See http://fuse-devel.narkive.com/vm692Zv0/blocking-umount and https://github.com/libfuse/libfuse/issues/1
-
repo owner How to wait until file system process is really finished:
- Mount archive with -f option to never fork the process:
fuse-zip -f archive.zip mountpoint & pid=$!
- do anything with mounted file system
- unmount the file system:
fusermount -u mountpoint
- wait until process is finished:
wait $pid
-
repo owner See also issue #7
-
repo owner - changed milestone to Future
- Log in to comment
Unfortunately, synchronized umount is now supported by FUSE only with privileged 'blkdev' option. You have two possibilites: