zfs_ioc_destroy_snaps_nvl: remove disk device entries for zvol snapshots

... before trying to destroy the zvol snapshots themselves.

PR:		kern/173442
Reported by:	Petri Helenius <petri@helenius.fi>,
		mm
Obtained from:	Brian Behlendorf <behlendorf1@llnl.gov>,
		Illumos Bug #3170
Tested by:	Petri Helenius <petri@helenius.fi>
MFC after:	10 days
This commit is contained in:
Andriy Gapon 2012-11-10 12:22:26 +00:00
parent 9260abade3
commit 7631b580ff

View File

@ -3245,6 +3245,7 @@ zfs_ioc_destroy_snaps_nvl(zfs_cmd_t *zc)
}
(void) zfs_unmount_snap(name, NULL);
(void) zvol_remove_minor(name);
}
err = dmu_snapshots_destroy_nvl(nvl, zc->zc_defer_destroy,