From 45781161f49dcd9b31909ec40766ab4e71d0afa0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 4 Dec 2015 20:24:47 +0100 Subject: [PATCH] libdm: add some doc for mirror status Comment content of struct for mirror status. --- libdm/libdevmapper.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 48f868275..12a665b60 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -300,19 +300,19 @@ typedef enum { struct dm_status_mirror { uint64_t total_regions; uint64_t insync_regions; - uint32_t dev_count; + uint32_t dev_count; /* # of devs[] elements (<= 8) */ struct { dm_status_mirror_health_t health; uint32_t major; uint32_t minor; - } *devs; - const char *log_type; - uint32_t log_count; + } *devs; /* array with individual legs */ + const char *log_type; /* core, disk,.... */ + uint32_t log_count; /* # of logs[] elements */ struct { dm_status_mirror_health_t health; uint32_t major; uint32_t minor; - } *logs; + } *logs; /* array with individual logs */ }; int dm_get_status_mirror(struct dm_pool *mem, const char *params,