我使用的是 Mac 操作系统 12.6.8。
我已经让 Samba 能够很好地与 TimeMachine 配合使用,并且可以在运行 FreeBSD 13.2 和 Samba 版本 4.16.10 的服务器上进行一般目录共享。
我看到的一个问题是,当我从 Samba 共享安装 Mac 磁盘映像时,除非我点击强制弹出选项,否则它不会卸载。
当我在服务器上运行“sudo smbstatus”时,我看到安装的磁盘映像已锁定:
Pid User(ID) DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
25419 1001 DENY_NONE 0x20087 RDWR NONE /usr/home/alex test.dmg Sun Jul 30 13:36:02 2023
25419 1001 DENY_NONE 0x100081 RDONLY NONE /usr/home/alex . Sun Jul 30 13:36:16 2023
我对 TimeMachine 没有任何问题,理论上它会从共享中安装磁盘映像,然后在完成后将其完全卸载。仅当我从主目录挂载磁盘映像时。我还尝试在 smb.conf 中使用磁盘映像将特定条目添加到特定目录,并看到了相同的行为。我的conf文件如下。如果需要任何其他信息,请告诉我:
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
logging = file
# Do something sensible when Samba crashes: mail the admin a backtrace
# panic action = /usr/share/samba/panic-action %d
allow insecure wide links = yes
unix extensions = no
#======================= Share Definitions =======================
[TimeMachineLB]
# Load in modules (order is critical!)
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 350G
comment = Time Machine Backup
path = /storage/TimeMachineLB
available = yes
valid users = alex
browseable = yes
guest ok = no
writable = yes
[TimeMachine2]
# Load in modules (order is critical!)
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 300G
comment = Time Machine Backup Nat
path = /storage/TimeMachine2
available = yes
valid users = natalie
browseable = yes
guest ok = no
writable = yes
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = yes
#veto files = /*.*/
follow symlinks = yes
wide links = yes
问候,
亚历克斯