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:
parent
9260abade3
commit
7631b580ff
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user