summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-11-17 16:44:34 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-11-18 13:10:34 +0100
commit24e6fbf1dee7ff21913a4bef8ae0ae4ed2245fc8 (patch)
tree0be596f15b5aa130ce89236d7b684dac72954238 /src/json.h
parent727f31a88b9b4daf50a28997b51f9097605e92c9 (diff)
#1008 Restore support for 4 disks and 16 partitions
ogServer expects to receive information of 1 disk and 4 partitions from ogClient. Previous ogServer versions support several disks and partitions. Add ogServer support for 4 disks and 16 partitions.
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json.h b/src/json.h
index df7964d..978f7a8 100644
--- a/src/json.h
+++ b/src/json.h
@@ -30,7 +30,8 @@ struct og_partition {
const char *used_size;
};
-#define OG_PARTITION_MAX 4
+#define OG_DISK_MAX 4
+#define OG_PARTITION_MAX (4 * OG_DISK_MAX)
int og_json_parse_partition(json_t *element, struct og_partition *part,
uint64_t required_flags);