search for: guestfs_int_btrfsfsshow

Displaying 3 results from an estimated 3 matches for "guestfs_int_btrfsfsshow".

2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...rc/MAX_PROC_NR | 2 +- 4 files changed, 209 insertions(+), 1 deletion(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 39392f7..09f7615 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -2083,3 +2083,179 @@ do_btrfs_image (char *const *sources, const char *image, return 0; } + +guestfs_int_btrfsfsshow_list * +do_btrfs_filesystem_show_all (void) +{ + const size_t MAX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + size_t nr_filesystem_show = 0; + CLEANUP_FREE char *err = NULL; + char *out = NULL; + char **lines; + int r; + /* Info from Label line will be reused for the followi...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
...rtions(+), 1 deletion(-) > > diff --git a/daemon/btrfs.c b/daemon/btrfs.c > index 39392f7..09f7615 100644 > --- a/daemon/btrfs.c > +++ b/daemon/btrfs.c > @@ -2083,3 +2083,179 @@ do_btrfs_image (char *const *sources, const char *image, > > return 0; > } > + > +guestfs_int_btrfsfsshow_list * > +do_btrfs_filesystem_show_all (void) Why the _all suffix? If this is about showing the information of a device, just use a more clear name than just wrapping the btrfs command. > +{ > + const size_t MAX_ARGS = 64; > + const char *argv[MAX_ARGS]; > + size_t i = 0; > +...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...git a/daemon/btrfs.c b/daemon/btrfs.c > > index 39392f7..09f7615 100644 > > --- a/daemon/btrfs.c > > +++ b/daemon/btrfs.c > > @@ -2083,3 +2083,179 @@ do_btrfs_image (char *const *sources, const char *image, > > > > return 0; > > } > > + > > +guestfs_int_btrfsfsshow_list * > > +do_btrfs_filesystem_show_all (void) > > Why the _all suffix? If this is about showing the information of a > device, just use a more clear name than just wrapping the btrfs > command. There is another function which could specify device, but as we discussed before, t...