[Samba] fruit_get_bandsize didn't find band-size key

Mark Ruys mark at paracas.nl
Wed Nov 19 10:57:50 UTC 2025



> Op 19 nov 2025, om 11:24 heeft Rowland Penny via samba <samba at lists.samba.org> het volgende geschreven:
> 
> On Tue, 18 Nov 2025 22:27:00 +0100
> Mark Ruys via samba <samba at lists.samba.org> wrote:
> 
>> Sure:
>> 
>> root at alderaan:~# testparm -s
>> Load smb config files from /etc/samba/smb.conf
>> lpcfg_do_global_parameter: WARNING: The "null passwords" option is
>> deprecated Loaded services file OK.
>> Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility
>> fallback)
>> 
>> Server role: ROLE_STANDALONE
>> 
>> # Global parameters
>> [global]
>> 	bind interfaces only = Yes
>> 	disable netbios = Yes
>> 	disable spoolss = Yes
>> 	interfaces = 192.168.0.14/24 127.0.0.1 100.93.80.77/24
>> fd7a:115c:a1e0::a534:504d/64 load printers = No
>> 	logging = syslog at 0
>> 	map to guest = Bad User
>> 	max open files = 40960
>> 	multicast dns register = No
>> 	ntlm auth = ntlmv1-permitted
>> 	null passwords = Yes
>> 	passdb backend = smbpasswd
>> 	printcap name = /dev/null
>> 	security = USER
>> 	server min protocol = SMB2
>> 	server multi channel support = No
>> 	server signing = if_required
>> 	server string = Paracas server
>> 	show add printer wizard = No
>> 	smb1 unix extensions = No
>> 	smb3 directory leases = No
>> 	fruit:nfs_aces = No
>> 	idmap config * : range = 3000-7999
>> 	idmap config * : backend = tdb
>> 	access based share enum = Yes
>> 	acl allow execute always = Yes
>> 	aio read size = 0
>> 	aio write size = 0
>> 	create mask = 0777
>> 	directory mask = 0777
>> 	hide dot files = No
>> 	include = /etc/samba/smb-shares.conf
>> 	invalid users = root
>> 	use sendfile = Yes
>> 	wide links = Yes
>> 
>> [tm-mark]
>> 	comment = Time Machine Mark
>> 	path = /mnt/user/tm-mark
>> 	valid users = markr
>> 	vfs objects = catia fruit streams_xattr
>> 	write list = markr
>> 	fruit:time machine max size = 800000M
>> 	fruit:time machine = yes
>> 	fruit:metadata = stream
>> 	fruit:encoding = native
>> 
> 
> There is, as far as I can see, nothing in your smb.conf that could be
> causing this.
> 
> Samba parses 'Info.plist' for this regex:
> 
> "^[[:blank:]]*<key>band-size</key>$"
> 
> Seemingly, it cannot find it, so reports this:
> 
> 2025-11-15T12:48:07+01:00 ERR smbd   fruit_get_bandsize: Didn't find
> band-size key in [/mnt/user/tm-mark/Yavin4.sparsebundle/Info.plist]
> 
> I think your error has nothing to do with Samba, the 'Info.plist' is
> being created without a 'band-size' key.

Hm, strange, the regex does match:

root at blue:/mnt/user/tm-mark/Yavin4.sparsebundle# grep -A1 "^[[:blank:]]*<key>band-size</key>$" Info.plist 
	<key>band-size</key>
	<integer>204800000</integer>

I notice the timestamp of the Info.plist is from today :

root at alderaan:/mnt/user/tm-mark/Yavin4.sparsebundle# ls -al Info*
-rwxrw-rw- 1 markr users 575 Nov 19 07:02 Info.bckup*
-rwxrw-rw- 1 markr users 575 Nov 19 07:02 Info.plist*

Perhaps this file gets rewritten at the same time as fruit_get_bandsize() checks it. Like some rat race condition? That would explain I only a few times a day (Time Machine backups run each hour).

Could this be related:

root at blue:/var/log/samba# tail -n6 log.rpcd_mdssvc
[2025/11/19 04:47:34.033208,  0] ../../source3/rpc_server/rpc_worker.c:1148(rpc_worker_main)
  rpcd_mdssvc version 4.23.2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2025
[2025/11/19 07:01:44.113290,  0] ../../source3/rpc_server/rpc_worker.c:1148(rpc_worker_main)
  rpcd_mdssvc version 4.23.2 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2025

Mark


> Rowland
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list