mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Remove refences to blacklist/whitelist
These terms reinforce the incorrect notion that black is bad and white is good. Replace this language with more specific terms which are also more clear and don't rely on metaphor. Specifically: * When vdevs are specified on the command line, they are the "selected" vdevs. * Entries in /dev/ which should not be considered as possible disks are "excluded" devices. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Wilson <gwilson@delphix.com> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes #10457
This commit is contained in:
@@ -616,7 +616,7 @@ for_each_vdev_run_cb(zpool_handle_t *zhp, nvlist_t *nv, void *cb_vcdl)
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for whitelisted vdevs here, if any */
|
||||
/* Check for selected vdevs here, if any */
|
||||
for (i = 0; i < vcdl->vdev_names_count; i++) {
|
||||
vname = zpool_vdev_name(g_zfs, zhp, nv, vcdl->cb_name_flags);
|
||||
if (strcmp(vcdl->vdev_names[i], vname) == 0) {
|
||||
@@ -627,7 +627,7 @@ for_each_vdev_run_cb(zpool_handle_t *zhp, nvlist_t *nv, void *cb_vcdl)
|
||||
free(vname);
|
||||
}
|
||||
|
||||
/* If we whitelisted vdevs, and this isn't one of them, then bail out */
|
||||
/* If we selected vdevs, and this isn't one of them, then bail out */
|
||||
if (!match && vcdl->vdev_names_count)
|
||||
return (0);
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ typedef struct vdev_cmd_data_list
|
||||
char *cmd; /* Command to run */
|
||||
unsigned int count; /* Number of vdev_cmd_data items (vdevs) */
|
||||
|
||||
/* vars to whitelist only certain vdevs, if requested */
|
||||
/* fields used to select only certain vdevs, if requested */
|
||||
libzfs_handle_t *g_zfs;
|
||||
char **vdev_names;
|
||||
int vdev_names_count;
|
||||
|
||||
Reference in New Issue
Block a user