zfs.go
func (d *Dataset) Unmount(force bool) (*Dataset, error) {
	if d.Type == DatasetSnapshot {
		return nil, errors.New("cannot unmount snapshots")
	}
	args := make([]string, 1, 3)
	args[0] = "umount"
	if force {
		args = append(args, "-f")
	}
	args = append(args, d.Name)
	_, err := zfs(args...)
	if err != nil {
		return nil, err
	}
	return GetDataset(d.Name)
}
func (d *Dataset) Unmount(force bool) (*Dataset, error) {
	if d.Type == DatasetSnapshot {
		return nil, errors.New("cannot unmount snapshots")
	}
	args := make([]string, 1, 3)
	args[0] = "umount"
	if force {
		args = append(args, "-f")
	}
	args = append(args, d.Name)
	_, err := zfs(args...)
	if err != nil {
		return nil, err
	}
	return GetDataset(d.Name)
}
func ( d * Dataset ) Unmount ( force bool ) ( * Dataset , error ) { if d . Type == DatasetSnapshot { return nil , errors . New ( " " ) } args := make ( [ ] string , 1 , 3 ) args [ 0 ] = " " if force { args = append ( args , " " ) } args = append ( args , d . Name ) _ , err := zfs ( args ... ) if err != nil { return nil , err } return GetDataset ( d . Name ) }
// Unmount unmounts currently mounted ZFS file systems.
Unmount unmounts currently mounted ZFS file systems .