PlainNAS supports user-defined aliases for storage volumes exposed via GraphQL.
Notes:
-
StorageMount.idis a stable identifier.- Local mounted volumes prefer the filesystem UUID:
fsuuid:<uuid>. - Local mounts without a UUID use a best-effort device fallback:
dev:<path>. - Remote mounts use:
remote:<src>.
- Local mounted volumes prefer the filesystem UUID:
-
Mutation: set or clear an alias (empty string clears)
mutation {
setMountAlias(id: "fsuuid:XXXX-XXXX", alias: "Media Drive")
}
- Query: volumes include an optional
aliasfield
query {
mounts { id name alias mountPoint fsType totalBytes }
}
Aliases are persisted in the embedded Pebble DB (storage:volume_alias) and survive restarts.