@k13engineering/linux-fuse 0.0.4 → 0.0.5

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.
@@ -35,6 +35,31 @@ type TFuseXAttrResult = {
35
35
  } | {
36
36
  size: bigint;
37
37
  };
38
+ type TFuseSxTime = {
39
+ sec: bigint;
40
+ nsec: bigint;
41
+ };
42
+ type TFuseStatx = {
43
+ mask: bigint;
44
+ blksize: bigint;
45
+ attributes: bigint;
46
+ nlink: bigint;
47
+ uid: bigint;
48
+ gid: bigint;
49
+ mode: bigint;
50
+ ino: bigint;
51
+ size: bigint;
52
+ blocks: bigint;
53
+ attributesMask: bigint;
54
+ atime: TFuseSxTime;
55
+ btime: TFuseSxTime;
56
+ ctime: TFuseSxTime;
57
+ mtime: TFuseSxTime;
58
+ rdevMajor: bigint;
59
+ rdevMinor: bigint;
60
+ devMajor: bigint;
61
+ devMinor: bigint;
62
+ };
38
63
  type TFuseRequest = {
39
64
  unique: bigint;
40
65
  requester: TRequesterInfo;
@@ -287,6 +312,54 @@ type TFuseRequest = {
287
312
  readFlags: bigint;
288
313
  lockOwner: bigint;
289
314
  flags: bigint;
315
+ } | {
316
+ opcode: "LSEEK";
317
+ nodeId: bigint;
318
+ fh: bigint;
319
+ offset: bigint;
320
+ whence: bigint;
321
+ } | {
322
+ opcode: "COPY_FILE_RANGE";
323
+ nodeId: bigint;
324
+ fhIn: bigint;
325
+ offIn: bigint;
326
+ nodeIdOut: bigint;
327
+ fhOut: bigint;
328
+ offOut: bigint;
329
+ len: bigint;
330
+ flags: bigint;
331
+ } | {
332
+ opcode: "SETUPMAPPING";
333
+ nodeId: bigint;
334
+ fh: bigint;
335
+ foffset: bigint;
336
+ len: bigint;
337
+ flags: bigint;
338
+ moffset: bigint;
339
+ } | {
340
+ opcode: "REMOVEMAPPING";
341
+ nodeId: bigint;
342
+ mappings: Array<{
343
+ moffset: bigint;
344
+ len: bigint;
345
+ }>;
346
+ } | {
347
+ opcode: "SYNCFS";
348
+ nodeId: bigint;
349
+ } | {
350
+ opcode: "TMPFILE";
351
+ parentNodeId: bigint;
352
+ name: string;
353
+ flags: bigint;
354
+ mode: bigint;
355
+ umask: bigint;
356
+ } | {
357
+ opcode: "STATX";
358
+ nodeId: bigint;
359
+ getattrFlags: bigint;
360
+ fh: bigint;
361
+ sxFlags: bigint;
362
+ sxMask: bigint;
290
363
  });
291
364
  type TFuseResponse = {
292
365
  forOpcode: "INIT";
@@ -729,6 +802,87 @@ type TFuseResponse = {
729
802
  result: {
730
803
  data: Uint8Array;
731
804
  };
805
+ } | {
806
+ forOpcode: "LSEEK";
807
+ unique: bigint;
808
+ errorCode: number;
809
+ result: undefined;
810
+ } | {
811
+ forOpcode: "LSEEK";
812
+ unique: bigint;
813
+ errorCode: undefined;
814
+ result: {
815
+ offset: bigint;
816
+ };
817
+ } | {
818
+ forOpcode: "COPY_FILE_RANGE";
819
+ unique: bigint;
820
+ errorCode: number;
821
+ result: undefined;
822
+ } | {
823
+ forOpcode: "COPY_FILE_RANGE";
824
+ unique: bigint;
825
+ errorCode: undefined;
826
+ result: {
827
+ bytesWritten: bigint;
828
+ };
829
+ } | {
830
+ forOpcode: "SETUPMAPPING";
831
+ unique: bigint;
832
+ errorCode: number;
833
+ result: undefined;
834
+ } | {
835
+ forOpcode: "SETUPMAPPING";
836
+ unique: bigint;
837
+ errorCode: undefined;
838
+ result: Record<string, never>;
839
+ } | {
840
+ forOpcode: "REMOVEMAPPING";
841
+ unique: bigint;
842
+ errorCode: number;
843
+ result: undefined;
844
+ } | {
845
+ forOpcode: "REMOVEMAPPING";
846
+ unique: bigint;
847
+ errorCode: undefined;
848
+ result: Record<string, never>;
849
+ } | {
850
+ forOpcode: "SYNCFS";
851
+ unique: bigint;
852
+ errorCode: number;
853
+ result: undefined;
854
+ } | {
855
+ forOpcode: "SYNCFS";
856
+ unique: bigint;
857
+ errorCode: undefined;
858
+ result: Record<string, never>;
859
+ } | {
860
+ forOpcode: "TMPFILE";
861
+ unique: bigint;
862
+ errorCode: number;
863
+ result: undefined;
864
+ } | {
865
+ forOpcode: "TMPFILE";
866
+ unique: bigint;
867
+ errorCode: undefined;
868
+ result: TFuseEntry & {
869
+ fh: bigint;
870
+ openFlagsToKernel: TOpenFlagsToKernel;
871
+ };
872
+ } | {
873
+ forOpcode: "STATX";
874
+ unique: bigint;
875
+ errorCode: number;
876
+ result: undefined;
877
+ } | {
878
+ forOpcode: "STATX";
879
+ unique: bigint;
880
+ errorCode: undefined;
881
+ result: {
882
+ attrValidNsec: bigint;
883
+ flags: bigint;
884
+ stat: TFuseStatx;
885
+ };
732
886
  };
733
887
  type TGenericInterpretResult<T> = {
734
888
  error: Error;
@@ -752,4 +906,4 @@ declare const createMessageToKernelInterpreter: () => {
752
906
  }) => TGenericInterpretResult<TFuseResponse>;
753
907
  };
754
908
  export { createMessageFromKernelInterpreter, createMessageToKernelInterpreter, };
755
- export type { TFuseRequest, TFuseResponse, };
909
+ export type { TFuseRequest, TFuseResponse, TFuseStatx, TFuseSxTime, };