zfs.go
func CreateFilesystem(name string, properties map[string]string) (*Dataset, error) {
	args := make([]string, 1, 4)
	args[0] = "create"

	if properties != nil {
		args = append(args, propsSlice(properties)...)
	}

	args = append(args, name)
	_, err := zfs(args...)
	if err != nil {
		return nil, err
	}
	return GetDataset(name)
}
func CreateFilesystem(name string, properties map[string]string) (*Dataset, error) {
	args := make([]string, 1, 4)
	args[0] = "create"

	if properties != nil {
		args = append(args, propsSlice(properties)...)
	}

	args = append(args, name)
	_, err := zfs(args...)
	if err != nil {
		return nil, err
	}
	return GetDataset(name)
}
func CreateFilesystem ( name string , properties map [ string ] string ) ( * Dataset , error ) { args := make ( [ ] string , 1 , 4 ) args [ 0 ] = " " if properties != nil { args = append ( args , propsSlice ( properties ) ... ) } args = append ( args , name ) _ , err := zfs ( args ... ) if err != nil { return nil , err } return GetDataset ( name ) }
// CreateFilesystem creates a new ZFS filesystem with the specified name and
// properties.
// A full list of available ZFS properties may be found here:
// https://www.freebsd.org/cgi/man.cgi?zfs(8).
CreateFilesystem creates a new ZFS filesystem with the specified name and properties . A full list of available ZFS properties may be found here : https : // www . freebsd . org / cgi / man . cgi?zfs ( 8 ) .