linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: directory inclusion in ext2/ext3
@ 2003-07-23 20:22 softpro
  2003-07-24  0:54 ` Mike Fedyk
  0 siblings, 1 reply; 3+ messages in thread
From: softpro @ 2003-07-23 20:22 UTC (permalink / raw)
  To: linux-kernel

Scott McDermott <vaxerdec () frontiernet ! net> on 2003-07-23 20:04:26:

>> i have been looking for the possibility to display the
>> contents of several directories in another one, but have
>> so far not found anything suitable.

>This sounds like Al Viro's unionfs if I'm not mistaken.

well, not really. unionfs is close because with a "mount -o bind" and 
additive mounting my problem would be solved, but what i'm looking for is a 
very high-level solution. as i said, my idea of solving this is to have an 
inclusion directive in directory-files...

has nobody ever felt the lack of such functionality??

Johannes

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

* Re: directory inclusion in ext2/ext3
  2003-07-23 20:22 Re: directory inclusion in ext2/ext3 softpro
@ 2003-07-24  0:54 ` Mike Fedyk
  2003-07-24  1:24   ` Grant Miner
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Fedyk @ 2003-07-24  0:54 UTC (permalink / raw)
  To: ahljoh; +Cc: linux-kernel

On Wed, Jul 23, 2003 at 10:22:24PM +0200, softpro@gmx.net wrote:
> well, not really. unionfs is close because with a "mount -o bind" and 
> additive mounting my problem would be solved, but what i'm looking for is a 
> very high-level solution. as i said, my idea of solving this is to have an 
> inclusion directive in directory-files...
> 
> has nobody ever felt the lack of such functionality??

I guess not.

What exactly does this help you to do?

What do you want to accomplish?

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

* Re: directory inclusion in ext2/ext3
  2003-07-24  0:54 ` Mike Fedyk
@ 2003-07-24  1:24   ` Grant Miner
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Miner @ 2003-07-24  1:24 UTC (permalink / raw)
  To: Mike Fedyk, linux kernel

I would also like this enhancement.  Plan 9 is built around this 
feature, and it does it as an int argument 'flag' to mount, such that 
'flag' may be (these are defined in a header):

MREPL: Replace the old file by the new one. Henceforth, an evaluation of 
old will be translated to the new file. If they are directories (for 
mount, this condition is true by definition), old becomes a union 
directory consisting of one directory (the new file).

MBEFORE: Both the old and new files must be directories. Add the 
constituent files of the new directory to the union directory at old so 
its contents appear first in the union. After an MBEFORE bind or mount, 
the new directory will be searched first when evaluating file names in 
the union directory.

MAFTER: Like MBEFORE but the new directory goes at the end of the union.

In addition, there is an MCREATE flag that can be OR'd with any of the 
above. When a /create /system call (see /open/(2)) 
<http://plan9.bell-labs.com/magic/man2html/2/open> attempts to create in 
a union directory, and the file does not exist, the elements of the 
union are searched in order until one is found with MCREATE set. The 
file is created in that directory; if that attempt fails, the /create 
/fails.
...
(from http://plan9.bell-labs.com/magic/man2html/2/bind )

Further rationale can be provided if desired; just ask.


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

end of thread, other threads:[~2003-07-24  1:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 20:22 Re: directory inclusion in ext2/ext3 softpro
2003-07-24  0:54 ` Mike Fedyk
2003-07-24  1:24   ` Grant Miner

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