mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
Introduce option WITH_TESTS which covers all test/debug tools. Currently disabled due to linking errors PR: 255763 (based on) Approved by: maintainer (implicit)
11 lines
409 B
C++
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);
|