func (d *Dataset) SendSnapshot(output io.Writer) error {
	if d.Type != DatasetSnapshot {
		return errors.New("can only send snapshots")
	}

	c := command{Command: "zfs", Stdout: output}
	_, err := c.Run("send", d.Name)
	return err
}
func (d *Dataset) SendSnapshot(output io.Writer) error {
	if d.Type != DatasetSnapshot {
		return errors.New("can only send snapshots")
	}

	c := command{Command: "zfs", Stdout: output}
	_, err := c.Run("send", d.Name)
	return err
}
func ( d * Dataset ) SendSnapshot ( output io . Writer ) error { if d . Type != DatasetSnapshot { return errors . New ( " " ) } c := command { Command : " " , Stdout : output } _ , err := c . Run ( " " , d . Name ) return err }
// SendSnapshot sends a ZFS stream of a snapshot to the input io.Writer.
// An error will be returned if the input dataset is not of snapshot type.
SendSnapshot sends a ZFS stream of a snapshot to the input io . Writer . An error will be returned if the input dataset is not of snapshot type .