Don't forget to rename mounted snapshots of the file system being renamed.

MFC after:	2 weeks
This commit is contained in:
pjd 2011-10-24 20:41:31 +00:00
parent ef9809129f
commit ce9569c79a

View File

@ -2437,7 +2437,7 @@ zfsvfs_update_fromname(const char *oldname, const char *newname)
continue;
}
if (strncmp(fromname, oldname, oldlen) == 0 &&
fromname[oldlen] == '/') {
(fromname[oldlen] == '/' || fromname[oldlen] == '@')) {
(void)snprintf(tmpbuf, sizeof(tmpbuf), "%s%s",
newname, fromname + oldlen);
(void)strlcpy(fromname, tmpbuf,