diff options
author | avg <avg@FreeBSD.org> | 2012-11-04 14:43:15 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-11-04 14:43:15 +0000 |
commit | e1ad987110cc0b5b293db2e1f8822a3341a2c355 (patch) | |
tree | 6cae244905e5b5c8e7271337be54f31abe1e44e9 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | |
parent | c6f32e8bf861ff4f13df3ca259b65b572edcd2df (diff) | |
download | FreeBSD-src-e1ad987110cc0b5b293db2e1f8822a3341a2c355.zip FreeBSD-src-e1ad987110cc0b5b293db2e1f8822a3341a2c355.tar.gz |
zfsctl_snapdir_lookup: obtain a snapname in the remount case
... which is triggered if somebody did regular umount on a snapshot mount.
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
MFC after: 20 days
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c index 65fc902..86561e9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c @@ -1002,6 +1002,7 @@ zfsctl_snapdir_lookup(ap) * The snapshot was unmounted behind our backs, * try to remount it. */ + VERIFY(zfsctl_snapshot_zname(dvp, nm, MAXNAMELEN, snapname) == 0); goto domount; } else { /* |