Fix libzpool build.

MFC after:	1 month
This commit is contained in:
pjd 2011-03-06 01:22:14 +00:00
parent 0799872385
commit 248b05034f
3 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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
}