Displaying 6 results from an estimated 6 matches for "btrfs_filesystem_show_all".
2015 Jun 11
0
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.
> +{
> + const size_t MAX_ARGS = 64;
> + const char *argv[MAX_ARGS];
> + size_t i = 0;
> + size_t nr_filesystem_show = 0;
> + C...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
Hi,
> -----Original Message-----
> From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On
> Behalf Of Pino Toscano
> Sent: Thursday, June 11, 2015 5:37 PM
> To: libguestfs@redhat.com
> Subject: Re: [Libguestfs] [PATCH] New API: btrfs_filesystem_show_all
>
> Hi,
>
> On Thursday 11 June 2015 12:24:18 Chen Hanxiao wrote:
> > Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
> > ---
> > daemon/btrfs.c | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++
> > generator/actions.ml | 19 ++++...
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...es 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 following devid line
+ * make two temp spa...
2015 Mar 25
0
Re: [PATCH 1/2] New API: btrfs_filesystem_show
...could use
> > btrfs-filesystem-show to find out which one is missing in a convenient way.
>
> I don't doubt that it's useful, but these kind of user-facing
> debugging operations would probably be done using 'virt-rescue'.
>
Hi, Rich
I think we should have a API btrfs_filesystem_show_all:
#btrfs fi show
Label: none uuid: e34452fa-5444-4e7b-9faa-c26fa1b83686
Total devices 1 FS bytes used 176.00KiB
devid 1 size 1.00GiB used 236.00MiB path /dev/sda6
Label: none uuid: 9cdb73b9-d5b9-46c4-9395-25a952e7922a
Total devices 5 FS bytes used 112.00KiB
devid 1 size 10.00GiB used 1.02GiB path...
2015 Mar 06
3
Re: [PATCH 1/2] New API: btrfs_filesystem_show
On Fri, Mar 06, 2015 at 07:39:36AM +0000, Chen, Hanxiao wrote:
>
>
> > -----Original Message-----
> > From: Richard W.M. Jones [mailto:rjones@redhat.com]
> > Sent: Thursday, March 05, 2015 8:59 PM
> > To: Chen, Hanxiao/陈 晗霄
> > Cc: libguestfs@redhat.com
> > Subject: Re: [Libguestfs] [PATCH 1/2] New API: btrfs_filesystem_show
> >
> > AFAICT
2015 Mar 05
3
[PATCH 0/2] btrfs: add support to btrfs filesystem show
Chen Hanxiao (2):
New API: btrfs_filesystem_show
New API: btrfs_filesystem_show_all
daemon/btrfs.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 21 +++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 73 insertions(+), 1 deletion(-)
--
2.1.0