lxd/container_lxc.go
func (c *containerLXC) StorageStartSensitive() (bool, error) {
	// Initialize storage interface for the container.
	err := c.initStorage()
	if err != nil {
		return false, err
	}

	var isOurOperation bool
	if c.IsSnapshot() {
		isOurOperation, err = c.storage.ContainerSnapshotStart(c)
	} else {
		isOurOperation, err = c.storage.ContainerMount(c)
	}

	return isOurOperation, err
}
func (c *containerLXC) StorageStartSensitive() (bool, error) {
	// Initialize storage interface for the container.
	err := c.initStorage()
	if err != nil {
		return false, err
	}

	var isOurOperation bool
	if c.IsSnapshot() {
		isOurOperation, err = c.storage.ContainerSnapshotStart(c)
	} else {
		isOurOperation, err = c.storage.ContainerMount(c)
	}

	return isOurOperation, err
}
func ( c * containerLXC ) StorageStartSensitive ( ) ( bool , error ) { // Initialize storage interface for the container. err := c . initStorage ( ) if err != nil { return false , err } var isOurOperation bool if c . IsSnapshot ( ) { isOurOperation , err = c . storage . ContainerSnapshotStart ( c ) } else { isOurOperation , err = c . storage . ContainerMount ( c ) } return isOurOperation , err }
// Kill this function as soon as zfs is fixed.
Kill this function as soon as zfs is fixed .