Date: Wed, 08 Jun 2011 15:18:36 +0200 From: Arnaud Houdelette <tzim@tzim.net> To: <freebsd-stable@freebsd.org> Subject: Renaming ZFS datasets without unmount. Message-ID: <ce2fa757f4945381a18f842f1f58ab03@tzim.net>
next in thread | raw e-mail | index | archive | help
When I try to rename a mounted dataset with open files, I get the following error : [carenath] /home/tzim# zfs rename unsafe/tmp unsafe/temp cannot unmount '/tmp': Device busy The mountpoint property is set locally : [carenath] /home/tzim# zfs get mountpoint unsafe/tmp NAME PROPERTY VALUE SOURCE unsafe/tmp mountpoint /tmp local zfs(1M) says : Renamed file systems can inherit new mount points, in which case they are unmounted and remounted at the new mount point. But here, the mountpoint should not change. So the file system does not need to be remounted ... Either I don't understand something, or there's an "error" in the man, or a bug in zfs rename. It could be great if zfs allowed "live" renaming of mounted filesystem, as It can avoid headaches... Thanks Arnaud Houdelette
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce2fa757f4945381a18f842f1f58ab03>