Bug 14859 - Keeptree of recycle of VFS always create directory for every single file
Summary: Keeptree of recycle of VFS always create directory for every single file
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 4.15.0
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-08 08:24 UTC by ed29
Modified: 2021-12-02 12:53 UTC (History)
2 users (show)

See Also:


Attachments
original file in directory created by keeptree of recycle (22.76 KB, image/png)
2021-10-08 08:24 UTC, ed29
no flags Details
smb log (106.47 KB, text/plain)
2021-10-12 00:40 UTC, ed29
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ed29 2021-10-08 08:24:22 UTC
Created attachment 16842 [details]
original file in directory created by keeptree of recycle

Hi:

The keeptree of recycle always create directory for every single file,the directory name is same to the file name.

For example:

files deleted to the recycle directory like this.

[attachment]

The versions of OS and samba:

uname -a: Linux fileserver 5.14.9-zen2-1-zen #1 ZEN SMP PREEMPT Fri, 01 Oct 2021 19:03:23 +0000 x86_64 GNU/Linux
Arch linux + LVM + btrfs
samba -V: Version 4.15.0

My smb.conf:

[ed@fileserver ~]$ cat /etc/samba/smb.conf
[global]
  workgroup = workgroup
  security = user
  netbios name = fileserver
  map to guest = Bad User
  passdb backend = tdbsam
  store dos attributes = yes
  wide links = yes
  unix extensions = no
  create mode = 664
  directory mode = 775
  syslog = 0
  log level = 2
  max log size = 3000000
  log file = /var/log/samba/access.log
[服务器]
  path = /mnt/diskpool/服务器
  read only = no
  guest ok = yes
  vfs objects = recycle
  recycle:repository = ../服务器-回收站
  recycle:keeptree = yes
  recycle:versions = yes
  recycle:directory_mode = 0775
  recycle:touch = yes
[回收站]
  path = /mnt/diskpool/服务器-回收站
  read only = yes
  guest ok = yes

Bugzilla email and username:
email: 279982767@qq.com
username: ed29x
Comment 1 ed29 2021-10-12 00:40:19 UTC
Created attachment 16846 [details]
smb log