[PATCH]block.c (recycle.c)

Stefan (metze) Metzmacher metze at metzemix.de
Mon Sep 2 07:26:00 GMT 2002


At 11:55 02.09.2002 +0300, Alexander Bokovoy wrote:

> > 2. I think it would be nicer to don't use /etc/samba/recycle.conf and use
> > the following in smb.conf:
> >
> > [homes]
> > vfs object = /usr/lib/samba/vfs_recycle.so
> > vfs: recycle: bin = .recycle/%u
>second : isn't needed.
>
> > vfs: recycle mode = KEEP_DIRECTORIES|VERSIONS
> > vfs: recycle maxsize = 0
> > vfs: recycle exclude = *.tmp|*.temp|*.obj|~$*|*.$$$
> > vfs: recycle excludedir = /tmp|/temp|/trash
> > vfs: recycle noversions = *.doc|*.xls|*.ppt
> >
> > or this:
> >
> > [homes]
> > vfs object = /usr/lib/samba/vfs_recycle.so
> > vfs_recycle: path = .recycle/%u
> > vfs_recycle: mode = KEEP_DIRECTORIES|VERSIONS
> > vfs_recycle: maxsize = 0
> > vfs_recycle: exclude = *.tmp|*.temp|*.obj|~$*|*.$$$
> > vfs_recycle: excludedir = /tmp|/temp|/trash
> > vfs_recycle: noversions = *.doc|*.xls|*.ppt
>This involves adding new parameters to loadparm.c which isn't acceptable
>actually. Better use parametrical options from above.

I think this are parametrical options! (only from an other type)

(const char *)lp_parm_string(lp_servicename(SNUM(conn)),"vfs","recycle bin"));

moved to

(const char *)lp_parm_string(lp_servicename(SNUM(conn)),"vfs_recycle","path"));


metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de>




More information about the samba-technical mailing list