Bug 11188 - vfs recycle with option maxsize - Create Zero files from Binary files.
vfs recycle with option maxsize - Create Zero files from Binary files.
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules
4.1.17
x64 Linux
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-01 18:52 UTC by Jürgen Heinemann
Modified: 2015-04-01 20:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Heinemann 2015-04-01 18:52:52 UTC
Hi,
When i use recycle vfs object with maxsize parameter.
It produce zero files with Binary Files e.g. PDF/JPEG.

Section Configuration:
[CODE]
### BilderDB
[BilderDB]
comment = Gemeinsame Bilder (Alle Lesen/Schreiben) 2TB
path = /home/bilderplatte/disk3_2tb
force user = Richter-Sommer-Trainings
force group = samba
invalid users = trainer
guest ok = No
## Papierkorb {
vfs objects = recycle
## NOTE Nicht vergessen bei rsync auf die exclude Liste zu setzen!
recycle:repository = Papierkorb
## Pfad mit Speichern
recycle:keeptree = No
## Doppelte Namen mit Versions-Nummern vermeiden
recycle:versions = No
## Wir schieben nur Dokumente bis 20 Mb in den Papierkorb! BYTES
## BUG recycle:maxsize = 20000
## }
[/CODE]

samba -b
[CODE]
Build environment:
   Build host:  Linux heinemann 3.12.35 #1 SMP Mon Dec 22 16:33:40 CET 2014 x86_64 x86_64 x86_64 GNU/Linux
Paths:
   BINDIR: /usr/bin
   SBINDIR: /usr/sbin
   CONFIGFILE: /etc/samba/smb.conf
   NCALRPCDIR: /var/run/samba/ncalrpc
   LOGFILEBASE: /var/log/samba
   LMHOSTSFILE: /etc/samba/lmhosts
   DATADIR: /usr/share
   MODULESDIR: /usr/lib64/samba/module
   LOCKDIR: /var/lock/samba
   STATEDIR: /var/run/samba
   CACHEDIR: /var/cache/samba
   PIDDIR: /var/run/samba
   PRIVATE_DIR: /var/lib/samba/private
   CODEPAGEDIR: /usr/share/samba/codepages
   SETUPDIR: /usr/share/samba/setup
   WINBINDD_SOCKET_DIR: /var/run/samba/winbindd
   WINBINDD_PRIVILEGED_SOCKET_DIR: /var/lib/samba/winbindd_privileged
   NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd
[/CODE]