I’m trying to run Time Machine backups on a Turris Omnia. I’ve managed to set up Samba 4 and can access sharea seemingly without issue. I managed to get a first backup to complete, but now I can’t mount the volume any longer. The Mac is giving me a very generic error message, and logread shows me this:
Sep 14 21:17:58 emerson smbd[16361]: [2021/09/14 17:17:58.894957, 0] ../../source3/modules/vfs_fruit.c:6982(fruit_tmsize_do_dirent)
Sep 14 21:17:58 emerson smbd[16361]: fruit_tmsize_do_dirent: tmsize potential overflow: bandsize [33554432] nbands [1931]
Sep 14 21:17:58 emerson smbd[16361]: [2021/09/14 17:17:58.895241, 0] ../../source3/smbd/dfree.c:136(sys_disk_free)
Sep 14 21:17:58 emerson smbd[16361]: sys_disk_free: VFS disk_free failed. Error was : No error information
I can mount other shares without issue. I didn’t find a lot of information about this error. Any suggestions?
[Time Machine Mary]
path = /srv/shares/timemachine/mary
create mask = 0666
directory mask = 0777
read only = no
guest ok = no
fruit:encoding = native
fruit:metadata = stream
fruit:veto_appledouble = no
fruit:time machine = yes
fruit:time machine max size = 350G
vfs objects = catia fruit streams_xattr
If I leave out the time machine max size, the volume gets mounted without issue, and Time Machine works as expected.
I need to limit the available size since I want to back up two machines to the same underlying btrfs filesystem.
I've since tried to use quotas on a btrfs subvolume, but I think this is not going to work in the intended fashion, as the free space on the share is the free space on the whole btrfs volume, not the available quota of the subvolume.
I've searched quite a bit, and the only thing related to the volume size limit I can find is an old bug that talks about calculation issues on i386, but it doesn't seem to have a solution. And I'm not even sure the error message in the log is even related to the problem of not being able to mount the share.