You are not logged in.

#1 2025-11-11 14:11:22

mathes.s
Member
Registered: 2021-03-05
Posts: 7

[solved] Samba logs qutoa error on btrfs volume

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: no

As 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 0

for this subvolume:

btrfs subvolume list /mnt/data 
ID 23024 gen 3320409 top level 5 path vms

I 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

#2 2025-11-11 15:25:27

just4arch
Member
Registered: 2023-01-07
Posts: 116

Re: [solved] Samba logs qutoa error on btrfs volume

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.sh
cat /usr/local/bin/smbquota.sh
#!/usr/bin/bash
echo 0 0 0 0 0 0 0

The direct echo stopped working some versions back, that's why there's wrapper around it.
As this disables all quotas for samba, YMMV.

Offline

#3 2025-11-12 07:15:40

mathes.s
Member
Registered: 2021-03-05
Posts: 7

Re: [solved] Samba logs qutoa error on btrfs volume

Thanks for sharing your solution!

I have created something similar now.

Offline

Board footer

Powered by FluxBB