[Bug 209093] ZFS snapshot rename : .zfs/snapshot messes up

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 17 07:56:29 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209093

--- Comment #3 from commit-hook at freebsd.org ---
A commit references this bug:

Author: avg
Date: Tue May 17 07:56:05 UTC 2016
New revision: 300024
URL: https://svnweb.freebsd.org/changeset/base/300024

Log:
  zfs_ioc_rename: fix a reversed condition

  FreeBSD zfs_ioc_rename() has an option, not present upstream, that
  allows to rename snapshots without unmounting them first.  I am not sure
  what is a rationale for that option, but its actual behavior was the
  opposite of the intended behavior.  That is, by default the snapshots
  were not unmounted.
  The option was introduced as part of a large update from upstream in
  r248498.

  One of the consequences was a havoc under .zfs/snapshot after the rename.
  The snapshots got new names but were mounted on top of directories with
  old names, so readdir would list the new names, but lookup would still
  find the old mounts.

  PR:           209093
  Reported by:  Fr?d?ric VANNI?RE <f.vanniere at planet-work.com>
  MFC after:    5 days

Changes:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-fs mailing list