> > ...
> > results in two events:
> > 1. IN_DELETE_SELF (mask=0x0400)
> > 2. IN_IGNORED     (mask=0x8000)
> > 
> > Any ideas?
> 
> "/mnt" is not unmounted, stuff inside of it is.
> 
> Watch, say, "/mnt/foo/bar" and when /dev/hda1 is unmounted, you will get
> an IN_UNMOUNT on the watch.

I tried that too. Seems not to work (at least for me):

        [EMAIL PROTECTED]:/tmp/inotify-utils-0.25 # mount /dev/hda6 /mnt
        [EMAIL PROTECTED]:/tmp/inotify-utils-0.25 # ls /mnt/foo/bar
        /mnt/foo/bar
        [EMAIL PROTECTED]:/tmp/inotify-utils-0.25 # ./inotify_test /mnt/foo/bar 
&
        inotify device fd = 3
        /mnt/foo/bar WD=1
        [1] 8454
        [EMAIL PROTECTED]:/tmp/inotify-utils-0.25 # umount /dev/hda6
        read = 32
        sizeof inotify_event = 16
        pevent->len = 0
        pevent->len = 0
        EVENT ON WD=1
        DELETE_SELF (file) 0x00000400

        EVENT ON WD=1
        IGNORED (file) 0x00008000

        [EMAIL PROTECTED]:/tmp/inotify-utils-0.25 #

  Juergen.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to