All files / json-pack/src/nfs/v4/server/operations FilesystemStats.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20      26x     82x   82x   82x   82x   82x   82x      
/**
 * Filesystem statistics for NFSv4 space and file count attributes.
 */
export class FilesystemStats {
  constructor(
    /** Available space in bytes for unprivileged users */
    public readonly spaceAvail: bigint,
    /** Free space in bytes on the filesystem */
    public readonly spaceFree: bigint,
    /** Total space in bytes on the filesystem */
    public readonly spaceTotal: bigint,
    /** Available file slots (inodes) */
    public readonly filesAvail: bigint,
    /** Free file slots (inodes) */
    public readonly filesFree: bigint,
    /** Total file slots (inodes) */
    public readonly filesTotal: bigint,
  ) {}
}