diff options
author | Ameer Hamza <[email protected]> | 2024-08-09 03:16:46 +0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-08 15:16:46 -0700 |
commit | 5536c0dee278796f04cfa3b549e2a1d8edb717b7 (patch) | |
tree | 43c8e44970c27acc9aceb70340ef8cce0820285b /include/sys | |
parent | 0ccd4b9d01f74dab6261291d8a18f6ba7ff5799e (diff) |
Sync AUX label during pool import
Spare and l2cache vdev labels are not updated during import. Therefore,
if disk paths are updated between pool export and import, the AUX label
still shows the old paths. This patch syncs the AUX label
during import to show the correct path information.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Umer Saleem <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ameer Hamza <[email protected]>
Closes #15817
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/spa_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/spa_impl.h b/include/sys/spa_impl.h index 47f349327..4fc6f22fc 100644 --- a/include/sys/spa_impl.h +++ b/include/sys/spa_impl.h @@ -146,6 +146,7 @@ struct spa_aux_vdev { vdev_t **sav_vdevs; /* devices */ int sav_count; /* number devices */ boolean_t sav_sync; /* sync the device list */ + boolean_t sav_label_sync; /* sync aux labels */ nvlist_t **sav_pending; /* pending device additions */ uint_t sav_npending; /* # pending devices */ }; |