[LU-7188] flock: Function not implemented Created: 18/Sep/15  Updated: 19/Sep/15  Resolved: 19/Sep/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Giuseppe Di Natale (Inactive) Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: llnl
Environment:

lustre-2.7.59-2.6.32_504.16.2.1chaos.ch5.3.x86_64_g01ca899.x86_64


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

flock call fails on 2.7.59

open("test_file", O_WRONLY|O_CREAT, 0700) = 3
flock(3, LOCK_UN)                       = -1 ENOSYS (Function not implemented)

We have have 4 MDSs, but this error occurs whether or not the directory is striped. No error messages or failures appear in our console, dmesg, or lctl (default masks) logs.



 Comments   
Comment by Giuseppe Di Natale (Inactive) [ 18/Sep/15 ]

This is a test system. We can obtain any information to help diagnose the issue. flock also succeeded on a Lustre 2.5.3 file system.

Comment by Oleg Drokin [ 18/Sep/15 ]

did you try mounting with "-o flock" on the client?

Comment by Giuseppe Di Natale (Inactive) [ 18/Sep/15 ]

The unimplemented function after looking at lctl debug logs.

00000080:00000001:7.0:1442598773.130534:0:27557:0:(file.c:3105:ll_file_noflock()) Process entered
Comment by Giuseppe Di Natale (Inactive) [ 18/Sep/15 ]

No we didn't. We will do that now.

Comment by Oleg Drokin [ 18/Sep/15 ]

ll_file_noflock is only called when mounted without flock option of with -o noflock.
-o flock or -o localflock would install different handlers for flock functionality.

Comment by Giuseppe Di Natale (Inactive) [ 18/Sep/15 ]

That fixed it. Not a bug. Apologies!

Generated at Sat Feb 10 02:06:45 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.