flock possibly missing in SMB3 POSIX extensions?
aaptel at suse.com
Fri Feb 26 16:17:51 UTC 2021
While debugging cifs.ko customer issues we found that flock(2) seems to
be impossible to properly emulate using SMB.
On first sight it looks like they could be emulated with SMB locks but
the main difference is that FLOCKs are completely advisory, the application
is free to ignore them and sucessfully do read/write, whereas with SMB
locks WRITE/READ will fail on locked areas.
The flock syscall is avaible on most unixes so it would make sense to
support it I think. Maybe via a special flag for LOCK.
Given the number of options to control locking behaviour in Samba and
given how NFS doesn't support it properly either maybe there are
problems I'm not seeing.
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
More information about the samba-technical