lxd/storage_zfs_utils.go
func zfsPoolVolumeCreate(dataset string, properties ...string) (string, error) {
	cmd := []string{"zfs", "create"}

	for _, prop := range properties {
		cmd = append(cmd, []string{"-o", prop}...)
	}

	cmd = append(cmd, []string{"-p", dataset}...)

	return shared.RunCommand(cmd[0], cmd[1:]...)
}
func zfsPoolVolumeCreate(dataset string, properties ...string) (string, error) {
	cmd := []string{"zfs", "create"}

	for _, prop := range properties {
		cmd = append(cmd, []string{"-o", prop}...)
	}

	cmd = append(cmd, []string{"-p", dataset}...)

	return shared.RunCommand(cmd[0], cmd[1:]...)
}
func zfsPoolVolumeCreate ( dataset string , properties ... string ) ( string , error ) { cmd := [ ] string { " " , " " } for _ , prop := range properties { cmd = append ( cmd , [ ] string { " " , prop } ... ) } cmd = append ( cmd , [ ] string { " " , dataset } ... ) return shared . RunCommand ( cmd [ 0 ] , cmd [ 1 : ] ... ) }
// zfsPoolVolumeCreate creates a ZFS dataset with a set of given properties.
zfsPoolVolumeCreate creates a ZFS dataset with a set of given properties .