Yes, you can rename mountpoints, and always have been able to.  It just
didn't happen much before the arrival of ZFS.  When you reboot the
machine, it would have tried to mount the filesystem in the original
location.  Under ZFS, this would have created a new mountpoint for you.
With UFS, you would have failed to mount the filesystem at all.

While this could theoretically be solved for the "target is a
mountpoint", I'm not sure if it can be done and still be standards
compliant, and it certainly can't be solved for arbitrary cases (rename
/foo/bar, when /foo/bar/baz is a mountpoint).

- Eric

On Wed, Jul 25, 2007 at 03:33:36PM -0700, Dan Mick wrote:
> I had a pool, p, with a filesystem p/local, mounted at /local.  In that are
> several workspace filesystems, including "/local/ws/install-nv".
> 
> I used "mv" from /local/ws to change install-nv to nv-install.
> 
> it worked.  nothing seemed wrong, except the output of "zfs list".
> 
> Then I remembered there was "zfs rename".
> 
> What state was I in, after the mv?  Should mv have worked?  Would I have lost
> that rename on reboot?...where's the gas station at?...
> 
> 
> 
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to