Open cberner opened 3 years ago
libfuse has a separate flock() method for setting BSD style locks. This is necessary because the semantics are different and BSD locks are independent from POSIX locks.
flock()
Notes: The lk_flags field must be checked, like libfuse does: https://github.com/libfuse/libfuse/blob/e032ca7a88afe1a7cd028ca63e2993af9c0b91af/lib/fuse_lowlevel.c#L1648
lk_flags
Useful links on lock behavior:
libfuse has a separate
flock()
method for setting BSD style locks. This is necessary because the semantics are different and BSD locks are independent from POSIX locks.Notes: The
lk_flags
field must be checked, like libfuse does: https://github.com/libfuse/libfuse/blob/e032ca7a88afe1a7cd028ca63e2993af9c0b91af/lib/fuse_lowlevel.c#L1648Useful links on lock behavior: