search for: btrfs_device_stat

Displaying 13 results from an estimated 13 matches for "btrfs_device_stat".

Did you mean: btrfs_device_stats
2015 Jun 19
0
[PATCH v2 2/2] New API: btrfs_device_stats
...generator/actions.ml | 10 ++++++++ 2 files changed, 81 insertions(+) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index caa28ca..4288fc9 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -2083,3 +2083,74 @@ do_btrfs_image (char *const *sources, const char *image, return 0; } +char ** +do_btrfs_device_stats (const char *path) +{ + const size_t MAX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + CLEANUP_FREE char *buf = NULL; + CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *out = NULL; + char *p, *key = NULL, *value = NULL; + DECLARE_STRINGSBUF (ret); + int r; + int is_dev; +...
2015 Jun 19
0
[PATCH v3 2/2] New API: btrfs_device_stats
...generator/actions.ml | 10 ++++++++ 2 files changed, 81 insertions(+) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index caa28ca..4288fc9 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -2083,3 +2083,74 @@ do_btrfs_image (char *const *sources, const char *image, return 0; } +char ** +do_btrfs_device_stats (const char *path) +{ + const size_t MAX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + CLEANUP_FREE char *buf = NULL; + CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *out = NULL; + char *p, *key = NULL, *value = NULL; + DECLARE_STRINGSBUF (ret); + int r; + int is_dev; +...
2015 Jun 17
0
Re: [PATCH] New API: btrfs_device_stats
Hi, On Wednesday 17 June 2015 10:12:59 Cao jin wrote: > >> @@ -2083,3 +2083,72 @@ do_btrfs_image (char *const *sources, const char *image, > >> > >> return 0; > >> } > >> + > >> +char ** > >> +do_btrfs_device_stats (const char *path, int zero) > >> +{ > >> + const size_t MAX_ARGS = 64; > >> + const char *argv[MAX_ARGS]; > >> + size_t i = 0; > >> + CLEANUP_FREE char *buf = NULL; > >> + CLEANUP_FREE char *err = NULL; > >> + CLEANUP_FREE char...
2015 Jun 18
0
Re: [PATCH] New API: btrfs_device_stats
Hi, On Thursday 18 June 2015 11:01:37 Cao jin wrote: > > Speaking of this: you said that you have a colleague working on > > btrfs-progs? What about suggesting to create some machine-parseable > > output (csv, xml, yaml, json, whatever) so extracting the results of > > btrfs tools is a lot more easy? > > > > Yes, I forward your suggestion and consult him, the
2015 Jun 18
0
Re: [PATCH] New API: btrfs_device_stats
On Thursday 18 June 2015 18:33:59 Cao jin wrote: > Hi, Pino > > 在 2015年06月18日 16:41, Pino Toscano 写道: > > Hi, > > > > On Thursday 18 June 2015 11:01:37 Cao jin wrote: > >>> Speaking of this: you said that you have a colleague working on > >>> btrfs-progs? What about suggesting to create some machine-parseable > >>> output (csv, xml,
2015 Jun 16
0
Re: [PATCH] New API: btrfs_device_stats
...> - p = analyze_line(p, &key, &value); > + p = analyze_line(p, &key, &value, ':'); > } > } > > @@ -2083,3 +2083,72 @@ do_btrfs_image (char *const *sources, const char *image, > > return 0; > } > + > +char ** > +do_btrfs_device_stats (const char *path, int zero) > +{ > + const size_t MAX_ARGS = 64; > + const char *argv[MAX_ARGS]; > + size_t i = 0; > + CLEANUP_FREE char *buf = NULL; > + CLEANUP_FREE char *err = NULL; > + CLEANUP_FREE char *out = NULL; > + char *p, *key = NULL, *value = NULL; >...
2015 Jun 18
2
Re: [PATCH] New API: btrfs_device_stats
Hi, Pino 在 2015年06月18日 16:41, Pino Toscano 写道: > Hi, > > On Thursday 18 June 2015 11:01:37 Cao jin wrote: >>> Speaking of this: you said that you have a colleague working on >>> btrfs-progs? What about suggesting to create some machine-parseable >>> output (csv, xml, yaml, json, whatever) so extracting the results of >>> btrfs tools is a lot more easy?
2015 Jun 16
2
[PATCH] New API: btrfs_device_stats
...(const char *subvolume) return NULL; } - p = analyze_line(p, &key, &value); + p = analyze_line(p, &key, &value, ':'); } } @@ -2083,3 +2083,72 @@ do_btrfs_image (char *const *sources, const char *image, return 0; } + +char ** +do_btrfs_device_stats (const char *path, int zero) +{ + const size_t MAX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + CLEANUP_FREE char *buf = NULL; + CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *out = NULL; + char *p, *key = NULL, *value = NULL; + DECLARE_STRINGSBUF (ret); + int r; + int...
2015 Jun 18
3
Re: [PATCH] New API: btrfs_device_stats
...; Hi, > > On Wednesday 17 June 2015 10:12:59 Cao jin wrote: >>>> @@ -2083,3 +2083,72 @@ do_btrfs_image (char *const *sources, const char *image, >>>> >>>> return 0; >>>> } >>>> + >>>> +char ** >>>> +do_btrfs_device_stats (const char *path, int zero) >>>> +{ >>>> + const size_t MAX_ARGS = 64; >>>> + const char *argv[MAX_ARGS]; >>>> + size_t i = 0; >>>> + CLEANUP_FREE char *buf = NULL; >>>> + CLEANUP_FREE char *err = NULL; >>>>...
2015 Jun 17
2
Re: [PATCH] New API: btrfs_device_stats
...mp;value); >> + p = analyze_line(p, &key, &value, ':'); >> } >> } >> >> @@ -2083,3 +2083,72 @@ do_btrfs_image (char *const *sources, const char *image, >> >> return 0; >> } >> + >> +char ** >> +do_btrfs_device_stats (const char *path, int zero) >> +{ >> + const size_t MAX_ARGS = 64; >> + const char *argv[MAX_ARGS]; >> + size_t i = 0; >> + CLEANUP_FREE char *buf = NULL; >> + CLEANUP_FREE char *err = NULL; >> + CLEANUP_FREE char *out = NULL; >> + char *p, *...
2015 Jun 19
2
[PATCH v2 1/2] Modify the function: analyze_line, make it more flexible
Mofify the function from a fixed delimiter to a variable. So, it can be used in more APIs later. Also modified the existing callers Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> --- daemon/btrfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 39392f7..caa28ca 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@
2015 Jun 19
3
[PATCH v3 1/2] Modify the function: analyze_line, make it more flexible
Mofify the function from a fixed delimiter to a variable. So, it can be used in more APIs later. Also modified the existing callers Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> --- daemon/btrfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 39392f7..caa28ca 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@
2015 Jun 17
3
[PATCH v2 1/2] Modify public function: analyze_line, make it more flexible
Mofify the function from fixed dilemiter to variabler. So, it could be used in more APIs later. Also modified the existed caller Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> --- daemon/btrfs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 39392f7..caa28ca 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@