Interface Configuration<T>

Configuration

interface Configuration<T> {
    addDevices: boolean;
    cachePaths: boolean;
    cacheStats: boolean;
    disableAccessChecks: boolean;
    disableAsyncCache?: boolean;
    disableUpdateOnRead: boolean;
    gid: number;
    mounts: {
        [K in string | number | symbol]: MountConfiguration<T[K]>
    };
    onlySyncOnClose: boolean;
    uid: number;
}

Type Parameters

Hierarchy (view full)

Properties

addDevices: boolean

Whether to automatically add normal Linux devices

false
cachePaths: boolean

If true, enables caching realpath output

This can increase performance.

false
cacheStats: boolean

If true, enables caching stats for certain operations. This should reduce the number of stat calls performed.

false
disableAccessChecks: boolean

If true, disables all permissions checking.

This can increase performance.

false
disableAsyncCache?: boolean

If set, disables the sync cache and sync operations on async file systems.

disableUpdateOnRead: boolean

If true, disables read and readSync from updating the atime.

This can increase performance.

false
gid: number

The gid to use

0
mounts: {
    [K in string | number | symbol]: MountConfiguration<T[K]>
}

An object mapping mount points to mount configuration

onlySyncOnClose: boolean

If true, files will only sync to the file system when closed.

This can increase performance.

disableUpdateOnRead

false
uid: number

The uid to use

0