NFS file locking change in RHEL7.4

Solution Verified - Updated -

Issue

NFS flock functionality appears to have changed between RHEL 7.3 and 7.4.
We have tested the same code on both versions for nfsv3 and it fails with below error on RHEL 7.4 for nfs share.

Receiving error "flock: 11: Bad file descriptor" on 7.4.
Attached is a test script which shows the difference is run on both RHEL versions.

Environment

  • Red Hat Enterprise Linux 7.3
  • Red Hat Enterprise Linux 7.4
  • NFS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content