Skip to main content

NetApp wins prestigious Coveo Relevance Pinnacle Award. Learn more!

INSIGHT Japan :2023年 1月25日(水)ANAインターコンチネンタルホテル開催 へ参加・申込を行う

NetApp Knowledge Base

How does file locking work between NFS and SMB protocols?

Views:
854
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • NFS
  • CIFS/SMB
  • ONTAP

Answer

  • NFS client locks are advisory
  • SMB client locks are mandatory
  • Advisory locking is when the operating system keeps track of which files have been locked by which process, but does not prevent a process from writing to a file that is locked by another process. This means that a process can ignore an advisory lock if the process has adequate permission.
  • Because of differences between the NFS and SMB file locks, an NFS client might fail to access a file previously opened by an SMB application.

Additional Information

For more instances of what happens when an NFS client attempts to access a file locked by an SMB application, please see About file locking between protocols.

Scan to view the article on your device