mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Illumos #3742
3742 zfs comments need cleaner, more consistent style Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Christopher Siden <christopher.siden@delphix.com> References: https://www.illumos.org/issues/3742 illumos/illumos-gate@f717074149 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775 Porting notes: 1. The change to zfs_vfsops.c was dropped because it involves zfs_mount_label_policy, which does not exist in the Linux port.
This commit is contained in:
committed by
Brian Behlendorf
parent
e49f1e20a0
commit
d3cc8b152e
+5
-6
@@ -4585,6 +4585,7 @@ spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing)
|
||||
|
||||
/*
|
||||
* Detach a device from a mirror or replacing vdev.
|
||||
*
|
||||
* If 'replace_done' is specified, only detach if the parent
|
||||
* is a replacing vdev.
|
||||
*/
|
||||
@@ -5242,11 +5243,9 @@ spa_vdev_remove_from_namespace(spa_t *spa, vdev_t *vd)
|
||||
* the spa_vdev_config_[enter/exit] functions which allow us to
|
||||
* grab and release the spa_config_lock while still holding the namespace
|
||||
* lock. During each step the configuration is synced out.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Remove a device from the pool. Currently, this supports removing only hot
|
||||
* spares, slogs, and level 2 ARC devices.
|
||||
*
|
||||
* Currently, this supports removing only hot spares, slogs, and level 2 ARC
|
||||
* devices.
|
||||
*/
|
||||
int
|
||||
spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare)
|
||||
@@ -5356,7 +5355,7 @@ spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare)
|
||||
|
||||
/*
|
||||
* Find any device that's done replacing, or a vdev marked 'unspare' that's
|
||||
* current spared, so we can detach it.
|
||||
* currently spared, so we can detach it.
|
||||
*/
|
||||
static vdev_t *
|
||||
spa_vdev_resilver_done_hunt(vdev_t *vd)
|
||||
|
||||
Reference in New Issue
Block a user