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.
- Red Hat Enterprise Linux 7.3
- Red Hat Enterprise Linux 7.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.