linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about inotify and bind mount.
@ 2010-06-01  9:49 Stef Bon
  2010-06-06  4:26 ` Brad Boyer
  0 siblings, 1 reply; 8+ messages in thread
From: Stef Bon @ 2010-06-01  9:49 UTC (permalink / raw)
  To: linux-fsdevel

Hello,

I'm developing a fuse filesystem, which aim is to provide a workspace
to the user to access
all kinds of resources, like local devices (USB, CD) and remote like
SMB shares, FTP and SSH (and Netware..)

This construction is based upon a fusemodule and the automounter.

I'm running against the boundaries of what is possible right now.
I'm trying to make inotify possible with fuse, which is very hard.

The goal is to create a complete chrooted environment for the user,
where the system directories are hidden for the user (aka GoboLInux),
but are still there.

My fs is a lot like a mount --bind.

Now I would like to know how a mount --bind works, especially in respect to
the inotify sub system.

When I create the following directories:

mkdir original
mkdir mount.bind.original

somewhere in my homedirectorie
and do as root:

mount --bind original mount.bind.original

and go to the mount.bind.original with a inotify aware client like Dolphin,

and create a file in original like:

touch original/test123

it will also appear in mount.bind.original (per definition) but more important
Dolphin is also direct aware of this change.

So inotify works with bind mounts.
Can someone explain what happens here exactly.
I'm just trying to understand what's happing, I want to know as much
as possible how inotify works.

Thanks in advance,

Stef Bon

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-10 21:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01  9:49 Question about inotify and bind mount Stef Bon
2010-06-06  4:26 ` Brad Boyer
2010-06-06 10:55   ` Stef Bon
2010-06-07  8:13     ` Brad Boyer
2010-06-07  8:50       ` Jamie Lokier
2010-06-07  9:23       ` Stef Bon
2010-06-10  5:52         ` Brad Boyer
2010-06-10 21:18     ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).