Skip to content

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.

new MountedRepackedVfs(options): MountedRepackedVfs

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:106

MountedRepackedVfsOptions

MountedRepackedVfs

get mounts(): readonly RepackedMount[]

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:147

The mounts this composite serves, in declaration order.

readonly RepackedMount[]


get root(): RepackedFileSystem

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:152

The store that answers for everything no mount claims.

RepackedFileSystem

assertHealthy(): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:235

void

RepackedFileSystem.assertHealthy


chmod(path, mode, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:346

string

number

bigint

void

RepackedFileSystem.chmod


close(): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:269

void

RepackedFileSystem.close

close(fd): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:270

number

void

RepackedFileSystem.close


fail(cause): never

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:240

unknown

never

RepackedFileSystem.fail


fstat(fd): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:386

number

RepackedStat

RepackedFileSystem.fstat


lstat(path): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:302

string

RepackedStat

RepackedFileSystem.lstat


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.

RepackedVfsMetrics

RepackedFileSystem.metrics


mkdir(path, options): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:322

string

number

bigint

boolean

void

RepackedFileSystem.mkdir


open(path, flags?, mode?, nowMs?): number

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:378

string

string = "r"

number = 0o100666

bigint = 0n

number

RepackedFileSystem.open


read(fd, buffer, offset, length, position?): number

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:391

number

Uint8Array

number

number

bigint

number

RepackedFileSystem.read


readdir(path): string[]

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:317

string

string[]

RepackedFileSystem.readdir


readFile(path): Uint8Array

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:336

string

Uint8Array

RepackedFileSystem.readFile


readlink(path): string

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:312

string

string

RepackedFileSystem.readlink


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.

string

string

bigint

void

RepackedFileSystem.rename


repack(reason?): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:256

RepackReason

void

RepackedFileSystem.repack


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.

string

boolean = true

string

RepackedFileSystem.resolvePath


rmdir(path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:361

string

bigint

void

RepackedFileSystem.rmdir


runScheduledRepack(nowMs?): boolean

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:261

number

boolean

RepackedFileSystem.runScheduledRepack


stat(path): RepackedStat

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:297

string

RepackedStat

RepackedFileSystem.stat


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.

void

RepackedFileSystem.strictSync


symlink(target, path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:307

string

string

bigint

void

RepackedFileSystem.symlink


truncate(path, size, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:341

string

bigint

bigint

void

RepackedFileSystem.truncate


unlink(path, nowMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:356

string

bigint

void

RepackedFileSystem.unlink


utimes(path, atimeMs, mtimeMs, ctimeMs): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:351

string

bigint

bigint

bigint

void

RepackedFileSystem.utimes


write(fd, buffer, offset, length, position, nowMs): number

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:396

number

Uint8Array

number

number

bigint | undefined

bigint

number

RepackedFileSystem.write


writeFile(path, data, options): void

Defined in: packages/pgwasm/src/opfs/core/mounted-vfs.ts:327

string

string | Uint8Array<ArrayBufferLike>

string

string

number

bigint

void

RepackedFileSystem.writeFile