From 649bbd1cd06e39744d3979806e18aad5f729e9ef Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 24 Oct 2011 20:41:31 +0000 Subject: [PATCH] Don't forget to rename mounted snapshots of the file system being renamed. MFC after: 2 weeks --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c index 2e57eabb7b76..c8f9bb9ff8d3 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c @@ -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,