Class: Nl::Linux::Nfsd::Messages::DoUnlockExportRequest

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/nfsd.rb

Overview

Revoke NFSv4 state acquired through exports of a given path. Unlike unlock-filesystem, which operates at superblock granularity, this command targets only state associated with a specific export path. Userspace (exportfs -u) sends this after removing the last client for a path so the underlying filesystem can be unmounted.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
18
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::UnlockExport
ATTRIBUTES =
Ractor.make_shareable(%i[path])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#path ⇒ String

Export path whose NFSv4 state should be revoked. All state (opens, locks, delegations, layouts) acquired through any export of this path is revoked, regardless of which client holds the state. Intended for use after all clients have been unexported from a given path, enabling the underlying filesystem to be unmounted.

Returns:

  • (String)

See Also:



1622
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1622

def path; attributes[:"path"]&.value; end