zfs.go
func GetDataset(name string) (*Dataset, error) {
	out, err := zfs("list", "-Hp", "-o", dsPropListOptions, name)
	if err != nil {
		return nil, err
	}

	ds := &Dataset{Name: name}
	for _, line := range out {
		if err := ds.parseLine(line); err != nil {
			return nil, err
		}
	}

	return ds, nil
}
func GetDataset(name string) (*Dataset, error) {
	out, err := zfs("list", "-Hp", "-o", dsPropListOptions, name)
	if err != nil {
		return nil, err
	}

	ds := &Dataset{Name: name}
	for _, line := range out {
		if err := ds.parseLine(line); err != nil {
			return nil, err
		}
	}

	return ds, nil
}
func GetDataset ( name string ) ( * Dataset , error ) { out , err := zfs ( " " , " " , " " , dsPropListOptions , name ) if err != nil { return nil , err } ds := & Dataset { Name : name } for _ , line := range out { if err := ds . parseLine ( line ) ; err != nil { return nil , err } } return ds , nil }
// GetDataset retrieves a single ZFS dataset by name.  This dataset could be
// any valid ZFS dataset type, such as a clone, filesystem, snapshot, or volume.
GetDataset retrieves a single ZFS dataset by name . This dataset could be any valid ZFS dataset type such as a clone filesystem snapshot or volume .