// Put removes the existing mountpoint for the given id if it exists. func (d *Driver) Put(id string) error { mountpoint := d.mountPath(id) mounted, err := graphdriver.Mounted(graphdriver.FsMagicZfs, mountpoint) if err != nil || !mounted { return err } logrus.Debugf(`[zfs] unmount("%s")`, mountpoint) if err := mount.Unmount(mountpoint); err != nil { return fmt.Errorf("error unmounting to %s: %v", mountpoint, err) } return nil }
func (a *Driver) mounted(mountpoint string) (bool, error) { return graphdriver.Mounted(graphdriver.FsMagicAufs, mountpoint) }
func (d *Driver) mounted(dir string) (bool, error) { return graphdriver.Mounted(graphdriver.FsMagicOverlay, dir) }