You are not logged in.
Hello again,
I hope someone can help me! I have basically the problem which is described in the samba bugtracker here. I have some btrfs directories, which are shared via samba. They work fine, but the journal is flooded with errors like this:
Nov 11 14:54:41 server smbd[24184]: sys_path_to_bdev() failed for path [.]!
Nov 11 14:54:41 server smbd[24184]: [2025/11/11 14:54:41.305035, 0] ../../source3/lib/sysquotas.c:508(sys_get_quota)
Nov 11 14:54:41 server smbd[24184]: sys_path_to_bdev() failed for path [.]!
Nov 11 14:54:41 server smbd[24184]: [2025/11/11 14:54:41.305844, 0] ../../source3/lib/sysquotas.c:508(sys_get_quota)
Nov 11 14:54:41 server smbd[24184]: sys_path_to_bdev() failed for path [.]!
Nov 11 14:54:51 server smbd[24184]: [2025/11/11 14:54:51.292438, 0] ../../source3/lib/sysquotas.c:508(sys_get_quota)
Nov 11 14:54:51 server smbd[24184]: sys_path_to_bdev() failed for path [.]!
Nov 11 14:54:51 server smbd[24184]: [2025/11/11 14:54:51.292889, 0] ../../source3/lib/sysquotas.c:508(sys_get_quota)
Nov 11 14:54:51 server smbd[24184]: sys_path_to_bdev() failed for path [.]!The btrfs volume has no quota enabled
btrfs quota status /mnt/data/
Quotas on /mnt/data/:
Enabled: noAs stated in the samba bugtracker, I have added the subvolumes in /etc/fstab, beside the main volume, like this
UUID=568a5a8d-9c05-46ab-868f-c5662298451c /mnt/data btrfs noauto,x-systemd.automount,noatime,noautodefrag,space_cache=v2 0 0
UUID=568a5a8d-9c05-46ab-868f-c5662298451c /mnt/data/vms btrfs subvolid=23024,noauto,noatime,noautodefrag,space_cache=v2 0 0for this subvolume:
btrfs subvolume list /mnt/data
ID 23024 gen 3320409 top level 5 path vmsI couldn't find any hint of there is an option to disable quotas in samba completely and I also don't see any need for the enabling of quotas on the btrfs volume.
Did I miss something?
Thank in Advance!
Last edited by mathes.s (2025-11-12 07:16:05)
Offline
I just use a workaround:
grep quota /etc/samba/smb.conf
# get quota command = /usr/bin/echo 0 0 0 0 0 0 0
get quota command = /usr/local/bin/smbquota.shcat /usr/local/bin/smbquota.sh
#!/usr/bin/bash
echo 0 0 0 0 0 0 0The direct echo stopped working some versions back, that's why there's wrapper around it.
As this disables all quotas for samba, YMMV.
Offline
Thanks for sharing your solution!
I have created something similar now.
Offline