Lou Gosselin:
> I tried the verbose option, but it doesn't produce enough output.
>
>  > mkdir union a b
>  > mount -t aufs aufs union -o verbose,br:a=rw:b=rw
>  > cat > union/lock # in separate term
>  > mount union -o remount,del:a
> [  114.704254] aufs au_br_del:758:mount[1215]: 1 file(s) opened
> mount: /tmp/union is busy
>
> It doesn't produce any output for other operations.
>  > mount union -o remount,ro,mod:a=ro
> mount: /tmp/union is busy

Generally speaking, it is enough.
If you know that a file is still opened when you delete the branch, then
you can find which process opens which file by lsof(1).
Because "file is opened" is one of the simplest reason, aufs just tells
you the number of opened files. If there are some other reason to make
the branch undeletable, then aufs will tell you its pathname or the
inode number.
If remount,mod:a=ro returns EBUSY, it means a file is opened for writing.
If you think about the behaviour of unmouting ext2, you would agree this
behavour is enough.


J. R. Okajima

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/

Reply via email to