From 1bfb0a750c6fcd0bbf4d68a1890704f0aefe6337 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sun, 17 Nov 2019 11:00:50 +0530 Subject: debug/io-stats: add an option to set volume-id 'volume-id' is good to have for a graph for uniquely identifying it. Add it to graph->volume_id while generating volfile itself. This can be further used in many other places. Updates: #763 Change-Id: I80516d62d28a284e8ff4707841570ced97a37e73 Signed-off-by: Amar Tumballi --- xlators/storage/posix/src/posix-common.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'xlators/storage/posix/src') diff --git a/xlators/storage/posix/src/posix-common.c b/xlators/storage/posix/src/posix-common.c index 13b70da4d64..e95bc652944 100644 --- a/xlators/storage/posix/src/posix-common.c +++ b/xlators/storage/posix/src/posix-common.c @@ -145,12 +145,6 @@ posix_notify(xlator_t *this, int32_t event, void *data, ...) switch (event) { case GF_EVENT_PARENT_UP: { /* Notify the parent that posix xlator is up */ - char *volume_id; - int ret = dict_get_str(this->options, "volume-id", &volume_id); - if (!ret) { - strncpy(this->graph->volume_id, volume_id, - min(strlen(volume_id), GF_UUID_BUF_SIZE)); - } default_notify(this, GF_EVENT_CHILD_UP, data); } break; -- cgit