fix vbd rd_sects stat
From d09d27e40cfbdd2dbf5aefaa40a4f46ccb268056 Mon Sep 17 00:00:00 2001
Message-Id: <d09d27e40cfbdd2dbf5aefaa40a4f46ccb268056.1625818025.git.richard@kojedz.in>
From: Richard Kojedzinszky <[email protected]>
Date: Fri, 9 Jul 2021 10:06:45 +0200
Subject: [PATCH] xenstat_linux.c: fix populating vbd.rd_sect
--- tools/libs/stat/xenstat_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libs/stat/xenstat_linux.c +1 -1
@@ -475,7 +475,7 @@ int xenstat_collect_vbds(xenstat_node * node) (read_attributes_vbd (dp->d_name,"statistics/wr_req" , buf,256 )<=0 ) || ((ret =sscanf (buf,"%llu" , &vbd.wr_reqs)) !=1 ) || (read_attributes_vbd (dp->d_name,"statistics/rd_sect" , buf,256 )<=0 ) || - ((ret =sscanf (buf,"%llu" , &vbd.wr_sects)) !=1 ) || + ((ret =sscanf (buf,"%llu" , &vbd.rd_sect)) !=1 ) || (read_attributes_vbd (dp->d_name,"statistics/wr_sect" , buf,256 )<=0 ) || ((ret = sscanf(buf, "%llu", &vbd.wr_sects)) != 1)) {
Signature · 1 line
2.20.1
On 09/07/2021 09:09, Richard Kojedzinszky wrote:
Thankyou for the patch. That is quite an embarrassing bug.
However, for copyright reasons, we require all submissions to contain a Signed-off-by line, as per the Developer's Certificate of Origin,
https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches#Signed-off-by
Given how trivial this patch is, feel free to just reply to this email with confirmation and I can sort it out on commit.
However, for future patches, please include directly. (Also, if you are able to use git-send-email, and the get_maintainers.pl script, that would be even better.)
~Andrew
Then please add signed-by headers. :)
Thanks
2021. július 9. 10:59:54 CEST, Andrew Cooper <[email protected]> írta:
Quoted 17 lines · Richard Kojedzinszky
Thankyou for the patch. That is quite an embarrassing bug.
However, for copyright reasons, we require all submissions to contain a Signed-off-by line, as per the Developer's Certificate of Origin,
https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches#Signed-off-byGiven how trivial this patch is, feel free to just reply to this email with confirmation and I can sort it out on commit.
However, for future patches, please include directly. (Also, if you are
able to use git-send-email, and the get_maintainers.pl script, that would be even better.)~Andrew
Signature · 1 line
Ezt a levelet az Android készülékemről küldtem K-9 Mail-el. Elnézést a tömörségemért.
Quoted 1 line · Richard Kojedzinszky
Then please add signed-by headers. :)
Ok. I have fixed up and committed the patch.
https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=89d57f291e37b4769ab26db919eba46548f2e13e
This will want queueing for backporting
~Andrew
Dear Andrew,
Many thanks.
Meanwhile I would like to promote our xenstat-exporter, which we use for monitoring our vps instances.
https://github.com/euronetzrt/xenstat-exporter
We've spotted the bug during browsing the metrics.
Regards,
Richard
2021-07-09 13:30 időpontban Andrew Cooper ezt írta:
Quoted 10 lines · Richard Kojedzinszky
Quoted 1 line
Then please add signed-by headers. :)
Ok. I have fixed up and committed the patch.
https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=89d57f291e37b4769ab26db919eba46548f2e13e
This will want queueing for backporting
~Andrew
xenstat-exporter: [Was Re: fix vbd rd_sects stat]
Quoted 10 lines · Richard Kojedzinszky
Dear Andrew,
Many thanks.
Meanwhile I would like to promote our xenstat-exporter, which we use for monitoring our vps instances.
https://github.com/euronetzrt/xenstat-exporter
We've spotted the bug during browsing the metrics.
Hello.
We're always interested to hear what people are doing in the Xen ecosystem. CC-ing the Community Manager.
~Andrew