diff options
author | Matthew Macy <[email protected]> | 2019-10-03 10:20:44 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-03 10:20:44 -0700 |
commit | 7c5eff9400d12ed8f2676a6d08f6ae099351397f (patch) | |
tree | a5efa173c07a6c1a962ac68f2af42d9cc31a4b8c /cmd | |
parent | e1c216fb0c33209471b51f80ba3a1ce8910913c7 (diff) |
OpenZFS restructuring - libzutil
Factor Linux specific functionality out of libzutil.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9356
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zed/agents/zfs_mod.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/zed/agents/zfs_mod.c b/cmd/zed/agents/zfs_mod.c index 959ed24cd..39ddd8140 100644 --- a/cmd/zed/agents/zfs_mod.c +++ b/cmd/zed/agents/zfs_mod.c @@ -191,8 +191,8 @@ zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled) char rawpath[PATH_MAX], fullpath[PATH_MAX]; char devpath[PATH_MAX]; int ret; - int is_dm = 0; - int is_sd = 0; + boolean_t is_dm = B_FALSE; + boolean_t is_sd = B_FALSE; uint_t c; vdev_stat_t *vs; @@ -220,8 +220,8 @@ zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled) is_dm = zfs_dev_is_dm(path); zed_log_msg(LOG_INFO, "zfs_process_add: pool '%s' vdev '%s', phys '%s'" - " wholedisk %d, dm %d (%llu)", zpool_get_name(zhp), path, - physpath ? physpath : "NULL", wholedisk, is_dm, + " wholedisk %d, %s dm (guid %llu)", zpool_get_name(zhp), path, + physpath ? physpath : "NULL", wholedisk, is_dm ? "is" : "not", (long long unsigned int)guid); /* @@ -266,7 +266,7 @@ zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled) * testing) */ if (physpath != NULL && strcmp("scsidebug", physpath) == 0) - is_sd = 1; + is_sd = B_TRUE; /* * If the pool doesn't have the autoreplace property set, then use |