src/fs/quota.bend checks
raw source on the hub · import 0x2bd5a34a6e8be8eb2ccde942133379fd/src/fs/quota.bend as Quota
3 imports
import Base import ../lib/u64.bend as U import ../vmm/abi.bend as V
Definitions
def Quota.enospc source · line 11 · raw
U32
def Quota.growth source · line 15 · raw
@op:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsOp -> 0x2bd5a34a6e8be8eb2ccde942133379fd/src/lib/u64.U64
The bytes an operation may add: a write's length, nothing for the rest.
def Quota.allows source · line 26 · raw
@+usage:0x2bd5a34a6e8be8eb2ccde942133379fd/src/lib/u64.U64 -> @+growth:0x2bd5a34a6e8be8eb2ccde942133379fd/src/lib/u64.U64 -> @+quota:0x2bd5a34a6e8be8eb2ccde942133379fd/src/lib/u64.U64 -> Bool
Whether an operation adding growth fits: no quota (0), or the bytes held plus growth within it.
def Quota.makes source · line 37 · raw
@op:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsOp -> U32
The entries an operation would make: 1 for a file, directory or symlink.
def Quota.frees source · line 49 · raw
@op:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsOp -> U32
The entries an operation would free: 1 for a remove.
def Quota.counts source · line 57 · raw
@+op:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsOp -> Bool
Whether an operation changes the count at all (the rest skip it).
def Quota.done source · line 60 · raw
@r:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsResult -> Bool
def Quota.moved source · line 69 · raw
@+op:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsOp -> @r:0x2bd5a34a6e8be8eb2ccde942133379fd/src/vmm/abi.FsResult -> List<&2, U32>
What the count moves by once the host answered r: [made, freed], each only when the operation succeeded.
def Quota.inodes_allow source · line 75 · raw
@+used:U32 -> @+n:U32 -> @+cap:U32 -> Bool
Whether making n more entries fits: no cap (0), or the count plus n within it.