Metadata associated to a volume.

interface VolumeMetadata {
    available: number;
    fileSystem?: string;
    label?: string;
    mountPoint: string;
    ok?: boolean;
    remote?: boolean;
    remoteHost?: string;
    remoteShare?: string;
    size: number;
    status?: string;
    used: number;
    uuid?: string;
}

Properties

available: number

Available size in bytes

fileSystem?: string

This is the file system type (like "ext4" or "apfs")

label?: string

The name of the partition

mountPoint: string

Mount location (like "/home" or "C:"). May be a unique key at any given time, unless there are file system shenanigans (like from mergefs)

ok?: boolean

We may be able to tell if a mountpoint is "Connected and OK", "degraded", "disconnected", or otherwise unknown.

remote?: boolean

Remote/network volume?

remoteHost?: string

If remote, the ip or hostname hosting the share (like "rusty" or "10.1.1.3")

remoteShare?: string

If remote, the name of the share (like "homes")

size: number

Total size in bytes

status?: string

May be set if !ok

used: number

Used size in bytes

uuid?: string

UUID for the volume, like "d46edc85-a030-4dd7-a2a8-68344034e27d".