Whamcloud - gitweb
LU-8349 ldlm: ASSERTION(flock->blocking_export!=0) failed
[fs/lustre-release.git] / lustre / tests / multiop.c
index 40a8cb4..820722c 100644 (file)
@@ -48,6 +48,7 @@
 #include <sys/vfs.h>
 #include <sys/ioctl.h>
 #include <sys/xattr.h>
+#include <sys/file.h>
 #include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -415,6 +416,10 @@ int main(int argc, char **argv)
                                exit(save_errno);
                        }
                        break;
+               case 'j':
+                       if (flock(fd, LOCK_EX) == -1)
+                               errx(-1, "flock()");
+                       break;
                case 'K':
                        oldpath = POP_ARG();
                        if (oldpath == NULL)