// UnmountAll unmount this filesystem and any children inheriting the
// mountpoint property.
UnmountAll unmount this filesystem and any children inheriting the
mountpoint property.
// UnmountAll unmount this filesystem and any children inheriting the // mountpoint property .
func (d *Dataset) UnmountAll(flags int) (err error) {
	if d.list == nil {
		err = errors.New(msgDatasetIsNil)
		return
	}
	if len(d.Children) > 0 {
		for _, c := range d.Children {
			if err = c.UnmountAll(flags); err != nil {
				return
			}
		}
	}
	return d.Unmount(flags)
}
func ( d * Dataset ) UnmountAll ( flags int ) ( err error ) { if d . list == nil { err = errors . New ( msgDatasetIsNil ) return } if len ( d . Children ) > 0 { for _ , c := range d . Children { if err = c . UnmountAll ( flags ) ; err != nil { return } } } return d . Unmount ( flags ) }
UnmountAll unmount this filesystem and any children inheriting the
mountpoint property.
UnmountAll unmount this filesystem and any children inheriting the mountpoint property .
// This is implemented recursive because zfs_unmountall() didn't work