Fix libzpool build.
MFC after: 1 month
This commit is contained in:
parent
0799872385
commit
248b05034f
@ -2336,7 +2336,9 @@ dsl_dataset_snapshot_rename_sync(void *arg1, void *arg2, dmu_tx_t *tx)
|
||||
ds->ds_snapname, 8, 1, &ds->ds_object, tx);
|
||||
ASSERT3U(err, ==, 0);
|
||||
dsl_dataset_name(ds, newname);
|
||||
#ifdef _KERNEL
|
||||
zvol_rename_minors(oldname, newname);
|
||||
#endif
|
||||
|
||||
spa_history_log_internal(LOG_DS_RENAME, dd->dd_pool->dp_spa, tx,
|
||||
"dataset = %llu", ds->ds_object);
|
||||
|
@ -1344,7 +1344,9 @@ dsl_dir_rename_sync(void *arg1, void *arg2, dmu_tx_t *tx)
|
||||
dd->dd_myname, 8, 1, &dd->dd_object, tx);
|
||||
ASSERT3U(err, ==, 0);
|
||||
dsl_dir_name(dd, newname);
|
||||
#ifdef _KERNEL
|
||||
zvol_rename_minors(oldname, newname);
|
||||
#endif
|
||||
|
||||
spa_history_log_internal(LOG_DS_RENAME, dd->dd_pool->dp_spa,
|
||||
tx, "dataset = %llu", dd->dd_phys->dd_head_dataset_obj);
|
||||
|
@ -76,7 +76,7 @@ extern int zvol_create_minors(const char *name);
|
||||
extern void zvol_rename_minors(const char *oldname, const char *newname);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user