A Union of two directories

Simo Sorce simo.sorce at xsec.it
Tue Feb 4 10:38:23 GMT 2003


On Tue, 2003-02-04 at 11:03, David Lee wrote:
> On Tue, 4 Feb 2003, Stefan (metze) Metzmacher wrote:
> 
> > It would be fine to have config options for match witch files should be 
> > taken from with
> > directory.
> > 
> > something like this:
> > dir1 path = /home/samba
> > dir1 mode = readonly
> > dir1 files = *.c,*.h,configure,Makefile
> > dir1 exclude files = *.o
> > dir2 path = /home/%m/samba
> > dir2 mode = write
> > dir2 files = *.o
> > dir2 exclude files = *.c,*.h
> > 
> > and something simular for directories

I think the easiest thing is to have a "background common read-only directory"

only few parameter needed:

background path = /home/common
background write_over = yes|no

all the files present here will be seen as read-only by everyone.
if you open the file read-write you may choose to either fail the
open or copy over the file to the user directory and use that file
instead.
In this situation only files _not_ present in user directory are taken
from the background dir, so that user created one are in "foreground".

Simo.


-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l.
via Durando 10 Ed. G - 20158 - Milano
tel. +39 02 2399 7130 - fax: +39 02 700 442 399
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20030204/dcbb3a0c/attachment.bin


More information about the samba-technical mailing list