Displaying 6 results from an estimated 6 matches for "caa28ca".
Did you mean:
c3ab28ca
2015 Jun 19
3
[PATCH v3 1/2] Modify the function: analyze_line, make it more flexible
...ter 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
@@ -853,11 +853,10 @@ do_btrfs_fsck (const char *device, int64_t superblock, int repair)
* returns the next position following \n.
*/
static char *
-analyze_line (char *line, char **key, char **value)
+analyze_line (char *line, char **key, char...
2015 Jun 17
3
[PATCH v2 1/2] Modify public function: analyze_line, make it more flexible
...iter 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
@@ -853,11 +853,10 @@ do_btrfs_fsck (const char *device, int64_t superblock, int repair)
* returns the next position following \n.
*/
static char *
-analyze_line (char *line, char **key, char **value)
+analyze_line (char *line, char **key, char...
2015 Jun 19
2
[PATCH v2 1/2] Modify the function: analyze_line, make it more flexible
...ter 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
@@ -853,11 +853,10 @@ do_btrfs_fsck (const char *device, int64_t superblock, int repair)
* returns the next position following \n.
*/
static char *
-analyze_line (char *line, char **key, char **value)
+analyze_line (char *line, char **key, char...
2015 Jun 17
0
Re: [PATCH v2 1/2] Modify public function: analyze_line, make it more flexible
...it is not a public function, just an internal one.
>
> 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
> @@ -853,11 +853,10 @@ do_btrfs_fsck (const char *device, int64_t superblock, int repair)
> * returns the next position following \n.
> */
> static char *
> -analyze_line (char *line, char **key, char **value)
> +ana...
2015 Jun 19
0
[PATCH v2 2/2] New API: btrfs_device_stats
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
daemon/btrfs.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++
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...
2015 Jun 19
0
[PATCH v3 2/2] New API: btrfs_device_stats
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
daemon/btrfs.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++
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...