~/bend-docscommunity

src/fs/quota.bend checks

raw source on the hub · import 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/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:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/vmm/abi.FsOp -> 0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/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:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> @+growth:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> @+quota:0x9b8f2c0a3d76a7c0e967cd5ae59d1b06/src/lib/u64.U64 -> Bool

Whether an operation adding growth fits: no quota (0), or the bytes held plus growth within it.