次の方法で共有


MSFT_NfsClientLock class

Represents a lock that a client computer holds on a file that resides on a Windows NFS server.

This class supersedes the legacy MSNFS_ClientLock class.

The following syntax is simplified from Managed Object Format (MOF) code.

Syntax

[ClassVersion("1.0"), dynamic, provider("nfscimprov"), AMENDMENT]
class MSFT_NfsClientLock
{
  string LockedFile;
  uint32 LockType;
};

Members

The MSFT_NfsClientLock class has these types of members:

Properties

The MSFT_NfsClientLock class has these properties.

LockedFile

Data type: string

Access type: Read-only

The local file path to the locked file on the Windows NFS server.

LockType

Data type: uint32

Access type: Read-only

The type of lock. There are two lock types:

  • NLM locks, for shares accessed over NFS version 2 or version 3 with NLM
  • NFS locks, for shares accessed over NFS version 4.1

NLM (1)

NFS (2)

Remarks

To revoke a client lock, use the MSFT_NfsServerTasks.RevokeClientLock method.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\NFS
MOF
NfsCimProv.mof
DLL
NfsCimProv.dll

See also

MSFT_NfsServerTasks