[Samba] Samba 3.0.9 and vfs recycle on SLES9

J. Strohschnitter samba-ml at rwz.de
Tue Feb 8 09:46:05 GMT 2005


> >>>Hi list,
> >>>
> >>>I have problems working samba 3.0.9 with VFS recycle. I have made an exculde
> >>>to a folder on the share, but any file that was deleted out of this folder, 
> >>>still moved to trash. Also all files from exclude (like .tmp ...) were stored
> >>>to trash.
> >>>Another problem is, that any file that was saved on the share from the application
> >>>(like MSOffice) was also copied to the trash. So if I save a file the the network
> >>>drive, the file was also saved to the trash-repository with complete tree.
> >>>
> >>>Is there anything wrong in my conf ? Hope someone can find the bug:
> >>>
> >>> vfs objects = recycle
> >>>      
> >>>
> >>this has to read
> >>
> >>    vfs object = recycle
> >>
> >>not objects
> >>
> >>    
> >>
> >>>   recycle:repository = .Papierkorb/%U
> >>>   recycle:keeptree = Yes
> >>>   recycle:touch = No
> >>>   recycle:versions = No
> >>>   recycle:exclude = *.tmp|*.temp|*.o|*.obj|*.pqi|*.scr|*.eml|*.mpg|*.mpe|*.mpeg|*.mov|~$*
> >>>   recycle:excludedir = /pmail|/PMAIL
> >>>   recycle:maxsize = 209715200
> >>>
> >>>      
> >>>
> >
> >Hi,
> >
> >sorry I have made the changes, but no effect. (also with  vfs objects = recycle the recycler works)
> >The files were automaticly copied to trash, always I save a file to the network-share. Also files and 
> >folders that were excluded still moves to trash.
> >Here ist the full share-section, hope that this will help. Thx.
> >
> >[homes]
> >   comment = Users HomeFileSet
> >   browseable = no
> >   read only = no
> >   create mode = 0700
> >   directory mode = 0700
> >   force user = %U
> >   path=/server/home/%S
> >   oplocks = true
> >   veto files = /*.mp3/*.eml/*.nws/*.{*}/
> >   ;
> >   ; options for trashbox
> >   ;
> >   vfs object = recycle
> >   recycle:repository = .Papierkorb/%U
> >   recycle:keeptree = Yes
> >   recycle:touch = No
> >   recycle:versions = No
> >   recycle:exclude = *.tmp|*.temp|*.o|*.obj|*.pqi|*.scr|*.eml|*.mpg|*.mpe|*.mpeg|*.mov|~$*
> >   recycle:excludedir = /pmail|/PMAIL
> >   recycle:noversions = *.doc|*.xls|*.ppt
> >   recycle:maxsize = 209715200
> >
> >
> >  
> >
> 
> Hi as i mailed to you personal before
> i guess you have to use commas on suse
> 
> like this 
> vfs objects =  recycle
> 
>        recycle:keeptree = yes
> 
>        recycle:versions = yes
> 
>        recycle:touch = yes
> 
>        recycle:exclude = ?~$*,~$*,*.tmp,index*.pl,index*.htm*,*.temp,*.TMP
> 
>        recycle:exclude_dir=  /tmp,/temp,/cache
> 
>        recycle:repository = .recycle/.recycle.%u
> 
>        recycle:noversions = *.doc,*.xls,*.ppt
> 
>        #hide files = /.recycle.*/.recycle/
> 
>        #veto files = /.recycle.*/.recycle/
> 

Hi again,

yes - now the excludes works as well. But still I got one problem with recycle objects:

When I save a file (with wordpad or editor ...) to the network-share, a 0 byte-file will
automaticly be saved to the trash-folder. 
After removing the file from the network-share, the real file (>0 byte) will be stored 
to the trash. Thats ok. But now I created a file named the same filename than the deleted 
file, the new file was again created as 0-byte file to the trash. And the trashfile was 
destroyed.

So my questions are: 

1)How do I have to configure the recycle-object that no 0-Byte file was
automaticly created on the network-share ?
I have tried all possible parameters (touch and versions) to turn off or on, but no effect.

2)If 1 isn't possible, how can I prevent the creation of the 0-Bytefile over the existing
file, without using the version-parameter ?


-- 
Regards,

     Jens Strohschnitter

-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*
 
* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for 
		 the heart of the sun
-------------------------------------



More information about the samba mailing list