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
This commit is contained in:
Andriy Gapon 2012-11-04 14:43:15 +00:00
parent 88c8884a71
commit 5c997cc429

View file

@ -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 {
/*