On 2019/5/12 下午7:27, Hendrik Friedel wrote: > Hello, > > I was wondering, whether anyone of you has experience with this samba in > conjunction with BTRFS and quotas. > > I am using Openmediavault (debian based NAS distribution), which is not > actively supporting btrfs. It uses quotas by default, and I think, that > me using btrfs is causing troubles... > > In the logs I find: > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [.]! > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.879166, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) First thing first, btrfs quota (or qgroup) is a different thing from common Linux filesystem quota. Thus I don't believe a lot of user space tools (including samba) have support to utilize it. Also, btrfs can't support Linux filesystem quota directly, due to some features like snapshot, and the nature btrfs has (almost) unlimited inodes but uses quite some more space for metadata (btree) compared to other filesystems. Not sure what quota samba is using. But at least we can determine if samba is utilizing btrfs quota by: # btrfs qgroup show -prce <btrfs mount point> > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [.]! Not sure what the sys_path_to_bdev() is, but since btrfs has multi-device support, bdev from btrfs doesn't make much sense compared to other single device filesystem. > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.879356, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [.]! > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.879688, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [Hendrik]! > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.879888, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [Hendrik]! > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.880093, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [Hendrik]! > May 12 09:34:06 homeserver smbd[4116]: [2019/05/12 09:34:06.880287, 0] > ../source3/lib/sysquotas.c:461(sys_get_quota) > May 12 09:34:06 homeserver smbd[4116]: sys_path_to_bdev() failed for > path [Hendrik]! > > As you can see, this is quite frequent. Would you please describe the impact of above messages? Does it cause samba mount read/write failure or something else? BTW, adding samba to the list, as the problem looks more like a problem in samba. Thanks, Qu > > Searching for this, I find some bug-reports: > https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1735953 > https://bugzilla.samba.org/show_bug.cgi?id=10541 > > Now, I am sure that I am not the first to use Samba with btrfs. What's > special about me? How's your experience? > > Greetings, > Hendrik >
Attachment:
signature.asc
Description: OpenPGP digital signature
