diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2022-04-19 18:38:30 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2022-06-29 21:08:54 +0000 |
commit | a926aab902ac5c680f4766568d19674b80fb58bb (patch) | |
tree | 2f505528a4dea156b50c5602dbcefe48b9e902d7 /module/zfs/vdev_removal.c | |
parent | e7d90362e5d5f873e1272519da96780cf00a0e28 (diff) | |
download | src-a926aab902ac5c680f4766568d19674b80fb58bb.tar.gz src-a926aab902ac5c680f4766568d19674b80fb58bb.zip |
Diffstat (limited to 'module/zfs/vdev_removal.c')
-rw-r--r-- | module/zfs/vdev_removal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/zfs/vdev_removal.c b/module/zfs/vdev_removal.c index 7dfc4345f236..7fbe38b42a36 100644 --- a/module/zfs/vdev_removal.c +++ b/module/zfs/vdev_removal.c @@ -338,8 +338,8 @@ spa_vdev_alloc(spa_t *spa, uint64_t guid) } static void -spa_vdev_remove_aux(nvlist_t *config, char *name, nvlist_t **dev, int count, - nvlist_t *dev_to_remove) +spa_vdev_remove_aux(nvlist_t *config, const char *name, nvlist_t **dev, + int count, nvlist_t *dev_to_remove) { nvlist_t **newdev = NULL; @@ -2384,7 +2384,8 @@ spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare) int error = 0, error_log; boolean_t locked = MUTEX_HELD(&spa_namespace_lock); sysevent_t *ev = NULL; - char *vd_type = NULL, *vd_path = NULL; + const char *vd_type = NULL; + char *vd_path = NULL; ASSERT(spa_writeable(spa)); |