Displaying 3 results from an estimated 3 matches for "guestfs_int_btrfsfsshow_list_v".
Did you mean:
guestfs_int_btrfsfsshow_list_val
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
...ret == NULL) {
+ reply_with_perror ("malloc");
+ return NULL;
+ }
+
+ /* No btrfs fs found, return directly */
+ if (nr_filesystem_show == 0) {
+ memset (ret, 0, sizeof(*ret));
+ return ret;
+ }
+
+ ret->guestfs_int_btrfsfsshow_list_len = nr_filesystem_show;
+ ret->guestfs_int_btrfsfsshow_list_val =
+ calloc (nr_filesystem_show, sizeof (struct guestfs_int_btrfsfsshow));
+ if (ret->guestfs_int_btrfsfsshow_list_val == NULL) {
+ reply_with_perror ("calloc");
+ goto error;
+ }
+
+ /* Output of `btrfs filesystem show' is like:
+ *
+ * Label: none uuid: e34452fa-...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
...t;);
> + return NULL;
> + }
> +
> + /* No btrfs fs found, return directly */
> + if (nr_filesystem_show == 0) {
> + memset (ret, 0, sizeof(*ret));
> + return ret;
> + }
> +
> + ret->guestfs_int_btrfsfsshow_list_len = nr_filesystem_show;
> + ret->guestfs_int_btrfsfsshow_list_val =
> + calloc (nr_filesystem_show, sizeof (struct guestfs_int_btrfsfsshow));
> + if (ret->guestfs_int_btrfsfsshow_list_val == NULL) {
> + reply_with_perror ("calloc");
> + goto error;
> + }
> +
> + /* Output of `btrfs filesystem show' is like:
>...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...t; +
> > + /* No btrfs fs found, return directly */
> > + if (nr_filesystem_show == 0) {
> > + memset (ret, 0, sizeof(*ret));
> > + return ret;
> > + }
> > +
> > + ret->guestfs_int_btrfsfsshow_list_len = nr_filesystem_show;
> > + ret->guestfs_int_btrfsfsshow_list_val =
> > + calloc (nr_filesystem_show, sizeof (struct guestfs_int_btrfsfsshow));
> > + if (ret->guestfs_int_btrfsfsshow_list_val == NULL) {
> > + reply_with_perror ("calloc");
> > + goto error;
> > + }
> > +
> > + /* Output of `btrfs...