[Samba] fruit_pread_meta_stream: Removing [X:AFP_AfpInfo] failed

Tobias Kirchhofer collect at shift.agency
Fri Jan 31 09:05:03 UTC 2020


Hi, after switching from NFS to ZFS for Samba shares we feel that this 
plays much more nicer with our Macs!

What irritates us is that for *each single file* copy operation 
smbd_audit logs this messages:


```
smbd_audit[16153]: 
SHIFT\tobias.kirchhofer|10.99.0.222|t-kirchhofer|TEST|pread|ok|/tank/samba_fra/TEST/image0.png:AFP_AfpInfo
smbd_audit[16153]: [2020/01/31 09:57:40.902397,  0] 
../../source3/modules/vfs_fruit.c:4214(fruit_pread_meta_stream)
smbd_audit[16153]:   fruit_pread_meta_stream: Removing 
[image0.png:AFP_AfpInfo] after short read [0]
smbd_audit[16153]: [2020/01/31 09:57:40.902472,  0] 
../../source3/modules/vfs_fruit.c:4218(fruit_pread_meta_stream)
smbd_audit[16153]:   fruit_pread_meta_stream: Removing 
[image0.png:AFP_AfpInfo] failed
smbd_audit[16153]: 
SHIFT\tobias.kirchhofer|10.99.0.222|t-kirchhofer|TEST|pwrite|ok|/tank/samba_fra/TEST/image0.png
smbd_audit[16153]: 
SHIFT\tobias.kirchhofer|10.99.0.222|t-kirchhofer|TEST|pread|ok|/tank/samba_fra/TEST/image0.png:AFP_AfpInfo
smbd_audit[16153]: [2020/01/31 09:57:42.277586,  0] 
../../source3/modules/vfs_fruit.c:4214(fruit_pread_meta_stream)
smbd_audit[16153]:   fruit_pread_meta_stream: Removing 
[image0.png:AFP_AfpInfo] after short read [0]
smbd_audit[16153]: [2020/01/31 09:57:42.277646,  0] 
../../source3/modules/vfs_fruit.c:4218(fruit_pread_meta_stream)
smbd_audit[16153]:   fruit_pread_meta_stream: Removing 
[image0.png:AFP_AfpInfo] failed
```


Nothing to find about this beside patch messages „[PATCH] Fix nasty 
vfs_fruit bug“ from 2017 and 2018 in a samba list.


The fruit part in smb.conf:

```
vfs objects = acl_xattr fruit streams_xattr full_audit

; Better Mac integration 
https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html
fruit:aapl = yes
fruit:encoding = native
fruit:locking = none
fruit:metadata = stream
fruit:resource = stream
fruit:model = MacSamba
```

It is really hard to find the proper settings for fruit…


-- 
collect at shift.agency


More information about the samba mailing list