Class: Nl::Linux::Nfsd::AsyncOperations

Inherits:
Object
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nfsd.rb

Instance Method Summary collapse

Instance Method Details

#do_cache_flush(**args) ⇒ Nl::Async::Future<void>

Flush nfsd caches (svc_export and/or expkey)

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



1986
1987
1988
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1986

def do_cache_flush(**args)
  @exchange.call(:"do", Messages::DoCacheFlushRequest, nil, args)
end

#do_expkey_set_reqs(**args) ⇒ Nl::Async::Future<void>

Respond to one or more expkey requests

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



1975
1976
1977
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1975

def do_expkey_set_reqs(**args)
  @exchange.call(:"do", Messages::DoExpkeySetReqsRequest, nil, args)
end

#do_listener_get(**args) ⇒ Nl::Async::Future<Messages::DoListenerGetReply>

get nfs running listeners

Parameters:

  • args (Hash)

Returns:

See Also:



1914
1915
1916
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1914

def do_listener_get(**args)
  @exchange.call(:"do", Messages::DoListenerGetRequest, Messages::DoListenerGetReply, args)
end

#do_listener_set(**args) ⇒ Nl::Async::Future<void>

set nfs running sockets

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



1906
1907
1908
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1906

def do_listener_set(**args)
  @exchange.call(:"do", Messages::DoListenerSetRequest, nil, args)
end

#do_pool_mode_get(**args) ⇒ Nl::Async::Future<Messages::DoPoolModeGetReply>

get info about server pool-mode

Parameters:

  • args (Hash)

Returns:

See Also:



1933
1934
1935
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1933

def do_pool_mode_get(**args)
  @exchange.call(:"do", Messages::DoPoolModeGetRequest, Messages::DoPoolModeGetReply, args)
end

#do_pool_mode_set(**args) ⇒ Nl::Async::Future<void>

set the current server pool-mode

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • mode (String)

Returns:

See Also:



1925
1926
1927
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1925

def do_pool_mode_set(**args)
  @exchange.call(:"do", Messages::DoPoolModeSetRequest, nil, args)
end

#do_svc_export_set_reqs(**args) ⇒ Nl::Async::Future<void>

Respond to one or more svc_export requests

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



1954
1955
1956
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1954

def do_svc_export_set_reqs(**args)
  @exchange.call(:"do", Messages::DoSvcExportSetReqsRequest, nil, args)
end

#do_threads_get(**args) ⇒ Nl::Async::Future<Messages::DoThreadsGetReply>

get the maximum number of running threads

Parameters:

  • args (Hash)

Returns:

See Also:



1876
1877
1878
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1876

def do_threads_get(**args)
  @exchange.call(:"do", Messages::DoThreadsGetRequest, Messages::DoThreadsGetReply, args)
end

#do_threads_set(**args) ⇒ Nl::Async::Future<void>

set the maximum number of running threads

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • threads (Array<Integer>)
  • gracetime (Integer)
  • leasetime (Integer)
  • scope (String)
  • min_threads (Integer)
  • fh_key (String)

Returns:

See Also:



1868
1869
1870
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1868

def do_threads_set(**args)
  @exchange.call(:"do", Messages::DoThreadsSetRequest, nil, args)
end

#do_unlock_export(**args) ⇒ Nl::Async::Future<void>

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.

Parameters:

  • args (Hash)

Options Hash (**args):

  • 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:

See Also:



2019
2020
2021
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 2019

def do_unlock_export(**args)
  @exchange.call(:"do", Messages::DoUnlockExportRequest, nil, args)
end

#do_unlock_filesystem(**args) ⇒ Nl::Async::Future<void>

revoke NFS state under a filesystem path

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • path (String) —

    Filesystem path whose state should be released.

Returns:

See Also:



2008
2009
2010
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 2008

def do_unlock_filesystem(**args)
  @exchange.call(:"do", Messages::DoUnlockFilesystemRequest, nil, args)
end

#do_unlock_ip(**args) ⇒ Nl::Async::Future<void>

release NLM locks held by an IP address

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • address (String) —

    struct sockaddr_in or struct sockaddr_in6.

Returns:

See Also:



1997
1998
1999
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1997

def do_unlock_ip(**args)
  @exchange.call(:"do", Messages::DoUnlockIpRequest, nil, args)
end

#do_version_get(**args) ⇒ Nl::Async::Future<Messages::DoVersionGetReply>

get nfs enabled versions

Parameters:

  • args (Hash)

Returns:

See Also:



1895
1896
1897
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1895

def do_version_get(**args)
  @exchange.call(:"do", Messages::DoVersionGetRequest, Messages::DoVersionGetReply, args)
end

#do_version_set(**args) ⇒ Nl::Async::Future<void>

set nfs enabled versions

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



1887
1888
1889
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1887

def do_version_set(**args)
  @exchange.call(:"do", Messages::DoVersionSetRequest, nil, args)
end

#dump_expkey_get_reqs(**args) ⇒ Nl::Async::Stream<Messages::DumpExpkeyGetReqsReply>

Dump all pending expkey requests

Requires CAP_NET_ADMIN in the initial user namespace.



1964
1965
1966
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1964

def dump_expkey_get_reqs(**args)
  @exchange.call(:"dump", Messages::DumpExpkeyGetReqsRequest, Messages::DumpExpkeyGetReqsReply, args)
end

#dump_rpc_status_get(**args) ⇒ Nl::Async::Stream<Messages::DumpRpcStatusGetReply>

dump pending nfsd rpc



1852
1853
1854
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1852

def dump_rpc_status_get(**args)
  @exchange.call(:"dump", Messages::DumpRpcStatusGetRequest, Messages::DumpRpcStatusGetReply, args)
end

#dump_svc_export_get_reqs(**args) ⇒ Nl::Async::Stream<Messages::DumpSvcExportGetReqsReply>

Dump all pending svc_export requests

Requires CAP_NET_ADMIN in the initial user namespace.



1943
1944
1945
# File 'nl-linux/generated/nl/linux/nfsd.rb', line 1943

def dump_svc_export_get_reqs(**args)
  @exchange.call(:"dump", Messages::DumpSvcExportGetReqsRequest, Messages::DumpSvcExportGetReqsReply, args)
end