public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Juergen Quade <quade@hsnr.de>
To: Robert Love <rml@novell.com>
Cc: linux-kernel@vger.kernel.org, Kyle Moffett <mrmacman_g4@mac.com>
Subject: Re: inotify and IN_UNMOUNT-events
Date: Wed, 31 Aug 2005 09:01:32 +0200	[thread overview]
Message-ID: <20050831070132.GA10327@hsnr.de> (raw)
In-Reply-To: <1125459207.32272.114.camel@phantasy>

> > ...
> > 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):

	root@mobil:/tmp/inotify-utils-0.25 # mount /dev/hda6 /mnt
	root@mobil:/tmp/inotify-utils-0.25 # ls /mnt/foo/bar
	/mnt/foo/bar
	root@mobil:/tmp/inotify-utils-0.25 # ./inotify_test /mnt/foo/bar &
	inotify device fd = 3
	/mnt/foo/bar WD=1
	[1] 8454
	root@mobil:/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

	root@mobil:/tmp/inotify-utils-0.25 #

  Juergen.

      parent reply	other threads:[~2005-08-31  7:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 19:46 inotify and IN_UNMOUNT-events Juergen Quade
2005-08-31  3:33 ` Robert Love
2005-08-31  3:44   ` Kyle Moffett
2005-08-31  7:01   ` Juergen Quade [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050831070132.GA10327@hsnr.de \
    --to=quade@hsnr.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrmacman_g4@mac.com \
    --cc=rml@novell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox