Reid Priedhorsky
2020-11-15 20:20:01 UTC
Package: samba
Version: 2:4.9.5+dfsg-5+deb10u1
Severity: important
Tags: patch
Hi,
With the following line on a share in smb.conf:
fruit:time machine max size = 640G
authentication fails on my Mac when attempting to mount the share. This
appears in the log:
fruit_tmsize_do_dirent: tmsize overflow
I'm pretty sure the problem is an instance of this upstream bug:
https://bugzilla.samba.org/show_bug.cgi?id=13622
which was fixed with this patch:
https://bugzilla.samba.org/attachment.cgi?id=15850
The share mounts and Time Machine is happy with it if I remove the
configuration line noted.
I believe the bug is fixed in the testing and unstable versions of the
package, but I haven't verified this. The testing package has unmet
dependencies on stable and there seems to be no backport. I am running
multi-arch but the amd64 package had dependency problems I couldn't figure
out. So the request is to apply the (quite short) patch to the stable version.
I tagged it important because serving Time Machine shares is a common use of
Samba and without this option, I can't put the share on a common filesystem
without the backups growing unbounded. In my case, I have one Time Machine
backup that's excessively large already and I want to keep it from getting
worse.
Please let me know what additional information I can provide to help.
Thanks for your hard work on Debian! This particular box was originally
installed around 1998 and upgraded smoothly since then, which speaks very well
for the project IMO.
Reid
-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf present, and attached
-- System Information:
Debian Release: 10.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.19.0-12-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages samba depends on:
ii adduser 3.118
ii dpkg 1.19.7
ii libbsd0 0.9.1-2
ii libc6 2.28-10
ii libldb1 2:1.5.1+really1.4.6-3
ii libpam-modules 1.3.1-5
ii libpam-runtime 1.3.1-5
ii libpopt0 1.16-12
ii libpython2.7 2.7.16-2+deb10u1
ii libtalloc2 2.1.14-2
ii libtdb1 1.3.16-2+b1
ii libtevent0 0.9.37-1
ii lsb-base 10.2019051400
ii procps 2:3.3.15-2
ii python 2.7.16-1
ii python-dnspython 1.16.0-1
ii python-samba 2:4.9.5+dfsg-5+deb10u1
ii python2.7 2.7.16-2+deb10u1
ii samba-common 2:4.9.5+dfsg-5+deb10u1
ii samba-common-bin 2:4.9.5+dfsg-5+deb10u1
ii samba-libs 2:4.9.5+dfsg-5+deb10u1
ii tdb-tools 1.3.16-2+b1
Versions of packages samba recommends:
ii attr 1:2.4.48-4
ii logrotate 3.14.0-4
ii samba-dsdb-modules 2:4.9.5+dfsg-5+deb10u1
ii samba-vfs-modules 2:4.9.5+dfsg-5+deb10u1
Versions of packages samba suggests:
pn bind9 <none>
pn bind9utils <none>
pn ctdb <none>
pn ldb-tools <none>
pn ntp | chrony <none>
pn smbldap-tools <none>
pn ufw <none>
pn winbind <none>
-- no debconf information
Version: 2:4.9.5+dfsg-5+deb10u1
Severity: important
Tags: patch
Hi,
With the following line on a share in smb.conf:
fruit:time machine max size = 640G
authentication fails on my Mac when attempting to mount the share. This
appears in the log:
fruit_tmsize_do_dirent: tmsize overflow
I'm pretty sure the problem is an instance of this upstream bug:
https://bugzilla.samba.org/show_bug.cgi?id=13622
which was fixed with this patch:
https://bugzilla.samba.org/attachment.cgi?id=15850
The share mounts and Time Machine is happy with it if I remove the
configuration line noted.
I believe the bug is fixed in the testing and unstable versions of the
package, but I haven't verified this. The testing package has unmet
dependencies on stable and there seems to be no backport. I am running
multi-arch but the amd64 package had dependency problems I couldn't figure
out. So the request is to apply the (quite short) patch to the stable version.
I tagged it important because serving Time Machine shares is a common use of
Samba and without this option, I can't put the share on a common filesystem
without the backups growing unbounded. In my case, I have one Time Machine
backup that's excessively large already and I want to keep it from getting
worse.
Please let me know what additional information I can provide to help.
Thanks for your hard work on Debian! This particular box was originally
installed around 1998 and upgraded smoothly since then, which speaks very well
for the project IMO.
Reid
-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf present, and attached
-- System Information:
Debian Release: 10.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.19.0-12-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages samba depends on:
ii adduser 3.118
ii dpkg 1.19.7
ii libbsd0 0.9.1-2
ii libc6 2.28-10
ii libldb1 2:1.5.1+really1.4.6-3
ii libpam-modules 1.3.1-5
ii libpam-runtime 1.3.1-5
ii libpopt0 1.16-12
ii libpython2.7 2.7.16-2+deb10u1
ii libtalloc2 2.1.14-2
ii libtdb1 1.3.16-2+b1
ii libtevent0 0.9.37-1
ii lsb-base 10.2019051400
ii procps 2:3.3.15-2
ii python 2.7.16-1
ii python-dnspython 1.16.0-1
ii python-samba 2:4.9.5+dfsg-5+deb10u1
ii python2.7 2.7.16-2+deb10u1
ii samba-common 2:4.9.5+dfsg-5+deb10u1
ii samba-common-bin 2:4.9.5+dfsg-5+deb10u1
ii samba-libs 2:4.9.5+dfsg-5+deb10u1
ii tdb-tools 1.3.16-2+b1
Versions of packages samba recommends:
ii attr 1:2.4.48-4
ii logrotate 3.14.0-4
ii samba-dsdb-modules 2:4.9.5+dfsg-5+deb10u1
ii samba-vfs-modules 2:4.9.5+dfsg-5+deb10u1
Versions of packages samba suggests:
pn bind9 <none>
pn bind9utils <none>
pn ctdb <none>
pn ldb-tools <none>
pn ntp | chrony <none>
pn smbldap-tools <none>
pn ufw <none>
pn winbind <none>
-- no debconf information