nl-linux 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/CHANGELOG.md +2 -0
- data/Rakefile +13 -3
- data/generated/nl/linux/binder.rb +80 -0
- data/generated/nl/linux/conntrack.rb +39 -2
- data/generated/nl/linux/dev_energymodel.rb +106 -0
- data/generated/nl/linux/devlink.rb +751 -0
- data/generated/nl/linux/dpll.rb +712 -55
- data/generated/nl/linux/drm_ras.rb +87 -0
- data/generated/nl/linux/ethtool.rb +1569 -259
- data/generated/nl/linux/fou.rb +82 -13
- data/generated/nl/linux/handshake.rb +92 -0
- data/generated/nl/linux/lockd.rb +50 -0
- data/generated/nl/linux/mptcp_pm.rb +159 -0
- data/generated/nl/linux/net_shaper.rb +123 -0
- data/generated/nl/linux/netdev.rb +374 -0
- data/generated/nl/linux/nfsd.rb +316 -6
- data/generated/nl/linux/nftables.rb +414 -25
- data/generated/nl/linux/nl80211.rb +81 -22
- data/generated/nl/linux/nlctrl.rb +59 -8
- data/generated/nl/linux/ovpn.rb +180 -0
- data/generated/nl/linux/ovs_datapath.rb +55 -6
- data/generated/nl/linux/ovs_flow.rb +63 -20
- data/generated/nl/linux/ovs_packet.rb +115 -4
- data/generated/nl/linux/ovs_vport.rb +55 -6
- data/generated/nl/linux/psp.rb +257 -0
- data/generated/nl/linux/rt_addr.rb +69 -14
- data/generated/nl/linux/rt_link.rb +381 -47
- data/generated/nl/linux/rt_neigh.rb +227 -16
- data/generated/nl/linux/rt_route.rb +92 -49
- data/generated/nl/linux/rt_rule.rb +300 -11
- data/generated/nl/linux/sunrpc_cache.rb +130 -0
- data/generated/nl/linux/tc.rb +161 -52
- data/generated/nl/linux/tcp_metrics.rb +69 -12
- data/generated/nl/linux/team.rb +80 -0
- data/generated/nl/linux/wireguard.rb +99 -7
- data/lib/nl/linux/version.rb +1 -1
- metadata +11 -9
data/generated/nl/linux/nfsd.rb
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
|
+
#
|
|
3
|
+
# This file is based on Documentation/netlink/specs/nfsd.yaml from Linux v7.2.
|
|
2
4
|
#--
|
|
3
5
|
# frozen_string_literal: true
|
|
4
6
|
# rbs_inline: enabled
|
|
@@ -9,6 +11,7 @@ module Nl; module Linux
|
|
|
9
11
|
class Nfsd < ::Nl::Family
|
|
10
12
|
NAME = "nfsd"
|
|
11
13
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("nfsd"))
|
|
14
|
+
MCAST_GROUPS = Ractor.make_shareable({:"none" => ::Nl::McastGroup.new("none", nil), :"exportd" => ::Nl::McastGroup.new("exportd", nil)}) #: Hash[::Symbol, ::Nl::McastGroup]
|
|
12
15
|
module Structs
|
|
13
16
|
end
|
|
14
17
|
module AttributeSets
|
|
@@ -718,6 +721,13 @@ class Nfsd < ::Nl::Family
|
|
|
718
721
|
ExpkeyReqs::Requests::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(Expkey)
|
|
719
722
|
end
|
|
720
723
|
module Messages
|
|
724
|
+
# dump pending nfsd rpc
|
|
725
|
+
class DumpRpcStatusGetRequest < ::Nl::Protocols::Genl::Message
|
|
726
|
+
TYPE = 1
|
|
727
|
+
FIXED_HEADER = nil
|
|
728
|
+
ATTRIBUTE_SET = AttributeSets::RpcStatus
|
|
729
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
730
|
+
end
|
|
721
731
|
# dump pending nfsd rpc
|
|
722
732
|
class DumpRpcStatusGetReply < ::Nl::Protocols::Genl::Message
|
|
723
733
|
TYPE = 1
|
|
@@ -758,11 +768,11 @@ class Nfsd < ::Nl::Family
|
|
|
758
768
|
def daddr4; attributes[:"daddr4"]&.value; end
|
|
759
769
|
# Gets the value of `saddr6` attribute in the message.
|
|
760
770
|
#--
|
|
761
|
-
# @rbs return:
|
|
771
|
+
# @rbs return: ::String
|
|
762
772
|
def saddr6; attributes[:"saddr6"]&.value; end
|
|
763
773
|
# Gets the value of `daddr6` attribute in the message.
|
|
764
774
|
#--
|
|
765
|
-
# @rbs return:
|
|
775
|
+
# @rbs return: ::String
|
|
766
776
|
def daddr6; attributes[:"daddr6"]&.value; end
|
|
767
777
|
# Gets the value of `sport` attribute in the message.
|
|
768
778
|
#--
|
|
@@ -778,6 +788,8 @@ class Nfsd < ::Nl::Family
|
|
|
778
788
|
def compound_ops; attributes[:"compound_ops"]&.value; end
|
|
779
789
|
end
|
|
780
790
|
# set the maximum number of running threads
|
|
791
|
+
#
|
|
792
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
781
793
|
class DoThreadsSetRequest < ::Nl::Protocols::Genl::Message
|
|
782
794
|
TYPE = 2
|
|
783
795
|
FIXED_HEADER = nil
|
|
@@ -805,10 +817,17 @@ class Nfsd < ::Nl::Family
|
|
|
805
817
|
def min_threads; attributes[:"min_threads"]&.value; end
|
|
806
818
|
# Gets the value of `fh-key` attribute in the message.
|
|
807
819
|
#--
|
|
808
|
-
# @rbs return:
|
|
820
|
+
# @rbs return: ::String
|
|
809
821
|
def fh_key; attributes[:"fh_key"]&.value; end
|
|
810
822
|
end
|
|
811
823
|
# get the maximum number of running threads
|
|
824
|
+
class DoThreadsGetRequest < ::Nl::Protocols::Genl::Message
|
|
825
|
+
TYPE = 3
|
|
826
|
+
FIXED_HEADER = nil
|
|
827
|
+
ATTRIBUTE_SET = AttributeSets::Server
|
|
828
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
829
|
+
end
|
|
830
|
+
# get the maximum number of running threads
|
|
812
831
|
class DoThreadsGetReply < ::Nl::Protocols::Genl::Message
|
|
813
832
|
TYPE = 3
|
|
814
833
|
FIXED_HEADER = nil
|
|
@@ -836,6 +855,8 @@ class Nfsd < ::Nl::Family
|
|
|
836
855
|
def min_threads; attributes[:"min_threads"]&.value; end
|
|
837
856
|
end
|
|
838
857
|
# set nfs enabled versions
|
|
858
|
+
#
|
|
859
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
839
860
|
class DoVersionSetRequest < ::Nl::Protocols::Genl::Message
|
|
840
861
|
TYPE = 4
|
|
841
862
|
FIXED_HEADER = nil
|
|
@@ -847,6 +868,13 @@ class Nfsd < ::Nl::Family
|
|
|
847
868
|
def version; attributes[:"version"]&.value; end
|
|
848
869
|
end
|
|
849
870
|
# get nfs enabled versions
|
|
871
|
+
class DoVersionGetRequest < ::Nl::Protocols::Genl::Message
|
|
872
|
+
TYPE = 5
|
|
873
|
+
FIXED_HEADER = nil
|
|
874
|
+
ATTRIBUTE_SET = AttributeSets::ServerProto
|
|
875
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
876
|
+
end
|
|
877
|
+
# get nfs enabled versions
|
|
850
878
|
class DoVersionGetReply < ::Nl::Protocols::Genl::Message
|
|
851
879
|
TYPE = 5
|
|
852
880
|
FIXED_HEADER = nil
|
|
@@ -858,6 +886,8 @@ class Nfsd < ::Nl::Family
|
|
|
858
886
|
def version; attributes[:"version"]&.value; end
|
|
859
887
|
end
|
|
860
888
|
# set nfs running sockets
|
|
889
|
+
#
|
|
890
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
861
891
|
class DoListenerSetRequest < ::Nl::Protocols::Genl::Message
|
|
862
892
|
TYPE = 6
|
|
863
893
|
FIXED_HEADER = nil
|
|
@@ -869,6 +899,13 @@ class Nfsd < ::Nl::Family
|
|
|
869
899
|
def addr; attributes[:"addr"]&.value; end
|
|
870
900
|
end
|
|
871
901
|
# get nfs running listeners
|
|
902
|
+
class DoListenerGetRequest < ::Nl::Protocols::Genl::Message
|
|
903
|
+
TYPE = 7
|
|
904
|
+
FIXED_HEADER = nil
|
|
905
|
+
ATTRIBUTE_SET = AttributeSets::ServerSock
|
|
906
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
907
|
+
end
|
|
908
|
+
# get nfs running listeners
|
|
872
909
|
class DoListenerGetReply < ::Nl::Protocols::Genl::Message
|
|
873
910
|
TYPE = 7
|
|
874
911
|
FIXED_HEADER = nil
|
|
@@ -880,6 +917,8 @@ class Nfsd < ::Nl::Family
|
|
|
880
917
|
def addr; attributes[:"addr"]&.value; end
|
|
881
918
|
end
|
|
882
919
|
# set the current server pool-mode
|
|
920
|
+
#
|
|
921
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
883
922
|
class DoPoolModeSetRequest < ::Nl::Protocols::Genl::Message
|
|
884
923
|
TYPE = 8
|
|
885
924
|
FIXED_HEADER = nil
|
|
@@ -891,6 +930,13 @@ class Nfsd < ::Nl::Family
|
|
|
891
930
|
def mode; attributes[:"mode"]&.value; end
|
|
892
931
|
end
|
|
893
932
|
# get info about server pool-mode
|
|
933
|
+
class DoPoolModeGetRequest < ::Nl::Protocols::Genl::Message
|
|
934
|
+
TYPE = 9
|
|
935
|
+
FIXED_HEADER = nil
|
|
936
|
+
ATTRIBUTE_SET = AttributeSets::PoolMode
|
|
937
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
938
|
+
end
|
|
939
|
+
# get info about server pool-mode
|
|
894
940
|
class DoPoolModeGetReply < ::Nl::Protocols::Genl::Message
|
|
895
941
|
TYPE = 9
|
|
896
942
|
FIXED_HEADER = nil
|
|
@@ -906,6 +952,17 @@ class Nfsd < ::Nl::Family
|
|
|
906
952
|
def npools; attributes[:"npools"]&.value; end
|
|
907
953
|
end
|
|
908
954
|
# Dump all pending svc_export requests
|
|
955
|
+
#
|
|
956
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
957
|
+
class DumpSvcExportGetReqsRequest < ::Nl::Protocols::Genl::Message
|
|
958
|
+
TYPE = 11
|
|
959
|
+
FIXED_HEADER = nil
|
|
960
|
+
ATTRIBUTE_SET = AttributeSets::SvcExportReqs
|
|
961
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
962
|
+
end
|
|
963
|
+
# Dump all pending svc_export requests
|
|
964
|
+
#
|
|
965
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
909
966
|
class DumpSvcExportGetReqsReply < ::Nl::Protocols::Genl::Message
|
|
910
967
|
TYPE = 11
|
|
911
968
|
FIXED_HEADER = nil
|
|
@@ -917,6 +974,8 @@ class Nfsd < ::Nl::Family
|
|
|
917
974
|
def requests; attributes[:"requests"]&.value; end
|
|
918
975
|
end
|
|
919
976
|
# Respond to one or more svc_export requests
|
|
977
|
+
#
|
|
978
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
920
979
|
class DoSvcExportSetReqsRequest < ::Nl::Protocols::Genl::Message
|
|
921
980
|
TYPE = 12
|
|
922
981
|
FIXED_HEADER = nil
|
|
@@ -928,6 +987,17 @@ class Nfsd < ::Nl::Family
|
|
|
928
987
|
def requests; attributes[:"requests"]&.value; end
|
|
929
988
|
end
|
|
930
989
|
# Dump all pending expkey requests
|
|
990
|
+
#
|
|
991
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
992
|
+
class DumpExpkeyGetReqsRequest < ::Nl::Protocols::Genl::Message
|
|
993
|
+
TYPE = 13
|
|
994
|
+
FIXED_HEADER = nil
|
|
995
|
+
ATTRIBUTE_SET = AttributeSets::ExpkeyReqs
|
|
996
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
997
|
+
end
|
|
998
|
+
# Dump all pending expkey requests
|
|
999
|
+
#
|
|
1000
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
931
1001
|
class DumpExpkeyGetReqsReply < ::Nl::Protocols::Genl::Message
|
|
932
1002
|
TYPE = 13
|
|
933
1003
|
FIXED_HEADER = nil
|
|
@@ -939,6 +1009,8 @@ class Nfsd < ::Nl::Family
|
|
|
939
1009
|
def requests; attributes[:"requests"]&.value; end
|
|
940
1010
|
end
|
|
941
1011
|
# Respond to one or more expkey requests
|
|
1012
|
+
#
|
|
1013
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
942
1014
|
class DoExpkeySetReqsRequest < ::Nl::Protocols::Genl::Message
|
|
943
1015
|
TYPE = 14
|
|
944
1016
|
FIXED_HEADER = nil
|
|
@@ -950,6 +1022,8 @@ class Nfsd < ::Nl::Family
|
|
|
950
1022
|
def requests; attributes[:"requests"]&.value; end
|
|
951
1023
|
end
|
|
952
1024
|
# Flush nfsd caches (svc_export and/or expkey)
|
|
1025
|
+
#
|
|
1026
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
953
1027
|
class DoCacheFlushRequest < ::Nl::Protocols::Genl::Message
|
|
954
1028
|
TYPE = 15
|
|
955
1029
|
FIXED_HEADER = nil
|
|
@@ -961,6 +1035,8 @@ class Nfsd < ::Nl::Family
|
|
|
961
1035
|
def mask; attributes[:"mask"]&.value; end
|
|
962
1036
|
end
|
|
963
1037
|
# release NLM locks held by an IP address
|
|
1038
|
+
#
|
|
1039
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
964
1040
|
class DoUnlockIpRequest < ::Nl::Protocols::Genl::Message
|
|
965
1041
|
TYPE = 16
|
|
966
1042
|
FIXED_HEADER = nil
|
|
@@ -968,10 +1044,12 @@ class Nfsd < ::Nl::Family
|
|
|
968
1044
|
ATTRIBUTES = Ractor.make_shareable(%i[address])
|
|
969
1045
|
# Gets the value of `address` attribute in the message.
|
|
970
1046
|
#--
|
|
971
|
-
# @rbs return:
|
|
1047
|
+
# @rbs return: ::String
|
|
972
1048
|
def address; attributes[:"address"]&.value; end
|
|
973
1049
|
end
|
|
974
1050
|
# revoke NFS state under a filesystem path
|
|
1051
|
+
#
|
|
1052
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
975
1053
|
class DoUnlockFilesystemRequest < ::Nl::Protocols::Genl::Message
|
|
976
1054
|
TYPE = 17
|
|
977
1055
|
FIXED_HEADER = nil
|
|
@@ -983,6 +1061,8 @@ class Nfsd < ::Nl::Family
|
|
|
983
1061
|
def path; attributes[:"path"]&.value; end
|
|
984
1062
|
end
|
|
985
1063
|
# 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.
|
|
1064
|
+
#
|
|
1065
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
986
1066
|
class DoUnlockExportRequest < ::Nl::Protocols::Genl::Message
|
|
987
1067
|
TYPE = 18
|
|
988
1068
|
FIXED_HEADER = nil
|
|
@@ -994,65 +1074,295 @@ class Nfsd < ::Nl::Family
|
|
|
994
1074
|
def path; attributes[:"path"]&.value; end
|
|
995
1075
|
end
|
|
996
1076
|
end
|
|
1077
|
+
module Notifications
|
|
1078
|
+
# Notification that there are cache requests that need servicing
|
|
1079
|
+
#
|
|
1080
|
+
# Multicast group: `exportd`.
|
|
1081
|
+
class CacheNotify < ::Nl::Protocols::Genl::Message
|
|
1082
|
+
TYPE = 10
|
|
1083
|
+
FIXED_HEADER = nil
|
|
1084
|
+
ATTRIBUTE_SET = AttributeSets::CacheNotify
|
|
1085
|
+
ATTRIBUTES = Ractor.make_shareable(%i[cache_type])
|
|
1086
|
+
# Gets the value of `cache-type` attribute in the message.
|
|
1087
|
+
#--
|
|
1088
|
+
# @rbs return: ::Integer
|
|
1089
|
+
def cache_type; attributes[:"cache_type"]&.value; end
|
|
1090
|
+
end
|
|
1091
|
+
end
|
|
1092
|
+
NOTIFICATIONS = Ractor.make_shareable({10 => Notifications::CacheNotify}) #: Hash[::Integer, ::Class]
|
|
1093
|
+
# dump pending nfsd rpc
|
|
1094
|
+
#--
|
|
1095
|
+
# @rbs () -> Enumerable[Messages::DumpRpcStatusGetReply]
|
|
1096
|
+
# | () { (Messages::DumpRpcStatusGetReply) -> void } -> void
|
|
1097
|
+
def dump_rpc_status_get(**args, &block)
|
|
1098
|
+
exchange_message(:"dump", Messages::DumpRpcStatusGetRequest, Messages::DumpRpcStatusGetReply, args, &block)
|
|
1099
|
+
end
|
|
997
1100
|
# set the maximum number of running threads
|
|
1101
|
+
#
|
|
1102
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
998
1103
|
#--
|
|
999
|
-
# @rbs (?threads: ::Integer, ?gracetime: ::Integer, ?leasetime: ::Integer, ?scope: ::String, ?min_threads: ::Integer, ?fh_key:
|
|
1104
|
+
# @rbs (?threads: ::Integer, ?gracetime: ::Integer, ?leasetime: ::Integer, ?scope: ::String, ?min_threads: ::Integer, ?fh_key: ::String) -> void
|
|
1000
1105
|
def do_threads_set(**args)
|
|
1001
1106
|
exchange_message(:"do", Messages::DoThreadsSetRequest, nil, args)
|
|
1002
1107
|
end
|
|
1108
|
+
# get the maximum number of running threads
|
|
1109
|
+
#--
|
|
1110
|
+
# @rbs () -> Messages::DoThreadsGetReply
|
|
1111
|
+
def do_threads_get(**args)
|
|
1112
|
+
exchange_message(:"do", Messages::DoThreadsGetRequest, Messages::DoThreadsGetReply, args)
|
|
1113
|
+
end
|
|
1003
1114
|
# set nfs enabled versions
|
|
1115
|
+
#
|
|
1116
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1004
1117
|
#--
|
|
1005
1118
|
# @rbs (?version: AttributeSets::Version) -> void
|
|
1006
1119
|
def do_version_set(**args)
|
|
1007
1120
|
exchange_message(:"do", Messages::DoVersionSetRequest, nil, args)
|
|
1008
1121
|
end
|
|
1122
|
+
# get nfs enabled versions
|
|
1123
|
+
#--
|
|
1124
|
+
# @rbs () -> Messages::DoVersionGetReply
|
|
1125
|
+
def do_version_get(**args)
|
|
1126
|
+
exchange_message(:"do", Messages::DoVersionGetRequest, Messages::DoVersionGetReply, args)
|
|
1127
|
+
end
|
|
1009
1128
|
# set nfs running sockets
|
|
1129
|
+
#
|
|
1130
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1010
1131
|
#--
|
|
1011
1132
|
# @rbs (?addr: AttributeSets::Sock) -> void
|
|
1012
1133
|
def do_listener_set(**args)
|
|
1013
1134
|
exchange_message(:"do", Messages::DoListenerSetRequest, nil, args)
|
|
1014
1135
|
end
|
|
1136
|
+
# get nfs running listeners
|
|
1137
|
+
#--
|
|
1138
|
+
# @rbs () -> Messages::DoListenerGetReply
|
|
1139
|
+
def do_listener_get(**args)
|
|
1140
|
+
exchange_message(:"do", Messages::DoListenerGetRequest, Messages::DoListenerGetReply, args)
|
|
1141
|
+
end
|
|
1015
1142
|
# set the current server pool-mode
|
|
1143
|
+
#
|
|
1144
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1016
1145
|
#--
|
|
1017
1146
|
# @rbs (?mode: ::String) -> void
|
|
1018
1147
|
def do_pool_mode_set(**args)
|
|
1019
1148
|
exchange_message(:"do", Messages::DoPoolModeSetRequest, nil, args)
|
|
1020
1149
|
end
|
|
1150
|
+
# get info about server pool-mode
|
|
1151
|
+
#--
|
|
1152
|
+
# @rbs () -> Messages::DoPoolModeGetReply
|
|
1153
|
+
def do_pool_mode_get(**args)
|
|
1154
|
+
exchange_message(:"do", Messages::DoPoolModeGetRequest, Messages::DoPoolModeGetReply, args)
|
|
1155
|
+
end
|
|
1156
|
+
# Dump all pending svc_export requests
|
|
1157
|
+
#
|
|
1158
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1159
|
+
#--
|
|
1160
|
+
# @rbs () -> Enumerable[Messages::DumpSvcExportGetReqsReply]
|
|
1161
|
+
# | () { (Messages::DumpSvcExportGetReqsReply) -> void } -> void
|
|
1162
|
+
def dump_svc_export_get_reqs(**args, &block)
|
|
1163
|
+
exchange_message(:"dump", Messages::DumpSvcExportGetReqsRequest, Messages::DumpSvcExportGetReqsReply, args, &block)
|
|
1164
|
+
end
|
|
1021
1165
|
# Respond to one or more svc_export requests
|
|
1166
|
+
#
|
|
1167
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1022
1168
|
#--
|
|
1023
1169
|
# @rbs (?requests: AttributeSets::SvcExport) -> void
|
|
1024
1170
|
def do_svc_export_set_reqs(**args)
|
|
1025
1171
|
exchange_message(:"do", Messages::DoSvcExportSetReqsRequest, nil, args)
|
|
1026
1172
|
end
|
|
1173
|
+
# Dump all pending expkey requests
|
|
1174
|
+
#
|
|
1175
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1176
|
+
#--
|
|
1177
|
+
# @rbs () -> Enumerable[Messages::DumpExpkeyGetReqsReply]
|
|
1178
|
+
# | () { (Messages::DumpExpkeyGetReqsReply) -> void } -> void
|
|
1179
|
+
def dump_expkey_get_reqs(**args, &block)
|
|
1180
|
+
exchange_message(:"dump", Messages::DumpExpkeyGetReqsRequest, Messages::DumpExpkeyGetReqsReply, args, &block)
|
|
1181
|
+
end
|
|
1027
1182
|
# Respond to one or more expkey requests
|
|
1183
|
+
#
|
|
1184
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1028
1185
|
#--
|
|
1029
1186
|
# @rbs (?requests: AttributeSets::Expkey) -> void
|
|
1030
1187
|
def do_expkey_set_reqs(**args)
|
|
1031
1188
|
exchange_message(:"do", Messages::DoExpkeySetReqsRequest, nil, args)
|
|
1032
1189
|
end
|
|
1033
1190
|
# Flush nfsd caches (svc_export and/or expkey)
|
|
1191
|
+
#
|
|
1192
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1034
1193
|
#--
|
|
1035
1194
|
# @rbs (?mask: ::Integer) -> void
|
|
1036
1195
|
def do_cache_flush(**args)
|
|
1037
1196
|
exchange_message(:"do", Messages::DoCacheFlushRequest, nil, args)
|
|
1038
1197
|
end
|
|
1039
1198
|
# release NLM locks held by an IP address
|
|
1199
|
+
#
|
|
1200
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1040
1201
|
#--
|
|
1041
|
-
# @rbs (?address:
|
|
1202
|
+
# @rbs (?address: ::String) -> void
|
|
1042
1203
|
def do_unlock_ip(**args)
|
|
1043
1204
|
exchange_message(:"do", Messages::DoUnlockIpRequest, nil, args)
|
|
1044
1205
|
end
|
|
1045
1206
|
# revoke NFS state under a filesystem path
|
|
1207
|
+
#
|
|
1208
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1046
1209
|
#--
|
|
1047
1210
|
# @rbs (?path: ::String) -> void
|
|
1048
1211
|
def do_unlock_filesystem(**args)
|
|
1049
1212
|
exchange_message(:"do", Messages::DoUnlockFilesystemRequest, nil, args)
|
|
1050
1213
|
end
|
|
1051
1214
|
# 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.
|
|
1215
|
+
#
|
|
1216
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1052
1217
|
#--
|
|
1053
1218
|
# @rbs (?path: ::String) -> void
|
|
1054
1219
|
def do_unlock_export(**args)
|
|
1055
1220
|
exchange_message(:"do", Messages::DoUnlockExportRequest, nil, args)
|
|
1056
1221
|
end
|
|
1222
|
+
class AsyncOperations
|
|
1223
|
+
# :nodoc:
|
|
1224
|
+
def initialize(&exchange)
|
|
1225
|
+
@exchange = exchange
|
|
1226
|
+
end
|
|
1227
|
+
# dump pending nfsd rpc
|
|
1228
|
+
#--
|
|
1229
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpRpcStatusGetReply]
|
|
1230
|
+
def dump_rpc_status_get(**args)
|
|
1231
|
+
@exchange.call(:"dump", Messages::DumpRpcStatusGetRequest, Messages::DumpRpcStatusGetReply, args)
|
|
1232
|
+
end
|
|
1233
|
+
# set the maximum number of running threads
|
|
1234
|
+
#
|
|
1235
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1236
|
+
#--
|
|
1237
|
+
# @rbs (?threads: ::Integer, ?gracetime: ::Integer, ?leasetime: ::Integer, ?scope: ::String, ?min_threads: ::Integer, ?fh_key: ::String) -> ::Nl::Async::Future[void]
|
|
1238
|
+
def do_threads_set(**args)
|
|
1239
|
+
@exchange.call(:"do", Messages::DoThreadsSetRequest, nil, args)
|
|
1240
|
+
end
|
|
1241
|
+
# get the maximum number of running threads
|
|
1242
|
+
#--
|
|
1243
|
+
# @rbs () -> ::Nl::Async::Future[Messages::DoThreadsGetReply]
|
|
1244
|
+
def do_threads_get(**args)
|
|
1245
|
+
@exchange.call(:"do", Messages::DoThreadsGetRequest, Messages::DoThreadsGetReply, args)
|
|
1246
|
+
end
|
|
1247
|
+
# set nfs enabled versions
|
|
1248
|
+
#
|
|
1249
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1250
|
+
#--
|
|
1251
|
+
# @rbs (?version: AttributeSets::Version) -> ::Nl::Async::Future[void]
|
|
1252
|
+
def do_version_set(**args)
|
|
1253
|
+
@exchange.call(:"do", Messages::DoVersionSetRequest, nil, args)
|
|
1254
|
+
end
|
|
1255
|
+
# get nfs enabled versions
|
|
1256
|
+
#--
|
|
1257
|
+
# @rbs () -> ::Nl::Async::Future[Messages::DoVersionGetReply]
|
|
1258
|
+
def do_version_get(**args)
|
|
1259
|
+
@exchange.call(:"do", Messages::DoVersionGetRequest, Messages::DoVersionGetReply, args)
|
|
1260
|
+
end
|
|
1261
|
+
# set nfs running sockets
|
|
1262
|
+
#
|
|
1263
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1264
|
+
#--
|
|
1265
|
+
# @rbs (?addr: AttributeSets::Sock) -> ::Nl::Async::Future[void]
|
|
1266
|
+
def do_listener_set(**args)
|
|
1267
|
+
@exchange.call(:"do", Messages::DoListenerSetRequest, nil, args)
|
|
1268
|
+
end
|
|
1269
|
+
# get nfs running listeners
|
|
1270
|
+
#--
|
|
1271
|
+
# @rbs () -> ::Nl::Async::Future[Messages::DoListenerGetReply]
|
|
1272
|
+
def do_listener_get(**args)
|
|
1273
|
+
@exchange.call(:"do", Messages::DoListenerGetRequest, Messages::DoListenerGetReply, args)
|
|
1274
|
+
end
|
|
1275
|
+
# set the current server pool-mode
|
|
1276
|
+
#
|
|
1277
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1278
|
+
#--
|
|
1279
|
+
# @rbs (?mode: ::String) -> ::Nl::Async::Future[void]
|
|
1280
|
+
def do_pool_mode_set(**args)
|
|
1281
|
+
@exchange.call(:"do", Messages::DoPoolModeSetRequest, nil, args)
|
|
1282
|
+
end
|
|
1283
|
+
# get info about server pool-mode
|
|
1284
|
+
#--
|
|
1285
|
+
# @rbs () -> ::Nl::Async::Future[Messages::DoPoolModeGetReply]
|
|
1286
|
+
def do_pool_mode_get(**args)
|
|
1287
|
+
@exchange.call(:"do", Messages::DoPoolModeGetRequest, Messages::DoPoolModeGetReply, args)
|
|
1288
|
+
end
|
|
1289
|
+
# Dump all pending svc_export requests
|
|
1290
|
+
#
|
|
1291
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1292
|
+
#--
|
|
1293
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpSvcExportGetReqsReply]
|
|
1294
|
+
def dump_svc_export_get_reqs(**args)
|
|
1295
|
+
@exchange.call(:"dump", Messages::DumpSvcExportGetReqsRequest, Messages::DumpSvcExportGetReqsReply, args)
|
|
1296
|
+
end
|
|
1297
|
+
# Respond to one or more svc_export requests
|
|
1298
|
+
#
|
|
1299
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1300
|
+
#--
|
|
1301
|
+
# @rbs (?requests: AttributeSets::SvcExport) -> ::Nl::Async::Future[void]
|
|
1302
|
+
def do_svc_export_set_reqs(**args)
|
|
1303
|
+
@exchange.call(:"do", Messages::DoSvcExportSetReqsRequest, nil, args)
|
|
1304
|
+
end
|
|
1305
|
+
# Dump all pending expkey requests
|
|
1306
|
+
#
|
|
1307
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1308
|
+
#--
|
|
1309
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpExpkeyGetReqsReply]
|
|
1310
|
+
def dump_expkey_get_reqs(**args)
|
|
1311
|
+
@exchange.call(:"dump", Messages::DumpExpkeyGetReqsRequest, Messages::DumpExpkeyGetReqsReply, args)
|
|
1312
|
+
end
|
|
1313
|
+
# Respond to one or more expkey requests
|
|
1314
|
+
#
|
|
1315
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1316
|
+
#--
|
|
1317
|
+
# @rbs (?requests: AttributeSets::Expkey) -> ::Nl::Async::Future[void]
|
|
1318
|
+
def do_expkey_set_reqs(**args)
|
|
1319
|
+
@exchange.call(:"do", Messages::DoExpkeySetReqsRequest, nil, args)
|
|
1320
|
+
end
|
|
1321
|
+
# Flush nfsd caches (svc_export and/or expkey)
|
|
1322
|
+
#
|
|
1323
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1324
|
+
#--
|
|
1325
|
+
# @rbs (?mask: ::Integer) -> ::Nl::Async::Future[void]
|
|
1326
|
+
def do_cache_flush(**args)
|
|
1327
|
+
@exchange.call(:"do", Messages::DoCacheFlushRequest, nil, args)
|
|
1328
|
+
end
|
|
1329
|
+
# release NLM locks held by an IP address
|
|
1330
|
+
#
|
|
1331
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1332
|
+
#--
|
|
1333
|
+
# @rbs (?address: ::String) -> ::Nl::Async::Future[void]
|
|
1334
|
+
def do_unlock_ip(**args)
|
|
1335
|
+
@exchange.call(:"do", Messages::DoUnlockIpRequest, nil, args)
|
|
1336
|
+
end
|
|
1337
|
+
# revoke NFS state under a filesystem path
|
|
1338
|
+
#
|
|
1339
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1340
|
+
#--
|
|
1341
|
+
# @rbs (?path: ::String) -> ::Nl::Async::Future[void]
|
|
1342
|
+
def do_unlock_filesystem(**args)
|
|
1343
|
+
@exchange.call(:"do", Messages::DoUnlockFilesystemRequest, nil, args)
|
|
1344
|
+
end
|
|
1345
|
+
# 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.
|
|
1346
|
+
#
|
|
1347
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
1348
|
+
#--
|
|
1349
|
+
# @rbs (?path: ::String) -> ::Nl::Async::Future[void]
|
|
1350
|
+
def do_unlock_export(**args)
|
|
1351
|
+
@exchange.call(:"do", Messages::DoUnlockExportRequest, nil, args)
|
|
1352
|
+
end
|
|
1353
|
+
end
|
|
1354
|
+
# Returns the asynchronous operation facade for this family.
|
|
1355
|
+
#--
|
|
1356
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
1357
|
+
def async(stream_capacity: nil)
|
|
1358
|
+
return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
|
|
1359
|
+
build_async_facade(AsyncOperations, stream_capacity:)
|
|
1360
|
+
end
|
|
1361
|
+
#--
|
|
1362
|
+
# @rbs (*(:none | :exportd) groups) -> self
|
|
1363
|
+
def subscribe(*groups) = super
|
|
1364
|
+
#--
|
|
1365
|
+
# @rbs (*(:none | :exportd) groups) -> self
|
|
1366
|
+
def unsubscribe(*groups) = super
|
|
1057
1367
|
end
|
|
1058
1368
|
end; end
|