MCPcopy
hub / github.com/lxc/incus / GetPoolMountPath

Function GetPoolMountPath

internal/server/storage/drivers/utils.go:250–252  ·  view source on GitHub ↗

GetPoolMountPath returns the mountpoint of the given pool. {INCUS_DIR}/storage-pools/ .

(poolName string)

Source from the content-addressed store, hash-verified

248// GetPoolMountPath returns the mountpoint of the given pool.
249// {INCUS_DIR}/storage-pools/<pool>.
250func GetPoolMountPath(poolName string) string {
251 return internalUtil.VarPath("storage-pools", poolName)
252}
253
254// GetVolumeMountPath returns the mount path for a specific volume based on its pool and type and
255// whether it is a snapshot or not. For VolumeTypeImage the volName is the image fingerprint.

Callers 15

CreateMethod · 0.92
MountMethod · 0.92
CreateMethod · 0.85
DeleteMethod · 0.85
UpdateMethod · 0.85
MountMethod · 0.85
UnmountMethod · 0.85
FillConfigMethod · 0.85
CreateMethod · 0.85
DeleteMethod · 0.85
MountMethod · 0.85
UnmountMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestGetVolumeMountPathFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…