ports/net/ceph14/files/patch-src_os_bluestore_KernelDevice.cc
Dima Panov 715e140759 net/ceph14: update to 14.2.21 release
Introduce option WITH_TESTS which covers all test/debug tools. Currently disabled due to linking errors

PR:		255763 (based on)
Approved by:	maintainer (implicit)
2021-05-18 10:34:31 +10:00

11 lines
409 B
C++

--- src/os/bluestore/KernelDevice.cc.orig 2021-05-13 17:23:08 UTC
+++ src/os/bluestore/KernelDevice.cc
@@ -67,7 +67,7 @@ int KernelDevice::_lock()
for (;;) {
struct flock fl = { F_WRLCK,
SEEK_SET };
- int r = ::fcntl(fd, F_OFD_SETLK, &fl);
+ int r = ::fcntl(fd, F_SETLK, &fl);
if (r < 0) {
if (errno == EINVAL) {
r = ::flock(fd, LOCK_EX | LOCK_NB);