首先,我foo.7z
通过 Finder 将其复制到我的 SMB 共享(zfs zpool、Ubuntu 18.04 LTS、Samba 4.7.6)。通过 SSH,我将其移动到服务器上的其他位置。我尝试foo.7z
再次将另一个复制到与旧位置相同的位置,但 Finder 显示:
The operation can’t be completed because an item with the name “foo.7z” already exists.
事实并非如此,因为我移动该文件后它就不再存在了。
这是我在 ubuntu 服务器上的 smb.conf:
[global]
mangled names = no
dos charset = CP850
access based share enum = yes
unix extensions = no
fruit:aapl = yes
fruit:model = MacPro
unix charset = UTF-8
fruit:resource = xattr
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[SMB Share]
comment = SMB Share
path = /tank
browseable = yes
read only = no
guest ok = no
ea support = yes
vfs objects = catia fruit streams_xattr
map archive = no
spotlight = yes
readdir_attr:aapl_rsize = yes
readdir_attr:aapl_finder_info = yes
readdir_attr:aapl_max_access = yes
使用 High Sierra 10.13.6。
答案1
一些 unix 命令使用数据数据库而不是搜索数据。例如,locate 使用预建数据库来搜索磁盘。速度快得多,但数据库更新速度可能很慢,因此您将使用一组过时的文件名。数据库可能需要一两天才能更新。