dsl_dataset_promote_sync: populate 'oldname' before using it
It's very unlikely that zfsvfs_update_fromname() and zvol_rename_minors() ever did anything during the promote operation as the old name was not initialized. MFC after: 1 week
This commit is contained in:
parent
4312ebfe0b
commit
6b47663df5
@ -3109,6 +3109,10 @@ dsl_dataset_promote_sync(void *arg, dmu_tx_t *tx)
|
|||||||
ds->ds_objset = NULL;
|
ds->ds_objset = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__) && defined(_KERNEL)
|
||||||
|
dsl_dataset_name(ds, oldname);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* move snap name entry */
|
/* move snap name entry */
|
||||||
VERIFY0(dsl_dataset_get_snapname(ds));
|
VERIFY0(dsl_dataset_get_snapname(ds));
|
||||||
VERIFY0(dsl_dataset_snap_remove(origin_head,
|
VERIFY0(dsl_dataset_snap_remove(origin_head,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user