MountedRepackedVfs
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:100
Several stores as ONE tree, joined at path prefixes: a durable OPFS root with a memory-backed mount at a chosen prefix, handed to the broker as a single store. Which prefix, which port, and whether a mount is durable are the STORAGE OWNER’s declarations — nothing is inferred.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MountedRepackedVfs(
options):MountedRepackedVfs
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:106
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”MountedRepackedVfs
Accessors
Section titled “Accessors”mounts
Section titled “mounts”Get Signature
Section titled “Get Signature”get mounts(): readonly
RepackedMount[]
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:147
The mounts this composite serves, in declaration order.
Returns
Section titled “Returns”readonly RepackedMount[]
Get Signature
Section titled “Get Signature”get root():
RepackedFileSystem
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:152
The store that answers for everything no mount claims.
Returns
Section titled “Returns”Methods
Section titled “Methods”assertHealthy()
Section titled “assertHealthy()”assertHealthy():
void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:235
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”RepackedFileSystem.assertHealthy
chmod()
Section titled “chmod()”chmod(
path,mode,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:346
Parameters
Section titled “Parameters”string
number
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”close()
Section titled “close()”Call Signature
Section titled “Call Signature”close():
void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:269
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”close(
fd):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:270
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”fail()
Section titled “fail()”fail(
cause):never
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:240
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”never
Implementation of
Section titled “Implementation of”fstat()
Section titled “fstat()”fstat(
fd):RepackedStat
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:386
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”lstat()
Section titled “lstat()”lstat(
path):RepackedStat
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:302
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”metrics()
Section titled “metrics()”metrics():
RepackedVfsMetrics
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:252
The ROOT store’s metrics. A mount’s own are read through MountedRepackedVfs.mounts.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”mkdir()
Section titled “mkdir()”mkdir(
path,options):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:322
Parameters
Section titled “Parameters”string
options
Section titled “options”number
bigint
recursive?
Section titled “recursive?”boolean
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”open()
Section titled “open()”open(
path,flags?,mode?,nowMs?):number
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:378
Parameters
Section titled “Parameters”string
flags?
Section titled “flags?”string = "r"
number = 0o100666
nowMs?
Section titled “nowMs?”bigint = 0n
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”read()
Section titled “read()”read(
fd,buffer,offset,length,position?):number
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:391
Parameters
Section titled “Parameters”number
buffer
Section titled “buffer”Uint8Array
offset
Section titled “offset”number
length
Section titled “length”number
position?
Section titled “position?”bigint
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”readdir()
Section titled “readdir()”readdir(
path):string[]
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:317
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Implementation of
Section titled “Implementation of”readFile()
Section titled “readFile()”readFile(
path):Uint8Array
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:336
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Uint8Array
Implementation of
Section titled “Implementation of”readlink()
Section titled “readlink()”readlink(
path):string
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:312
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
Implementation of
Section titled “Implementation of”rename()
Section titled “rename()”rename(
oldPath,newPath,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:367
A rename is one store’s metadata move; across a boundary it is EXDEV, as on any host.
Parameters
Section titled “Parameters”oldPath
Section titled “oldPath”string
newPath
Section titled “newPath”string
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”repack()
Section titled “repack()”repack(
reason?):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:256
Parameters
Section titled “Parameters”reason?
Section titled “reason?”RepackReason
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”resolvePath()
Section titled “resolvePath()”resolvePath(
path,follow?):string
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:177
The link-free composite path path names.
The fast path asks the routed store to resolve its own view: a store that reports the path unchanged proves there is no link on it, because every entry on that path lives in that store. Anything else falls through to the careful walk, which resolves one component at a time and can therefore cross a boundary in either direction.
Parameters
Section titled “Parameters”string
follow?
Section titled “follow?”boolean = true
Returns
Section titled “Returns”string
Implementation of
Section titled “Implementation of”RepackedFileSystem.resolvePath
rmdir()
Section titled “rmdir()”rmdir(
path,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:361
Parameters
Section titled “Parameters”string
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”runScheduledRepack()
Section titled “runScheduledRepack()”runScheduledRepack(
nowMs?):boolean
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:261
Parameters
Section titled “Parameters”nowMs?
Section titled “nowMs?”number
Returns
Section titled “Returns”boolean
Implementation of
Section titled “Implementation of”RepackedFileSystem.runScheduledRepack
stat()
Section titled “stat()”stat(
path):RepackedStat
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:297
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”strictSync()
Section titled “strictSync()”strictSync():
void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:228
Flushes the root and every mount the owner declared durable; a volatile mount is skipped.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”symlink()
Section titled “symlink()”symlink(
target,path,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:307
Parameters
Section titled “Parameters”target
Section titled “target”string
string
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”truncate()
Section titled “truncate()”truncate(
path,size,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:341
Parameters
Section titled “Parameters”string
bigint
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”unlink()
Section titled “unlink()”unlink(
path,nowMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:356
Parameters
Section titled “Parameters”string
bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”utimes()
Section titled “utimes()”utimes(
path,atimeMs,mtimeMs,ctimeMs):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:351
Parameters
Section titled “Parameters”string
atimeMs
Section titled “atimeMs”bigint
mtimeMs
Section titled “mtimeMs”bigint
ctimeMs
Section titled “ctimeMs”bigint
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”write()
Section titled “write()”write(
fd,buffer,offset,length,position,nowMs):number
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:396
Parameters
Section titled “Parameters”number
buffer
Section titled “buffer”Uint8Array
offset
Section titled “offset”number
length
Section titled “length”number
position
Section titled “position”bigint | undefined
bigint
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”writeFile()
Section titled “writeFile()”writeFile(
path,data,options):void
Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:327
Parameters
Section titled “Parameters”string
string | Uint8Array<ArrayBufferLike>
options
Section titled “options”encoding?
Section titled “encoding?”string
string
number
bigint
Returns
Section titled “Returns”void