Hi Grant !

>If you want something that's atomic, then I think 'umount' is your
>only option.  If it fails, the fielsystem was busy.  If it succeeds,
>then it wasn't busy and is now unmounted.

Sure, I previously did that umount check on physical patitions, but my
current problem was, that the filesystem is a tmpfs. As soon as I do the
umount to check if it is no longer used, the contents of the filesystem
is lost and can't be processed/stored away for later use. On the other
hand the final processing can't start as long as there are active
processes accessing the filesystem.

I did not consider that mount bind feature to hold a copy of the
filesystem during umount of the original mount point. So Lauren's
solution fit's perfect.

--
Harald
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to