@jsonjoy.com/json-pack 1.21.0 → 17.60.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.
- package/lib/JsonPackExtension.d.ts +8 -0
- package/lib/JsonPackExtension.js +8 -0
- package/lib/JsonPackExtension.js.map +1 -1
- package/lib/JsonPackMpint.d.ts +25 -0
- package/lib/JsonPackMpint.js +31 -1
- package/lib/JsonPackMpint.js.map +1 -1
- package/lib/JsonPackValue.d.ts +10 -0
- package/lib/JsonPackValue.js +10 -0
- package/lib/JsonPackValue.js.map +1 -1
- package/lib/avro/AvroDecoder.d.ts +67 -0
- package/lib/avro/AvroDecoder.js +77 -5
- package/lib/avro/AvroDecoder.js.map +1 -1
- package/lib/avro/AvroEncoder.d.ts +71 -0
- package/lib/avro/AvroEncoder.js +90 -12
- package/lib/avro/AvroEncoder.js.map +1 -1
- package/lib/avro/AvroSchemaDecoder.d.ts +53 -0
- package/lib/avro/AvroSchemaDecoder.js +60 -3
- package/lib/avro/AvroSchemaDecoder.js.map +1 -1
- package/lib/avro/AvroSchemaEncoder.d.ts +65 -0
- package/lib/avro/AvroSchemaEncoder.js +84 -5
- package/lib/avro/AvroSchemaEncoder.js.map +1 -1
- package/lib/avro/AvroSchemaValidator.d.ts +10 -0
- package/lib/avro/AvroSchemaValidator.js +18 -1
- package/lib/avro/AvroSchemaValidator.js.map +1 -1
- package/lib/avro/types.d.ts +31 -0
- package/lib/avro/types.js +4 -0
- package/lib/avro/types.js.map +1 -1
- package/lib/bencode/BencodeDecoder.js +9 -9
- package/lib/bencode/BencodeDecoder.js.map +1 -1
- package/lib/bencode/BencodeEncoder.d.ts +5 -0
- package/lib/bencode/BencodeEncoder.js +25 -20
- package/lib/bencode/BencodeEncoder.js.map +1 -1
- package/lib/bson/BsonDecoder.js +48 -33
- package/lib/bson/BsonDecoder.js.map +1 -1
- package/lib/bson/BsonEncoder.js +11 -3
- package/lib/bson/BsonEncoder.js.map +1 -1
- package/lib/cbor/CborDecoder.d.ts +24 -0
- package/lib/cbor/CborDecoder.js +94 -56
- package/lib/cbor/CborDecoder.js.map +1 -1
- package/lib/cbor/CborDecoderBase.d.ts +1 -0
- package/lib/cbor/CborDecoderBase.js +63 -53
- package/lib/cbor/CborDecoderBase.js.map +1 -1
- package/lib/cbor/CborEncoder.d.ts +5 -0
- package/lib/cbor/CborEncoder.js +9 -3
- package/lib/cbor/CborEncoder.js.map +1 -1
- package/lib/cbor/CborEncoderFast.d.ts +7 -0
- package/lib/cbor/CborEncoderFast.js +22 -14
- package/lib/cbor/CborEncoderFast.js.map +1 -1
- package/lib/cbor/CborEncoderStable.d.ts +1 -0
- package/lib/cbor/CborEncoderStable.js +2 -1
- package/lib/cbor/CborEncoderStable.js.map +1 -1
- package/lib/cbor/shared.d.ts +1 -1
- package/lib/codecs/Codecs.d.ts +1 -1
- package/lib/codecs/cbor.js +1 -1
- package/lib/codecs/cbor.js.map +1 -1
- package/lib/codecs/json.js +1 -1
- package/lib/codecs/json.js.map +1 -1
- package/lib/codecs/msgpack.js +1 -1
- package/lib/codecs/msgpack.js.map +1 -1
- package/lib/ejson/EjsonDecoder.d.ts +5 -0
- package/lib/ejson/EjsonDecoder.js +72 -37
- package/lib/ejson/EjsonDecoder.js.map +1 -1
- package/lib/ejson/EjsonEncoder.d.ts +5 -0
- package/lib/ejson/EjsonEncoder.js +149 -114
- package/lib/ejson/EjsonEncoder.js.map +1 -1
- package/lib/ejson/index.js +1 -0
- package/lib/ejson/index.js.map +1 -1
- package/lib/ion/Import.d.ts +1 -1
- package/lib/ion/Import.js.map +1 -1
- package/lib/ion/IonDecoder.d.ts +0 -1
- package/lib/ion/IonDecoder.js +4 -3
- package/lib/ion/IonDecoder.js.map +1 -1
- package/lib/ion/IonDecoderBase.js +29 -18
- package/lib/ion/IonDecoderBase.js.map +1 -1
- package/lib/ion/IonEncoderFast.d.ts +1 -1
- package/lib/ion/IonEncoderFast.js +30 -30
- package/lib/ion/IonEncoderFast.js.map +1 -1
- package/lib/ion/ast.d.ts +4 -1
- package/lib/ion/symbols.d.ts +1 -1
- package/lib/json/JsonDecoder.js +72 -66
- package/lib/json/JsonDecoder.js.map +1 -1
- package/lib/json/JsonDecoderDag.js +14 -0
- package/lib/json/JsonDecoderDag.js.map +1 -1
- package/lib/json/JsonDecoderPartial.d.ts +22 -0
- package/lib/json/JsonDecoderPartial.js +30 -8
- package/lib/json/JsonDecoderPartial.js.map +1 -1
- package/lib/json/JsonEncoder.d.ts +5 -0
- package/lib/json/JsonEncoder.js +59 -51
- package/lib/json/JsonEncoder.js.map +1 -1
- package/lib/json/JsonEncoderDag.d.ts +17 -0
- package/lib/json/JsonEncoderDag.js +27 -10
- package/lib/json/JsonEncoderDag.js.map +1 -1
- package/lib/json/JsonEncoderStable.js +5 -5
- package/lib/json/JsonEncoderStable.js.map +1 -1
- package/lib/json-binary/codec.d.ts +8 -1
- package/lib/json-binary/codec.js +7 -0
- package/lib/json-binary/codec.js.map +1 -1
- package/lib/msgpack/MsgPackDecoder.d.ts +27 -0
- package/lib/msgpack/MsgPackDecoder.js +55 -23
- package/lib/msgpack/MsgPackDecoder.js.map +1 -1
- package/lib/msgpack/MsgPackDecoderFast.d.ts +8 -0
- package/lib/msgpack/MsgPackDecoderFast.js +14 -5
- package/lib/msgpack/MsgPackDecoderFast.js.map +1 -1
- package/lib/msgpack/MsgPackEncoder.d.ts +3 -0
- package/lib/msgpack/MsgPackEncoder.js +7 -4
- package/lib/msgpack/MsgPackEncoder.js.map +1 -1
- package/lib/msgpack/MsgPackEncoderFast.d.ts +26 -4
- package/lib/msgpack/MsgPackEncoderFast.js +31 -0
- package/lib/msgpack/MsgPackEncoderFast.js.map +1 -1
- package/lib/msgpack/MsgPackEncoderStable.d.ts +3 -0
- package/lib/msgpack/MsgPackEncoderStable.js +3 -0
- package/lib/msgpack/MsgPackEncoderStable.js.map +1 -1
- package/lib/msgpack/MsgPackToJsonConverter.d.ts +30 -4
- package/lib/msgpack/MsgPackToJsonConverter.js +32 -5
- package/lib/msgpack/MsgPackToJsonConverter.js.map +1 -1
- package/lib/msgpack/index.d.ts +29 -0
- package/lib/msgpack/index.js +30 -0
- package/lib/msgpack/index.js.map +1 -1
- package/lib/msgpack/shallow-read.js +7 -7
- package/lib/msgpack/shallow-read.js.map +1 -1
- package/lib/msgpack/types.d.ts +1 -0
- package/lib/msgpack/util.d.ts +1 -1
- package/lib/nfs/v3/FullNfsv3Encoder.d.ts +3 -3
- package/lib/nfs/v3/FullNfsv3Encoder.js +3 -3
- package/lib/nfs/v3/FullNfsv3Encoder.js.map +1 -1
- package/lib/nfs/v3/Nfsv3Decoder.js +51 -50
- package/lib/nfs/v3/Nfsv3Decoder.js.map +1 -1
- package/lib/nfs/v3/Nfsv3Encoder.d.ts +2 -2
- package/lib/nfs/v3/Nfsv3Encoder.js +52 -52
- package/lib/nfs/v3/Nfsv3Encoder.js.map +1 -1
- package/lib/nfs/v3/constants.d.ts +34 -0
- package/lib/nfs/v3/constants.js +4 -0
- package/lib/nfs/v3/constants.js.map +1 -1
- package/lib/nfs/v3/locks/NlmDecoder.js +20 -20
- package/lib/nfs/v3/locks/NlmDecoder.js.map +1 -1
- package/lib/nfs/v3/locks/NlmEncoder.d.ts +2 -2
- package/lib/nfs/v3/locks/NlmEncoder.js +20 -20
- package/lib/nfs/v3/locks/NlmEncoder.js.map +1 -1
- package/lib/nfs/v3/locks/constants.d.ts +9 -0
- package/lib/nfs/v3/locks/messages.d.ts +58 -1
- package/lib/nfs/v3/locks/messages.js +54 -0
- package/lib/nfs/v3/locks/messages.js.map +1 -1
- package/lib/nfs/v3/locks/structs.d.ts +15 -0
- package/lib/nfs/v3/locks/structs.js +15 -0
- package/lib/nfs/v3/locks/structs.js.map +1 -1
- package/lib/nfs/v3/messages.d.ts +249 -0
- package/lib/nfs/v3/messages.js +249 -0
- package/lib/nfs/v3/messages.js.map +1 -1
- package/lib/nfs/v3/mount/MountDecoder.js +12 -12
- package/lib/nfs/v3/mount/MountEncoder.d.ts +2 -2
- package/lib/nfs/v3/mount/MountEncoder.js +13 -13
- package/lib/nfs/v3/mount/MountEncoder.js.map +1 -1
- package/lib/nfs/v3/mount/constants.d.ts +9 -0
- package/lib/nfs/v3/mount/messages.d.ts +31 -1
- package/lib/nfs/v3/mount/messages.js +27 -0
- package/lib/nfs/v3/mount/messages.js.map +1 -1
- package/lib/nfs/v3/mount/structs.d.ts +15 -0
- package/lib/nfs/v3/mount/structs.js +15 -0
- package/lib/nfs/v3/mount/structs.js.map +1 -1
- package/lib/nfs/v3/structs.d.ts +78 -0
- package/lib/nfs/v3/structs.js +78 -0
- package/lib/nfs/v3/structs.js.map +1 -1
- package/lib/nfs/v4/Nfsv4Decoder.d.ts +0 -2
- package/lib/nfs/v4/Nfsv4Decoder.js +96 -102
- package/lib/nfs/v4/Nfsv4Decoder.js.map +1 -1
- package/lib/nfs/v4/Nfsv4Encoder.d.ts +2 -2
- package/lib/nfs/v4/Nfsv4Encoder.js +1 -1
- package/lib/nfs/v4/Nfsv4Encoder.js.map +1 -1
- package/lib/nfs/v4/Nfsv4FullEncoder.d.ts +4 -4
- package/lib/nfs/v4/Nfsv4FullEncoder.js +4 -4
- package/lib/nfs/v4/Nfsv4FullEncoder.js.map +1 -1
- package/lib/nfs/v4/attributes.d.ts +62 -0
- package/lib/nfs/v4/attributes.js +209 -147
- package/lib/nfs/v4/attributes.js.map +1 -1
- package/lib/nfs/v4/builder.d.ts +274 -1
- package/lib/nfs/v4/builder.js +283 -10
- package/lib/nfs/v4/builder.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsDir.d.ts +4 -1
- package/lib/nfs/v4/client/NfsFsDir.js +8 -5
- package/lib/nfs/v4/client/NfsFsDir.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsDirent.d.ts +3 -0
- package/lib/nfs/v4/client/NfsFsDirent.js +10 -7
- package/lib/nfs/v4/client/NfsFsDirent.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsFileHandle.d.ts +4 -3
- package/lib/nfs/v4/client/NfsFsFileHandle.js +13 -10
- package/lib/nfs/v4/client/NfsFsFileHandle.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsStats.d.ts +3 -0
- package/lib/nfs/v4/client/NfsFsStats.js +10 -7
- package/lib/nfs/v4/client/NfsFsStats.js.map +1 -1
- package/lib/nfs/v4/client/Nfsv4FsClient.d.ts +2 -3
- package/lib/nfs/v4/client/Nfsv4FsClient.js +92 -92
- package/lib/nfs/v4/client/Nfsv4FsClient.js.map +1 -1
- package/lib/nfs/v4/client/Nfsv4TcpClient.d.ts +6 -6
- package/lib/nfs/v4/client/Nfsv4TcpClient.js +3 -3
- package/lib/nfs/v4/client/Nfsv4TcpClient.js.map +1 -1
- package/lib/nfs/v4/client/types.d.ts +1 -1
- package/lib/nfs/v4/constants.d.ts +78 -1
- package/lib/nfs/v4/format.d.ts +1 -1
- package/lib/nfs/v4/format.js +229 -229
- package/lib/nfs/v4/format.js.map +1 -1
- package/lib/nfs/v4/messages.js +101 -101
- package/lib/nfs/v4/messages.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.d.ts +20 -1
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js +29 -8
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4Connection.d.ts +6 -3
- package/lib/nfs/v4/server/Nfsv4Connection.js +11 -8
- package/lib/nfs/v4/server/Nfsv4Connection.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4TcpServer.d.ts +2 -3
- package/lib/nfs/v4/server/Nfsv4TcpServer.js +1 -0
- package/lib/nfs/v4/server/Nfsv4TcpServer.js.map +1 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.d.ts +69 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.js +43 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.js.map +1 -1
- package/lib/nfs/v4/server/operations/ClientRecord.d.ts +98 -1
- package/lib/nfs/v4/server/operations/ClientRecord.js +54 -1
- package/lib/nfs/v4/server/operations/ClientRecord.js.map +1 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.d.ts +22 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.js +16 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.js.map +1 -1
- package/lib/nfs/v4/server/operations/LockOwnerState.d.ts +75 -2
- package/lib/nfs/v4/server/operations/LockOwnerState.js +43 -1
- package/lib/nfs/v4/server/operations/LockOwnerState.js.map +1 -1
- package/lib/nfs/v4/server/operations/LockStateid.d.ts +55 -1
- package/lib/nfs/v4/server/operations/LockStateid.js +37 -1
- package/lib/nfs/v4/server/operations/LockStateid.js.map +1 -1
- package/lib/nfs/v4/server/operations/Nfsv4Operations.d.ts +2 -1
- package/lib/nfs/v4/server/operations/Nfsv4OperationsNotImpl.d.ts +2 -2
- package/lib/nfs/v4/server/operations/OpenFileState.d.ts +90 -2
- package/lib/nfs/v4/server/operations/OpenFileState.js +52 -1
- package/lib/nfs/v4/server/operations/OpenFileState.js.map +1 -1
- package/lib/nfs/v4/server/operations/OpenOwnerState.d.ts +76 -2
- package/lib/nfs/v4/server/operations/OpenOwnerState.js +44 -1
- package/lib/nfs/v4/server/operations/OpenOwnerState.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.d.ts +73 -3
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js +261 -187
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/attrs.d.ts +13 -1
- package/lib/nfs/v4/server/operations/node/attrs.js +75 -62
- package/lib/nfs/v4/server/operations/node/attrs.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/fh.d.ts +67 -2
- package/lib/nfs/v4/server/operations/node/fh.js +83 -21
- package/lib/nfs/v4/server/operations/node/fh.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/util.js +4 -4
- package/lib/nfs/v4/server/operations/node/util.js.map +1 -1
- package/lib/nfs/v4/server/util.d.ts +0 -1
- package/lib/nfs/v4/server/util.js +40 -40
- package/lib/nfs/v4/structs.d.ts +136 -4
- package/lib/nfs/v4/structs.js +129 -0
- package/lib/nfs/v4/structs.js.map +1 -1
- package/lib/resp/RespDecoder.d.ts +9 -0
- package/lib/resp/RespDecoder.js +93 -76
- package/lib/resp/RespDecoder.js.map +1 -1
- package/lib/resp/RespEncoder.d.ts +8 -0
- package/lib/resp/RespEncoder.js +107 -89
- package/lib/resp/RespEncoder.js.map +1 -1
- package/lib/resp/RespEncoderLegacy.d.ts +3 -0
- package/lib/resp/RespEncoderLegacy.js +7 -4
- package/lib/resp/RespEncoderLegacy.js.map +1 -1
- package/lib/resp/RespStreamingDecoder.d.ts +48 -0
- package/lib/resp/RespStreamingDecoder.js +48 -0
- package/lib/resp/RespStreamingDecoder.js.map +1 -1
- package/lib/resp/constants.d.ts +19 -19
- package/lib/rm/RmRecordEncoder.d.ts +15 -1
- package/lib/rm/RmRecordEncoder.js +15 -1
- package/lib/rm/RmRecordEncoder.js.map +1 -1
- package/lib/rpc/RpcMessageDecoder.d.ts +1 -1
- package/lib/rpc/RpcMessageDecoder.js +8 -7
- package/lib/rpc/RpcMessageDecoder.js.map +1 -1
- package/lib/rpc/RpcMessageEncoder.d.ts +2 -2
- package/lib/rpc/RpcMessageEncoder.js +6 -6
- package/lib/rpc/RpcMessageEncoder.js.map +1 -1
- package/lib/rpc/constants.d.ts +76 -28
- package/lib/rpc/constants.js +10 -0
- package/lib/rpc/constants.js.map +1 -1
- package/lib/ssh/SshDecoder.d.ts +46 -0
- package/lib/ssh/SshDecoder.js +52 -2
- package/lib/ssh/SshDecoder.js.map +1 -1
- package/lib/ssh/SshEncoder.d.ts +69 -0
- package/lib/ssh/SshEncoder.js +81 -8
- package/lib/ssh/SshEncoder.js.map +1 -1
- package/lib/ssh/index.d.ts +6 -0
- package/lib/ssh/index.js +6 -0
- package/lib/ssh/index.js.map +1 -1
- package/lib/ubjson/UbjsonDecoder.js +1 -1
- package/lib/ubjson/UbjsonDecoder.js.map +1 -1
- package/lib/ubjson/UbjsonEncoder.js +6 -5
- package/lib/ubjson/UbjsonEncoder.js.map +1 -1
- package/lib/util/CompressionTable.js +4 -4
- package/lib/util/CompressionTable.js.map +1 -1
- package/lib/util/DecompressionTable.js +3 -2
- package/lib/util/DecompressionTable.js.map +1 -1
- package/lib/ws/WsFrameDecoder.d.ts +18 -0
- package/lib/ws/WsFrameDecoder.js +18 -0
- package/lib/ws/WsFrameDecoder.js.map +1 -1
- package/lib/ws/WsFrameEncoder.d.ts +1 -1
- package/lib/ws/WsFrameEncoder.js +3 -3
- package/lib/ws/WsFrameEncoder.js.map +1 -1
- package/lib/ws/constants.js +5 -0
- package/lib/ws/constants.js.map +1 -1
- package/lib/xdr/XdrDecoder.d.ts +62 -0
- package/lib/xdr/XdrDecoder.js +73 -6
- package/lib/xdr/XdrDecoder.js.map +1 -1
- package/lib/xdr/XdrEncoder.d.ts +71 -0
- package/lib/xdr/XdrEncoder.js +88 -13
- package/lib/xdr/XdrEncoder.js.map +1 -1
- package/lib/xdr/XdrSchemaDecoder.d.ts +40 -0
- package/lib/xdr/XdrSchemaDecoder.js +52 -0
- package/lib/xdr/XdrSchemaDecoder.js.map +1 -1
- package/lib/xdr/XdrSchemaEncoder.d.ts +5 -0
- package/lib/xdr/XdrSchemaEncoder.js +9 -0
- package/lib/xdr/XdrSchemaEncoder.js.map +1 -1
- package/lib/xdr/XdrSchemaValidator.d.ts +9 -0
- package/lib/xdr/XdrSchemaValidator.js +42 -11
- package/lib/xdr/XdrSchemaValidator.js.map +1 -1
- package/lib/xdr/XdrUnion.d.ts +5 -0
- package/lib/xdr/XdrUnion.js +5 -0
- package/lib/xdr/XdrUnion.js.map +1 -1
- package/lib/xdr/index.d.ts +14 -0
- package/lib/xdr/index.js +14 -0
- package/lib/xdr/index.js.map +1 -1
- package/lib/xdr/types.d.ts +46 -0
- package/package.json +32 -55
package/lib/nfs/v4/messages.js
CHANGED
|
@@ -14,7 +14,7 @@ class Nfsv4AccessRequest {
|
|
|
14
14
|
this.access = access;
|
|
15
15
|
}
|
|
16
16
|
encode(xdr) {
|
|
17
|
-
xdr.writeUnsignedInt(3);
|
|
17
|
+
xdr.writeUnsignedInt(3 /* Nfsv4Op.ACCESS */);
|
|
18
18
|
xdr.writeUnsignedInt(this.access);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -36,9 +36,9 @@ class Nfsv4AccessResponse {
|
|
|
36
36
|
this.resok = resok;
|
|
37
37
|
}
|
|
38
38
|
encode(xdr) {
|
|
39
|
-
xdr.writeUnsignedInt(3);
|
|
39
|
+
xdr.writeUnsignedInt(3 /* Nfsv4Op.ACCESS */);
|
|
40
40
|
xdr.writeUnsignedInt(this.status);
|
|
41
|
-
if (this.status === 0)
|
|
41
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
42
42
|
this.resok?.encode(xdr);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -54,7 +54,7 @@ class Nfsv4CloseRequest {
|
|
|
54
54
|
this.openStateid = openStateid;
|
|
55
55
|
}
|
|
56
56
|
encode(xdr) {
|
|
57
|
-
xdr.writeUnsignedInt(4);
|
|
57
|
+
xdr.writeUnsignedInt(4 /* Nfsv4Op.CLOSE */);
|
|
58
58
|
xdr.writeUnsignedInt(this.seqid);
|
|
59
59
|
this.openStateid.encode(xdr);
|
|
60
60
|
}
|
|
@@ -75,9 +75,9 @@ class Nfsv4CloseResponse {
|
|
|
75
75
|
this.resok = resok;
|
|
76
76
|
}
|
|
77
77
|
encode(xdr) {
|
|
78
|
-
xdr.writeUnsignedInt(4);
|
|
78
|
+
xdr.writeUnsignedInt(4 /* Nfsv4Op.CLOSE */);
|
|
79
79
|
xdr.writeUnsignedInt(this.status);
|
|
80
|
-
if (this.status === 0)
|
|
80
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
81
81
|
this.resok?.encode(xdr);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -93,7 +93,7 @@ class Nfsv4CommitRequest {
|
|
|
93
93
|
this.count = count;
|
|
94
94
|
}
|
|
95
95
|
encode(xdr) {
|
|
96
|
-
xdr.writeUnsignedInt(5);
|
|
96
|
+
xdr.writeUnsignedInt(5 /* Nfsv4Op.COMMIT */);
|
|
97
97
|
xdr.writeUnsignedHyper(this.offset);
|
|
98
98
|
xdr.writeUnsignedInt(this.count);
|
|
99
99
|
}
|
|
@@ -114,9 +114,9 @@ class Nfsv4CommitResponse {
|
|
|
114
114
|
this.resok = resok;
|
|
115
115
|
}
|
|
116
116
|
encode(xdr) {
|
|
117
|
-
xdr.writeUnsignedInt(5);
|
|
117
|
+
xdr.writeUnsignedInt(5 /* Nfsv4Op.COMMIT */);
|
|
118
118
|
xdr.writeUnsignedInt(this.status);
|
|
119
|
-
if (this.status === 0)
|
|
119
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
120
120
|
this.resok?.encode(xdr);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ class Nfsv4CreateRequest {
|
|
|
128
128
|
this.createattrs = createattrs;
|
|
129
129
|
}
|
|
130
130
|
encode(xdr) {
|
|
131
|
-
xdr.writeUnsignedInt(6);
|
|
131
|
+
xdr.writeUnsignedInt(6 /* Nfsv4Op.CREATE */);
|
|
132
132
|
this.objtype.encode(xdr);
|
|
133
133
|
xdr.writeStr(this.objname);
|
|
134
134
|
this.createattrs.encode(xdr);
|
|
@@ -152,9 +152,9 @@ class Nfsv4CreateResponse {
|
|
|
152
152
|
this.resok = resok;
|
|
153
153
|
}
|
|
154
154
|
encode(xdr) {
|
|
155
|
-
xdr.writeUnsignedInt(6);
|
|
155
|
+
xdr.writeUnsignedInt(6 /* Nfsv4Op.CREATE */);
|
|
156
156
|
xdr.writeUnsignedInt(this.status);
|
|
157
|
-
if (this.status === 0)
|
|
157
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
158
158
|
this.resok?.encode(xdr);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -168,7 +168,7 @@ class Nfsv4DelegpurgeRequest {
|
|
|
168
168
|
this.clientid = clientid;
|
|
169
169
|
}
|
|
170
170
|
encode(xdr) {
|
|
171
|
-
xdr.writeUnsignedInt(7);
|
|
171
|
+
xdr.writeUnsignedInt(7 /* Nfsv4Op.DELEGPURGE */);
|
|
172
172
|
xdr.writeUnsignedHyper(this.clientid);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -178,7 +178,7 @@ class Nfsv4DelegpurgeResponse {
|
|
|
178
178
|
this.status = status;
|
|
179
179
|
}
|
|
180
180
|
encode(xdr) {
|
|
181
|
-
xdr.writeUnsignedInt(7);
|
|
181
|
+
xdr.writeUnsignedInt(7 /* Nfsv4Op.DELEGPURGE */);
|
|
182
182
|
xdr.writeUnsignedInt(this.status);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -192,7 +192,7 @@ class Nfsv4DelegreturnRequest {
|
|
|
192
192
|
this.delegStateid = delegStateid;
|
|
193
193
|
}
|
|
194
194
|
encode(xdr) {
|
|
195
|
-
xdr.writeUnsignedInt(8);
|
|
195
|
+
xdr.writeUnsignedInt(8 /* Nfsv4Op.DELEGRETURN */);
|
|
196
196
|
this.delegStateid.encode(xdr);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -202,7 +202,7 @@ class Nfsv4DelegreturnResponse {
|
|
|
202
202
|
this.status = status;
|
|
203
203
|
}
|
|
204
204
|
encode(xdr) {
|
|
205
|
-
xdr.writeUnsignedInt(8);
|
|
205
|
+
xdr.writeUnsignedInt(8 /* Nfsv4Op.DELEGRETURN */);
|
|
206
206
|
xdr.writeUnsignedInt(this.status);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -212,7 +212,7 @@ class Nfsv4GetattrRequest {
|
|
|
212
212
|
this.attrRequest = attrRequest;
|
|
213
213
|
}
|
|
214
214
|
encode(xdr) {
|
|
215
|
-
xdr.writeUnsignedInt(9);
|
|
215
|
+
xdr.writeUnsignedInt(9 /* Nfsv4Op.GETATTR */);
|
|
216
216
|
this.attrRequest.encode(xdr);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -232,16 +232,16 @@ class Nfsv4GetattrResponse {
|
|
|
232
232
|
this.resok = resok;
|
|
233
233
|
}
|
|
234
234
|
encode(xdr) {
|
|
235
|
-
xdr.writeUnsignedInt(9);
|
|
235
|
+
xdr.writeUnsignedInt(9 /* Nfsv4Op.GETATTR */);
|
|
236
236
|
xdr.writeUnsignedInt(this.status);
|
|
237
|
-
if (this.status === 0)
|
|
237
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
238
238
|
this.resok?.encode(xdr);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
exports.Nfsv4GetattrResponse = Nfsv4GetattrResponse;
|
|
242
242
|
class Nfsv4GetfhRequest {
|
|
243
243
|
encode(xdr) {
|
|
244
|
-
xdr.writeUnsignedInt(10);
|
|
244
|
+
xdr.writeUnsignedInt(10 /* Nfsv4Op.GETFH */);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
exports.Nfsv4GetfhRequest = Nfsv4GetfhRequest;
|
|
@@ -260,9 +260,9 @@ class Nfsv4GetfhResponse {
|
|
|
260
260
|
this.resok = resok;
|
|
261
261
|
}
|
|
262
262
|
encode(xdr) {
|
|
263
|
-
xdr.writeUnsignedInt(10);
|
|
263
|
+
xdr.writeUnsignedInt(10 /* Nfsv4Op.GETFH */);
|
|
264
264
|
xdr.writeUnsignedInt(this.status);
|
|
265
|
-
if (this.status === 0)
|
|
265
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
266
266
|
this.resok?.encode(xdr);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -272,7 +272,7 @@ class Nfsv4LinkRequest {
|
|
|
272
272
|
this.newname = newname;
|
|
273
273
|
}
|
|
274
274
|
encode(xdr) {
|
|
275
|
-
xdr.writeUnsignedInt(11);
|
|
275
|
+
xdr.writeUnsignedInt(11 /* Nfsv4Op.LINK */);
|
|
276
276
|
xdr.writeStr(this.newname);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -292,7 +292,7 @@ class Nfsv4LinkResponse {
|
|
|
292
292
|
this.resok = resok;
|
|
293
293
|
}
|
|
294
294
|
encode(xdr) {
|
|
295
|
-
xdr.writeUnsignedInt(11);
|
|
295
|
+
xdr.writeUnsignedInt(11 /* Nfsv4Op.LINK */);
|
|
296
296
|
xdr.writeUnsignedInt(this.status);
|
|
297
297
|
if (this.status === 0)
|
|
298
298
|
this.resok?.encode(xdr);
|
|
@@ -308,7 +308,7 @@ class Nfsv4LockRequest {
|
|
|
308
308
|
this.locker = locker;
|
|
309
309
|
}
|
|
310
310
|
encode(xdr) {
|
|
311
|
-
xdr.writeUnsignedInt(12);
|
|
311
|
+
xdr.writeUnsignedInt(12 /* Nfsv4Op.LOCK */);
|
|
312
312
|
xdr.writeUnsignedInt(this.locktype);
|
|
313
313
|
xdr.writeBoolean(this.reclaim);
|
|
314
314
|
xdr.writeUnsignedHyper(this.offset);
|
|
@@ -348,9 +348,9 @@ class Nfsv4LockResponse {
|
|
|
348
348
|
this.denied = denied;
|
|
349
349
|
}
|
|
350
350
|
encode(xdr) {
|
|
351
|
-
xdr.writeUnsignedInt(12);
|
|
351
|
+
xdr.writeUnsignedInt(12 /* Nfsv4Op.LOCK */);
|
|
352
352
|
xdr.writeUnsignedInt(this.status);
|
|
353
|
-
if (this.status === 0 && this.resok) {
|
|
353
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
354
354
|
this.resok.encode(xdr);
|
|
355
355
|
}
|
|
356
356
|
else if (this.denied) {
|
|
@@ -367,7 +367,7 @@ class Nfsv4LocktRequest {
|
|
|
367
367
|
this.owner = owner;
|
|
368
368
|
}
|
|
369
369
|
encode(xdr) {
|
|
370
|
-
xdr.writeUnsignedInt(13);
|
|
370
|
+
xdr.writeUnsignedInt(13 /* Nfsv4Op.LOCKT */);
|
|
371
371
|
xdr.writeUnsignedInt(this.locktype);
|
|
372
372
|
xdr.writeUnsignedHyper(this.offset);
|
|
373
373
|
xdr.writeUnsignedHyper(this.length);
|
|
@@ -396,7 +396,7 @@ class Nfsv4LocktResponse {
|
|
|
396
396
|
this.denied = denied;
|
|
397
397
|
}
|
|
398
398
|
encode(xdr) {
|
|
399
|
-
xdr.writeUnsignedInt(13);
|
|
399
|
+
xdr.writeUnsignedInt(13 /* Nfsv4Op.LOCKT */);
|
|
400
400
|
xdr.writeUnsignedInt(this.status);
|
|
401
401
|
this.denied?.encode(xdr);
|
|
402
402
|
}
|
|
@@ -411,7 +411,7 @@ class Nfsv4LockuRequest {
|
|
|
411
411
|
this.length = length;
|
|
412
412
|
}
|
|
413
413
|
encode(xdr) {
|
|
414
|
-
xdr.writeUnsignedInt(14);
|
|
414
|
+
xdr.writeUnsignedInt(14 /* Nfsv4Op.LOCKU */);
|
|
415
415
|
xdr.writeUnsignedInt(this.locktype);
|
|
416
416
|
xdr.writeUnsignedInt(this.seqid);
|
|
417
417
|
this.lockStateid.encode(xdr);
|
|
@@ -435,7 +435,7 @@ class Nfsv4LockuResponse {
|
|
|
435
435
|
this.resok = resok;
|
|
436
436
|
}
|
|
437
437
|
encode(xdr) {
|
|
438
|
-
xdr.writeUnsignedInt(14);
|
|
438
|
+
xdr.writeUnsignedInt(14 /* Nfsv4Op.LOCKU */);
|
|
439
439
|
xdr.writeUnsignedInt(this.status);
|
|
440
440
|
if (this.status === 0)
|
|
441
441
|
this.resok?.encode(xdr);
|
|
@@ -447,7 +447,7 @@ class Nfsv4LookupRequest {
|
|
|
447
447
|
this.objname = objname;
|
|
448
448
|
}
|
|
449
449
|
encode(xdr) {
|
|
450
|
-
xdr.writeUnsignedInt(15);
|
|
450
|
+
xdr.writeUnsignedInt(15 /* Nfsv4Op.LOOKUP */);
|
|
451
451
|
xdr.writeStr(this.objname);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
@@ -457,14 +457,14 @@ class Nfsv4LookupResponse {
|
|
|
457
457
|
this.status = status;
|
|
458
458
|
}
|
|
459
459
|
encode(xdr) {
|
|
460
|
-
xdr.writeUnsignedInt(15);
|
|
460
|
+
xdr.writeUnsignedInt(15 /* Nfsv4Op.LOOKUP */);
|
|
461
461
|
xdr.writeUnsignedInt(this.status);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
exports.Nfsv4LookupResponse = Nfsv4LookupResponse;
|
|
465
465
|
class Nfsv4LookuppRequest {
|
|
466
466
|
encode(xdr) {
|
|
467
|
-
xdr.writeUnsignedInt(16);
|
|
467
|
+
xdr.writeUnsignedInt(16 /* Nfsv4Op.LOOKUPP */);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
exports.Nfsv4LookuppRequest = Nfsv4LookuppRequest;
|
|
@@ -473,7 +473,7 @@ class Nfsv4LookuppResponse {
|
|
|
473
473
|
this.status = status;
|
|
474
474
|
}
|
|
475
475
|
encode(xdr) {
|
|
476
|
-
xdr.writeUnsignedInt(16);
|
|
476
|
+
xdr.writeUnsignedInt(16 /* Nfsv4Op.LOOKUPP */);
|
|
477
477
|
xdr.writeUnsignedInt(this.status);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
@@ -483,7 +483,7 @@ class Nfsv4NverifyRequest {
|
|
|
483
483
|
this.objAttributes = objAttributes;
|
|
484
484
|
}
|
|
485
485
|
encode(xdr) {
|
|
486
|
-
xdr.writeUnsignedInt(17);
|
|
486
|
+
xdr.writeUnsignedInt(17 /* Nfsv4Op.NVERIFY */);
|
|
487
487
|
this.objAttributes.encode(xdr);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
@@ -493,7 +493,7 @@ class Nfsv4NverifyResponse {
|
|
|
493
493
|
this.status = status;
|
|
494
494
|
}
|
|
495
495
|
encode(xdr) {
|
|
496
|
-
xdr.writeUnsignedInt(17);
|
|
496
|
+
xdr.writeUnsignedInt(17 /* Nfsv4Op.NVERIFY */);
|
|
497
497
|
xdr.writeUnsignedInt(this.status);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
@@ -508,7 +508,7 @@ class Nfsv4OpenRequest {
|
|
|
508
508
|
this.claim = claim;
|
|
509
509
|
}
|
|
510
510
|
encode(xdr) {
|
|
511
|
-
xdr.writeUnsignedInt(18);
|
|
511
|
+
xdr.writeUnsignedInt(18 /* Nfsv4Op.OPEN */);
|
|
512
512
|
xdr.writeUnsignedInt(this.seqid);
|
|
513
513
|
xdr.writeUnsignedInt(this.shareAccess);
|
|
514
514
|
xdr.writeUnsignedInt(this.shareDeny);
|
|
@@ -541,9 +541,9 @@ class Nfsv4OpenResponse {
|
|
|
541
541
|
this.resok = resok;
|
|
542
542
|
}
|
|
543
543
|
encode(xdr) {
|
|
544
|
-
xdr.writeUnsignedInt(18);
|
|
544
|
+
xdr.writeUnsignedInt(18 /* Nfsv4Op.OPEN */);
|
|
545
545
|
xdr.writeUnsignedInt(this.status);
|
|
546
|
-
if (this.status === 0 && this.resok) {
|
|
546
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
547
547
|
this.resok.encode(xdr);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -554,7 +554,7 @@ class Nfsv4OpenattrRequest {
|
|
|
554
554
|
this.createdir = createdir;
|
|
555
555
|
}
|
|
556
556
|
encode(xdr) {
|
|
557
|
-
xdr.writeUnsignedInt(19);
|
|
557
|
+
xdr.writeUnsignedInt(19 /* Nfsv4Op.OPENATTR */);
|
|
558
558
|
xdr.writeBoolean(this.createdir);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -564,7 +564,7 @@ class Nfsv4OpenattrResponse {
|
|
|
564
564
|
this.status = status;
|
|
565
565
|
}
|
|
566
566
|
encode(xdr) {
|
|
567
|
-
xdr.writeUnsignedInt(19);
|
|
567
|
+
xdr.writeUnsignedInt(19 /* Nfsv4Op.OPENATTR */);
|
|
568
568
|
xdr.writeUnsignedInt(this.status);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
@@ -575,7 +575,7 @@ class Nfsv4OpenConfirmRequest {
|
|
|
575
575
|
this.seqid = seqid;
|
|
576
576
|
}
|
|
577
577
|
encode(xdr) {
|
|
578
|
-
xdr.writeUnsignedInt(20);
|
|
578
|
+
xdr.writeUnsignedInt(20 /* Nfsv4Op.OPEN_CONFIRM */);
|
|
579
579
|
this.openStateid.encode(xdr);
|
|
580
580
|
xdr.writeUnsignedInt(this.seqid);
|
|
581
581
|
}
|
|
@@ -596,9 +596,9 @@ class Nfsv4OpenConfirmResponse {
|
|
|
596
596
|
this.resok = resok;
|
|
597
597
|
}
|
|
598
598
|
encode(xdr) {
|
|
599
|
-
xdr.writeUnsignedInt(20);
|
|
599
|
+
xdr.writeUnsignedInt(20 /* Nfsv4Op.OPEN_CONFIRM */);
|
|
600
600
|
xdr.writeUnsignedInt(this.status);
|
|
601
|
-
if (this.status === 0 && this.resok) {
|
|
601
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
602
602
|
this.resok.encode(xdr);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -612,7 +612,7 @@ class Nfsv4OpenDowngradeRequest {
|
|
|
612
612
|
this.shareDeny = shareDeny;
|
|
613
613
|
}
|
|
614
614
|
encode(xdr) {
|
|
615
|
-
xdr.writeUnsignedInt(21);
|
|
615
|
+
xdr.writeUnsignedInt(21 /* Nfsv4Op.OPEN_DOWNGRADE */);
|
|
616
616
|
this.openStateid.encode(xdr);
|
|
617
617
|
xdr.writeUnsignedInt(this.seqid);
|
|
618
618
|
xdr.writeUnsignedInt(this.shareAccess);
|
|
@@ -635,9 +635,9 @@ class Nfsv4OpenDowngradeResponse {
|
|
|
635
635
|
this.resok = resok;
|
|
636
636
|
}
|
|
637
637
|
encode(xdr) {
|
|
638
|
-
xdr.writeUnsignedInt(21);
|
|
638
|
+
xdr.writeUnsignedInt(21 /* Nfsv4Op.OPEN_DOWNGRADE */);
|
|
639
639
|
xdr.writeUnsignedInt(this.status);
|
|
640
|
-
if (this.status === 0 && this.resok) {
|
|
640
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
641
641
|
this.resok.encode(xdr);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
@@ -648,7 +648,7 @@ class Nfsv4PutfhRequest {
|
|
|
648
648
|
this.object = object;
|
|
649
649
|
}
|
|
650
650
|
encode(xdr) {
|
|
651
|
-
xdr.writeUnsignedInt(22);
|
|
651
|
+
xdr.writeUnsignedInt(22 /* Nfsv4Op.PUTFH */);
|
|
652
652
|
this.object.encode(xdr);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
@@ -658,14 +658,14 @@ class Nfsv4PutfhResponse {
|
|
|
658
658
|
this.status = status;
|
|
659
659
|
}
|
|
660
660
|
encode(xdr) {
|
|
661
|
-
xdr.writeUnsignedInt(22);
|
|
661
|
+
xdr.writeUnsignedInt(22 /* Nfsv4Op.PUTFH */);
|
|
662
662
|
xdr.writeUnsignedInt(this.status);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
exports.Nfsv4PutfhResponse = Nfsv4PutfhResponse;
|
|
666
666
|
class Nfsv4PutpubfhRequest {
|
|
667
667
|
encode(xdr) {
|
|
668
|
-
xdr.writeUnsignedInt(23);
|
|
668
|
+
xdr.writeUnsignedInt(23 /* Nfsv4Op.PUTPUBFH */);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
exports.Nfsv4PutpubfhRequest = Nfsv4PutpubfhRequest;
|
|
@@ -678,14 +678,14 @@ class Nfsv4PutpubfhResponse {
|
|
|
678
678
|
this.status = status;
|
|
679
679
|
}
|
|
680
680
|
encode(xdr) {
|
|
681
|
-
xdr.writeUnsignedInt(23);
|
|
681
|
+
xdr.writeUnsignedInt(23 /* Nfsv4Op.PUTPUBFH */);
|
|
682
682
|
xdr.writeUnsignedInt(this.status);
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
exports.Nfsv4PutpubfhResponse = Nfsv4PutpubfhResponse;
|
|
686
686
|
class Nfsv4PutrootfhRequest {
|
|
687
687
|
encode(xdr) {
|
|
688
|
-
xdr.writeUnsignedInt(24);
|
|
688
|
+
xdr.writeUnsignedInt(24 /* Nfsv4Op.PUTROOTFH */);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
exports.Nfsv4PutrootfhRequest = Nfsv4PutrootfhRequest;
|
|
@@ -694,7 +694,7 @@ class Nfsv4PutrootfhResponse {
|
|
|
694
694
|
this.status = status;
|
|
695
695
|
}
|
|
696
696
|
encode(xdr) {
|
|
697
|
-
xdr.writeUnsignedInt(24);
|
|
697
|
+
xdr.writeUnsignedInt(24 /* Nfsv4Op.PUTROOTFH */);
|
|
698
698
|
xdr.writeUnsignedInt(this.status);
|
|
699
699
|
}
|
|
700
700
|
}
|
|
@@ -706,7 +706,7 @@ class Nfsv4ReadRequest {
|
|
|
706
706
|
this.count = count;
|
|
707
707
|
}
|
|
708
708
|
encode(xdr) {
|
|
709
|
-
xdr.writeUnsignedInt(25);
|
|
709
|
+
xdr.writeUnsignedInt(25 /* Nfsv4Op.READ */);
|
|
710
710
|
this.stateid.encode(xdr);
|
|
711
711
|
xdr.writeUnsignedHyper(this.offset);
|
|
712
712
|
xdr.writeUnsignedInt(this.count);
|
|
@@ -730,9 +730,9 @@ class Nfsv4ReadResponse {
|
|
|
730
730
|
this.resok = resok;
|
|
731
731
|
}
|
|
732
732
|
encode(xdr) {
|
|
733
|
-
xdr.writeUnsignedInt(25);
|
|
733
|
+
xdr.writeUnsignedInt(25 /* Nfsv4Op.READ */);
|
|
734
734
|
xdr.writeUnsignedInt(this.status);
|
|
735
|
-
if (this.status === 0 && this.resok) {
|
|
735
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
736
736
|
this.resok.encode(xdr);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
@@ -747,7 +747,7 @@ class Nfsv4ReaddirRequest {
|
|
|
747
747
|
this.attrRequest = attrRequest;
|
|
748
748
|
}
|
|
749
749
|
encode(xdr) {
|
|
750
|
-
xdr.writeUnsignedInt(26);
|
|
750
|
+
xdr.writeUnsignedInt(26 /* Nfsv4Op.READDIR */);
|
|
751
751
|
xdr.writeUnsignedHyper(this.cookie);
|
|
752
752
|
this.cookieverf.encode(xdr);
|
|
753
753
|
xdr.writeUnsignedInt(this.dircount);
|
|
@@ -782,9 +782,9 @@ class Nfsv4ReaddirResponse {
|
|
|
782
782
|
this.resok = resok;
|
|
783
783
|
}
|
|
784
784
|
encode(xdr) {
|
|
785
|
-
xdr.writeUnsignedInt(26);
|
|
785
|
+
xdr.writeUnsignedInt(26 /* Nfsv4Op.READDIR */);
|
|
786
786
|
xdr.writeUnsignedInt(this.status);
|
|
787
|
-
if (this.status === 0 && this.resok) {
|
|
787
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
788
788
|
this.resok.encode(xdr);
|
|
789
789
|
}
|
|
790
790
|
}
|
|
@@ -792,7 +792,7 @@ class Nfsv4ReaddirResponse {
|
|
|
792
792
|
exports.Nfsv4ReaddirResponse = Nfsv4ReaddirResponse;
|
|
793
793
|
class Nfsv4ReadlinkRequest {
|
|
794
794
|
encode(xdr) {
|
|
795
|
-
xdr.writeUnsignedInt(27);
|
|
795
|
+
xdr.writeUnsignedInt(27 /* Nfsv4Op.READLINK */);
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
exports.Nfsv4ReadlinkRequest = Nfsv4ReadlinkRequest;
|
|
@@ -811,9 +811,9 @@ class Nfsv4ReadlinkResponse {
|
|
|
811
811
|
this.resok = resok;
|
|
812
812
|
}
|
|
813
813
|
encode(xdr) {
|
|
814
|
-
xdr.writeUnsignedInt(27);
|
|
814
|
+
xdr.writeUnsignedInt(27 /* Nfsv4Op.READLINK */);
|
|
815
815
|
xdr.writeUnsignedInt(this.status);
|
|
816
|
-
if (this.status === 0 && this.resok) {
|
|
816
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
817
817
|
this.resok.encode(xdr);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
@@ -824,7 +824,7 @@ class Nfsv4RemoveRequest {
|
|
|
824
824
|
this.target = target;
|
|
825
825
|
}
|
|
826
826
|
encode(xdr) {
|
|
827
|
-
xdr.writeUnsignedInt(28);
|
|
827
|
+
xdr.writeUnsignedInt(28 /* Nfsv4Op.REMOVE */);
|
|
828
828
|
xdr.writeStr(this.target);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
@@ -844,9 +844,9 @@ class Nfsv4RemoveResponse {
|
|
|
844
844
|
this.resok = resok;
|
|
845
845
|
}
|
|
846
846
|
encode(xdr) {
|
|
847
|
-
xdr.writeUnsignedInt(28);
|
|
847
|
+
xdr.writeUnsignedInt(28 /* Nfsv4Op.REMOVE */);
|
|
848
848
|
xdr.writeUnsignedInt(this.status);
|
|
849
|
-
if (this.status === 0 && this.resok) {
|
|
849
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
850
850
|
this.resok.encode(xdr);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
@@ -858,7 +858,7 @@ class Nfsv4RenameRequest {
|
|
|
858
858
|
this.newname = newname;
|
|
859
859
|
}
|
|
860
860
|
encode(xdr) {
|
|
861
|
-
xdr.writeUnsignedInt(29);
|
|
861
|
+
xdr.writeUnsignedInt(29 /* Nfsv4Op.RENAME */);
|
|
862
862
|
xdr.writeStr(this.oldname);
|
|
863
863
|
xdr.writeStr(this.newname);
|
|
864
864
|
}
|
|
@@ -881,9 +881,9 @@ class Nfsv4RenameResponse {
|
|
|
881
881
|
this.resok = resok;
|
|
882
882
|
}
|
|
883
883
|
encode(xdr) {
|
|
884
|
-
xdr.writeUnsignedInt(29);
|
|
884
|
+
xdr.writeUnsignedInt(29 /* Nfsv4Op.RENAME */);
|
|
885
885
|
xdr.writeUnsignedInt(this.status);
|
|
886
|
-
if (this.status === 0)
|
|
886
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
887
887
|
this.resok?.encode(xdr);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
@@ -893,7 +893,7 @@ class Nfsv4RenewRequest {
|
|
|
893
893
|
this.clientid = clientid;
|
|
894
894
|
}
|
|
895
895
|
encode(xdr) {
|
|
896
|
-
xdr.writeUnsignedInt(30);
|
|
896
|
+
xdr.writeUnsignedInt(30 /* Nfsv4Op.RENEW */);
|
|
897
897
|
xdr.writeUnsignedHyper(this.clientid);
|
|
898
898
|
}
|
|
899
899
|
}
|
|
@@ -903,14 +903,14 @@ class Nfsv4RenewResponse {
|
|
|
903
903
|
this.status = status;
|
|
904
904
|
}
|
|
905
905
|
encode(xdr) {
|
|
906
|
-
xdr.writeUnsignedInt(30);
|
|
906
|
+
xdr.writeUnsignedInt(30 /* Nfsv4Op.RENEW */);
|
|
907
907
|
xdr.writeUnsignedInt(this.status);
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
exports.Nfsv4RenewResponse = Nfsv4RenewResponse;
|
|
911
911
|
class Nfsv4RestorefhRequest {
|
|
912
912
|
encode(xdr) {
|
|
913
|
-
xdr.writeUnsignedInt(31);
|
|
913
|
+
xdr.writeUnsignedInt(31 /* Nfsv4Op.RESTOREFH */);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
exports.Nfsv4RestorefhRequest = Nfsv4RestorefhRequest;
|
|
@@ -919,14 +919,14 @@ class Nfsv4RestorefhResponse {
|
|
|
919
919
|
this.status = status;
|
|
920
920
|
}
|
|
921
921
|
encode(xdr) {
|
|
922
|
-
xdr.writeUnsignedInt(31);
|
|
922
|
+
xdr.writeUnsignedInt(31 /* Nfsv4Op.RESTOREFH */);
|
|
923
923
|
xdr.writeUnsignedInt(this.status);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
exports.Nfsv4RestorefhResponse = Nfsv4RestorefhResponse;
|
|
927
927
|
class Nfsv4SavefhRequest {
|
|
928
928
|
encode(xdr) {
|
|
929
|
-
xdr.writeUnsignedInt(32);
|
|
929
|
+
xdr.writeUnsignedInt(32 /* Nfsv4Op.SAVEFH */);
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
exports.Nfsv4SavefhRequest = Nfsv4SavefhRequest;
|
|
@@ -935,7 +935,7 @@ class Nfsv4SavefhResponse {
|
|
|
935
935
|
this.status = status;
|
|
936
936
|
}
|
|
937
937
|
encode(xdr) {
|
|
938
|
-
xdr.writeUnsignedInt(32);
|
|
938
|
+
xdr.writeUnsignedInt(32 /* Nfsv4Op.SAVEFH */);
|
|
939
939
|
xdr.writeUnsignedInt(this.status);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
@@ -945,7 +945,7 @@ class Nfsv4SecinfoRequest {
|
|
|
945
945
|
this.name = name;
|
|
946
946
|
}
|
|
947
947
|
encode(xdr) {
|
|
948
|
-
xdr.writeUnsignedInt(33);
|
|
948
|
+
xdr.writeUnsignedInt(33 /* Nfsv4Op.SECINFO */);
|
|
949
949
|
xdr.writeStr(this.name);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
@@ -969,9 +969,9 @@ class Nfsv4SecinfoResponse {
|
|
|
969
969
|
this.resok = resok;
|
|
970
970
|
}
|
|
971
971
|
encode(xdr) {
|
|
972
|
-
xdr.writeUnsignedInt(33);
|
|
972
|
+
xdr.writeUnsignedInt(33 /* Nfsv4Op.SECINFO */);
|
|
973
973
|
xdr.writeUnsignedInt(this.status);
|
|
974
|
-
if (this.status === 0 && this.resok)
|
|
974
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok)
|
|
975
975
|
this.resok.encode(xdr);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
@@ -982,7 +982,7 @@ class Nfsv4SetattrRequest {
|
|
|
982
982
|
this.objAttributes = objAttributes;
|
|
983
983
|
}
|
|
984
984
|
encode(xdr) {
|
|
985
|
-
xdr.writeUnsignedInt(34);
|
|
985
|
+
xdr.writeUnsignedInt(34 /* Nfsv4Op.SETATTR */);
|
|
986
986
|
this.stateid.encode(xdr);
|
|
987
987
|
this.objAttributes.encode(xdr);
|
|
988
988
|
}
|
|
@@ -1003,7 +1003,7 @@ class Nfsv4SetattrResponse {
|
|
|
1003
1003
|
this.resok = resok;
|
|
1004
1004
|
}
|
|
1005
1005
|
encode(xdr) {
|
|
1006
|
-
xdr.writeUnsignedInt(34);
|
|
1006
|
+
xdr.writeUnsignedInt(34 /* Nfsv4Op.SETATTR */);
|
|
1007
1007
|
xdr.writeUnsignedInt(this.status);
|
|
1008
1008
|
this.resok?.encode(xdr);
|
|
1009
1009
|
}
|
|
@@ -1016,7 +1016,7 @@ class Nfsv4SetclientidRequest {
|
|
|
1016
1016
|
this.callbackIdent = callbackIdent;
|
|
1017
1017
|
}
|
|
1018
1018
|
encode(xdr) {
|
|
1019
|
-
xdr.writeUnsignedInt(35);
|
|
1019
|
+
xdr.writeUnsignedInt(35 /* Nfsv4Op.SETCLIENTID */);
|
|
1020
1020
|
this.client.encode(xdr);
|
|
1021
1021
|
this.callback.encode(xdr);
|
|
1022
1022
|
xdr.writeUnsignedInt(this.callbackIdent);
|
|
@@ -1040,9 +1040,9 @@ class Nfsv4SetclientidResponse {
|
|
|
1040
1040
|
this.resok = resok;
|
|
1041
1041
|
}
|
|
1042
1042
|
encode(xdr) {
|
|
1043
|
-
xdr.writeUnsignedInt(35);
|
|
1043
|
+
xdr.writeUnsignedInt(35 /* Nfsv4Op.SETCLIENTID */);
|
|
1044
1044
|
xdr.writeUnsignedInt(this.status);
|
|
1045
|
-
if (this.status === 0)
|
|
1045
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */)
|
|
1046
1046
|
this.resok?.encode(xdr);
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1053,7 +1053,7 @@ class Nfsv4SetclientidConfirmRequest {
|
|
|
1053
1053
|
this.setclientidConfirm = setclientidConfirm;
|
|
1054
1054
|
}
|
|
1055
1055
|
encode(xdr) {
|
|
1056
|
-
xdr.writeUnsignedInt(36);
|
|
1056
|
+
xdr.writeUnsignedInt(36 /* Nfsv4Op.SETCLIENTID_CONFIRM */);
|
|
1057
1057
|
xdr.writeUnsignedHyper(this.clientid);
|
|
1058
1058
|
this.setclientidConfirm.encode(xdr);
|
|
1059
1059
|
}
|
|
@@ -1064,7 +1064,7 @@ class Nfsv4SetclientidConfirmResponse {
|
|
|
1064
1064
|
this.status = status;
|
|
1065
1065
|
}
|
|
1066
1066
|
encode(xdr) {
|
|
1067
|
-
xdr.writeUnsignedInt(36);
|
|
1067
|
+
xdr.writeUnsignedInt(36 /* Nfsv4Op.SETCLIENTID_CONFIRM */);
|
|
1068
1068
|
xdr.writeUnsignedInt(this.status);
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
@@ -1074,7 +1074,7 @@ class Nfsv4VerifyRequest {
|
|
|
1074
1074
|
this.objAttributes = objAttributes;
|
|
1075
1075
|
}
|
|
1076
1076
|
encode(xdr) {
|
|
1077
|
-
xdr.writeUnsignedInt(37);
|
|
1077
|
+
xdr.writeUnsignedInt(37 /* Nfsv4Op.VERIFY */);
|
|
1078
1078
|
this.objAttributes.encode(xdr);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
@@ -1084,7 +1084,7 @@ class Nfsv4VerifyResponse {
|
|
|
1084
1084
|
this.status = status;
|
|
1085
1085
|
}
|
|
1086
1086
|
encode(xdr) {
|
|
1087
|
-
xdr.writeUnsignedInt(37);
|
|
1087
|
+
xdr.writeUnsignedInt(37 /* Nfsv4Op.VERIFY */);
|
|
1088
1088
|
xdr.writeUnsignedInt(this.status);
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
@@ -1097,7 +1097,7 @@ class Nfsv4WriteRequest {
|
|
|
1097
1097
|
this.data = data;
|
|
1098
1098
|
}
|
|
1099
1099
|
encode(xdr) {
|
|
1100
|
-
xdr.writeUnsignedInt(38);
|
|
1100
|
+
xdr.writeUnsignedInt(38 /* Nfsv4Op.WRITE */);
|
|
1101
1101
|
this.stateid.encode(xdr);
|
|
1102
1102
|
xdr.writeUnsignedHyper(this.offset);
|
|
1103
1103
|
xdr.writeUnsignedInt(this.stable);
|
|
@@ -1124,9 +1124,9 @@ class Nfsv4WriteResponse {
|
|
|
1124
1124
|
this.resok = resok;
|
|
1125
1125
|
}
|
|
1126
1126
|
encode(xdr) {
|
|
1127
|
-
xdr.writeUnsignedInt(38);
|
|
1127
|
+
xdr.writeUnsignedInt(38 /* Nfsv4Op.WRITE */);
|
|
1128
1128
|
xdr.writeUnsignedInt(this.status);
|
|
1129
|
-
if (this.status === 0 && this.resok)
|
|
1129
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok)
|
|
1130
1130
|
this.resok.encode(xdr);
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
@@ -1136,7 +1136,7 @@ class Nfsv4ReleaseLockOwnerRequest {
|
|
|
1136
1136
|
this.lockOwner = lockOwner;
|
|
1137
1137
|
}
|
|
1138
1138
|
encode(xdr) {
|
|
1139
|
-
xdr.writeUnsignedInt(39);
|
|
1139
|
+
xdr.writeUnsignedInt(39 /* Nfsv4Op.RELEASE_LOCKOWNER */);
|
|
1140
1140
|
this.lockOwner.encode(xdr);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
@@ -1146,14 +1146,14 @@ class Nfsv4ReleaseLockOwnerResponse {
|
|
|
1146
1146
|
this.status = status;
|
|
1147
1147
|
}
|
|
1148
1148
|
encode(xdr) {
|
|
1149
|
-
xdr.writeUnsignedInt(39);
|
|
1149
|
+
xdr.writeUnsignedInt(39 /* Nfsv4Op.RELEASE_LOCKOWNER */);
|
|
1150
1150
|
xdr.writeUnsignedInt(this.status);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
exports.Nfsv4ReleaseLockOwnerResponse = Nfsv4ReleaseLockOwnerResponse;
|
|
1154
1154
|
class Nfsv4IllegalRequest {
|
|
1155
1155
|
encode(xdr) {
|
|
1156
|
-
xdr.writeUnsignedInt(10044);
|
|
1156
|
+
xdr.writeUnsignedInt(10044 /* Nfsv4Op.ILLEGAL */);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
exports.Nfsv4IllegalRequest = Nfsv4IllegalRequest;
|
|
@@ -1162,7 +1162,7 @@ class Nfsv4IllegalResponse {
|
|
|
1162
1162
|
this.status = status;
|
|
1163
1163
|
}
|
|
1164
1164
|
encode(xdr) {
|
|
1165
|
-
xdr.writeUnsignedInt(10044);
|
|
1165
|
+
xdr.writeUnsignedInt(10044 /* Nfsv4Op.ILLEGAL */);
|
|
1166
1166
|
xdr.writeUnsignedInt(this.status);
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
@@ -1207,7 +1207,7 @@ class Nfsv4CbGetattrRequest {
|
|
|
1207
1207
|
this.attrRequest = attrRequest;
|
|
1208
1208
|
}
|
|
1209
1209
|
encode(xdr) {
|
|
1210
|
-
xdr.writeUnsignedInt(3);
|
|
1210
|
+
xdr.writeUnsignedInt(3 /* Nfsv4CbOp.CB_GETATTR */);
|
|
1211
1211
|
this.fh.encode(xdr);
|
|
1212
1212
|
this.attrRequest.encode(xdr);
|
|
1213
1213
|
}
|
|
@@ -1228,9 +1228,9 @@ class Nfsv4CbGetattrResponse {
|
|
|
1228
1228
|
this.resok = resok;
|
|
1229
1229
|
}
|
|
1230
1230
|
encode(xdr) {
|
|
1231
|
-
xdr.writeUnsignedInt(3);
|
|
1231
|
+
xdr.writeUnsignedInt(3 /* Nfsv4CbOp.CB_GETATTR */);
|
|
1232
1232
|
xdr.writeUnsignedInt(this.status);
|
|
1233
|
-
if (this.status === 0 && this.resok) {
|
|
1233
|
+
if (this.status === 0 /* Nfsv4Stat.NFS4_OK */ && this.resok) {
|
|
1234
1234
|
this.resok.encode(xdr);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
@@ -1243,7 +1243,7 @@ class Nfsv4CbRecallRequest {
|
|
|
1243
1243
|
this.fh = fh;
|
|
1244
1244
|
}
|
|
1245
1245
|
encode(xdr) {
|
|
1246
|
-
xdr.writeUnsignedInt(4);
|
|
1246
|
+
xdr.writeUnsignedInt(4 /* Nfsv4CbOp.CB_RECALL */);
|
|
1247
1247
|
this.stateid.encode(xdr);
|
|
1248
1248
|
xdr.writeBoolean(this.truncate);
|
|
1249
1249
|
this.fh.encode(xdr);
|
|
@@ -1255,14 +1255,14 @@ class Nfsv4CbRecallResponse {
|
|
|
1255
1255
|
this.status = status;
|
|
1256
1256
|
}
|
|
1257
1257
|
encode(xdr) {
|
|
1258
|
-
xdr.writeUnsignedInt(4);
|
|
1258
|
+
xdr.writeUnsignedInt(4 /* Nfsv4CbOp.CB_RECALL */);
|
|
1259
1259
|
xdr.writeUnsignedInt(this.status);
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
exports.Nfsv4CbRecallResponse = Nfsv4CbRecallResponse;
|
|
1263
1263
|
class Nfsv4CbIllegalRequest {
|
|
1264
1264
|
encode(xdr) {
|
|
1265
|
-
xdr.writeUnsignedInt(10044);
|
|
1265
|
+
xdr.writeUnsignedInt(10044 /* Nfsv4CbOp.CB_ILLEGAL */);
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
exports.Nfsv4CbIllegalRequest = Nfsv4CbIllegalRequest;
|
|
@@ -1271,7 +1271,7 @@ class Nfsv4CbIllegalResponse {
|
|
|
1271
1271
|
this.status = status;
|
|
1272
1272
|
}
|
|
1273
1273
|
encode(xdr) {
|
|
1274
|
-
xdr.writeUnsignedInt(10044);
|
|
1274
|
+
xdr.writeUnsignedInt(10044 /* Nfsv4CbOp.CB_ILLEGAL */);
|
|
1275
1275
|
xdr.writeUnsignedInt(this.status);
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|