Displaying 20 results from an estimated 103 matches for "s_cols".
2012 Oct 30
5
[PATCH v3 0/5] Add symbol versioning.
This is a simpler patch series to add symbol versioning.
I have pushed patches 1-3 upstream.
Rich.
2012 Oct 30
7
[PATCH v2 0/7] Add symbol versioning (now working).
This rather more complex patch series adds symbol versioning (7/7
shows it in action). This works for me, tested by running old and new
virt-inspector binaries against the new library.
Rich.
2013 Jan 30
1
[PATCH] Make internal-only functions and structures private
...or/c.ml
index f0102df..76397d6 100644
--- a/generator/c.ml
+++ b/generator/c.ml
@@ -576,7 +576,7 @@ extern GUESTFS_DLL_PUBLIC void *guestfs_next_private (guestfs_h *g, const char *
*)
(* Public structures. *)
- List.iter (
+ let generate_all_structs = List.iter (
fun { s_name = typ; s_cols = cols } ->
pr "struct guestfs_%s {\n" typ;
List.iter (
@@ -603,7 +603,9 @@ extern GUESTFS_DLL_PUBLIC void *guestfs_next_private (guestfs_h *g, const char *
pr "extern GUESTFS_DLL_PUBLIC void guestfs_free_%s (struct guestfs_%s *);\n" typ typ;
pr &q...
2016 Jun 15
1
Re: [PATCH v8 1/3] New API: internal_filesystem_walk
....ml
> +++ b/generator/structs.ml
> @@ -444,6 +444,19 @@ let structs = [
> ];
> s_camel_name = "InternalMountable";
> };
> +
> + (* The Sleuth Kit directory entry information. *)
> + { defaults with
> + s_name = "tsk_dirent";
> + s_cols = [
> + "tsk_inode", FUInt64;
> + "tsk_type", FChar;
> + "tsk_size", FInt64;
> + "tsk_name", FString;
> + "tsk_flags", FUInt32;
Note if you ever need to add more columns in future, you won't be able
to, unless you...
2016 Apr 05
1
Re: [PATCH v3 1/5] generator: Added tsk_dirent struct
...String;
> ];
> - s_camel_name = "InternalMountable";
> - };
> + s_camel_name = "InternalMountable" };
Unneeded change.
> + (* The Sleuth Kit directory entry information. *)
> + { defaults with
> + s_name = "tsk_dirent";
> + s_cols = [
> + "tsk_inode", FUInt64;
> + "tsk_type", FChar;
> + "tsk_size", FInt64;
> + "tsk_name", FString;
> + "tsk_allocated", FUInt32;
Once added to the public API, a struct cannot be extended anymore
(it would break the...
2016 Jul 26
1
[PATCH] daemon: lvm: change the separator character to '\r'
...;\n";
(match coltype with
@@ -633,7 +633,7 @@ cleanup_free_mountable (mountable_t *mountable)
pr " r = command (&out, &err,\n";
pr " \"lvm\", \"%ss\",\n" typ;
pr " \"-o\", lvm_%s_cols, \"--unbuffered\", \"--noheadings\",\n" typ;
- pr " \"--nosuffix\", \"--separator\", \":\", \"--units\", \"b\", NULL);\n";
+ pr " \"--nosuffix\", \"--separator\"...
2015 Sep 15
3
[PATCH 3/3] python: Allow bindings to be compiled with different version of libguestfs (RHBZ#1262983).
Patch to fix:
https://bugzilla.redhat.com/show_bug.cgi?id=1262983
Note this won't help until the first two patches get backported to the
stable branches, since <guestfs.h> won't define the necessary
GUESTFS_HAVE_* macros.
Rich.
2018 May 03
1
[PATCH] daemon: fix memory allocation and leaks in OCaml stubs
...\n";
+ pr " reply_with_perror (\"calloc\");\n";
pr " return NULL;\n";
pr " }\n";
pr "\n";
@@ -644,16 +646,20 @@ let generate_daemon_caml_stubs () =
pr " ret->%s = Int_val (v);\n" n
) struc.s_cols;
pr "\n";
- pr " return ret;\n";
+ pr " real_ret = ret;\n";
+ pr " ret = NULL;\n";
+ pr " return real_ret;\n";
pr "}\n";
pr "\n"
and emit_return_struct_list typ =
+ let uc_typ = String.upper...
2016 Nov 22
2
Re: [PATCH v2 4/6] New API: internal_yara_scan
...> --- a/generator/structs.ml
> +++ b/generator/structs.ml
> @@ -468,6 +468,15 @@ let structs = [
> ];
> s_camel_name = "TSKDirent" };
>
> + (* Yara detection information. *)
> + { defaults with
> + s_name = "yara_detection";
> + s_cols = [
> + "name", FString;
> + "rule", FString;
yara_load supports loading rules already compiled, which could have a
namespace set -- I guess it should be reported here as well.
That triggers another question: should the yara support allow to load
more rules one aft...
2015 Nov 10
0
[PATCH] daemon: lvm: Change the separator character to ':'.
...;\n";
(match coltype with
@@ -631,7 +631,7 @@ cleanup_free_mountable (mountable_t *mountable)
pr " r = command (&out, &err,\n";
pr " \"lvm\", \"%ss\",\n" typ;
pr " \"-o\", lvm_%s_cols, \"--unbuffered\", \"--noheadings\",\n" typ;
- pr " \"--nosuffix\", \"--separator\", \",\", \"--units\", \"b\", NULL);\n";
+ pr " \"--nosuffix\", \"--separator\"...
2016 Apr 05
0
[PATCH v3 1/5] generator: Added tsk_dirent struct
...t;im_device", FString;
"im_volume", FString;
];
- s_camel_name = "InternalMountable";
- };
+ s_camel_name = "InternalMountable" };
+
+ (* The Sleuth Kit directory entry information. *)
+ { defaults with
+ s_name = "tsk_dirent";
+ s_cols = [
+ "tsk_inode", FUInt64;
+ "tsk_type", FChar;
+ "tsk_size", FInt64;
+ "tsk_name", FString;
+ "tsk_allocated", FUInt32;
+ ];
+ s_camel_name = "TSKDirent" };
+
] (* end of structs *)
let lookup_struct name =
--
2.8...
2016 Apr 11
0
[PATCH v5 1/5] generator: Added tsk_dirent struct
...cts.ml
@@ -442,8 +442,21 @@ let structs = [
"im_device", FString;
"im_volume", FString;
];
s_camel_name = "InternalMountable";
};
+
+ (* The Sleuth Kit directory entry information. *)
+ { defaults with
+ s_name = "tsk_dirent";
+ s_cols = [
+ "tsk_inode", FUInt64;
+ "tsk_type", FChar;
+ "tsk_size", FInt64;
+ "tsk_name", FString;
+ "tsk_flags", FUInt32;
+ ];
+ s_camel_name = "TSKDirent" };
+
] (* end of structs *)
let lookup_struct name =
--
2.8.0.r...
2016 Jul 26
0
[PATCH 4/5] daemon: lvm: list PVs/VGs/LVs with --foreign
...mountable_t *mountable)
pr "\n";
pr " r = command (&out, &err,\n";
pr " \"lvm\", \"%ss\",\n" typ;
+ pr " \"--foreign\",\n";
pr " \"-o\", lvm_%s_cols, \"--unbuffered\", \"--noheadings\",\n" typ;
pr " \"--nosuffix\", \"--separator\", \"\\r\", \"--units\", \"b\", NULL);\n";
pr " if (r == -1) {\n";
--
2.7.4
2015 Feb 13
3
[PATCH v4 0/2] add btrfs_balance_status and btrfs_scrub_status
v4:
- add reply_with_error when nlines < 1
- remove `i == X' tests.
v3:
- rebase on upstream
- fix some comments
v2:
- add check for the length of lines[]
- the code parsing 'btrfs scrub -R status' output is changed into a loop
Hu Tao (2):
New API: btrfs_balance_status
New API: btfs_scrub_status
daemon/btrfs.c | 268
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
.../generator/structs.ml
index ea110a1..80f03ae 100644
--- a/generator/structs.ml
+++ b/generator/structs.ml
@@ -374,6 +374,19 @@ let structs = [
];
s_camel_name = "BTRFSScrub" };
+ (* btrfs filesystem show output *)
+ { defaults with
+ s_name = "btrfsfsshow";
+ s_cols = [
+ "btrfsfsshow_label", FString;
+ "btrfsfsshow_uuid", FString;
+ "btrfsfsshow_devid", FUInt32;
+ "btrfsfsshow_total_bytes", FUUID;
+ "btrfsfsshow_bytes_used", FUUID;
+ "btrfsfsshow_device", FString;
+ ]...
2019 Jun 27
0
[PATCH 4/9] Rust bindings: Add generator of structs
...,5 +127,80 @@ impl Handle {
Ok(Handle { g })
}
}
+}\
+
+pub struct UUID {
+ uuid: [u8; 32]
+}
+
+impl UUID {
+ fn new(uuid: [u8; 32]) -> UUID {
+ UUID { uuid }
+ }
}
- "
+";
+ List.iter (
+ fun { s_camel_name = name; s_name = c_name; s_cols = cols } ->
+ pr "\n";
+ pr "pub struct %s {\n" name;
+ List.iter (
+ function
+ | n, FChar -> pr " %s: i8,\n" n
+ | n, FString -> pr " %s: String,\n" n
+ | n, FBuffer -> pr " %s: Vec<u8&...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...+++ b/generator/structs.ml
> > @@ -374,6 +374,19 @@ let structs = [
> > ];
> > s_camel_name = "BTRFSScrub" };
> >
> > + (* btrfs filesystem show output *)
> > + { defaults with
> > + s_name = "btrfsfsshow";
> > + s_cols = [
> > + "btrfsfsshow_label", FString;
> > + "btrfsfsshow_uuid", FString;
> > + "btrfsfsshow_devid", FUInt32;
> > + "btrfsfsshow_total_bytes", FUUID;
> > + "btrfsfsshow_bytes_used", FUUID;
>...
2016 Feb 24
3
[PATCH 1/3] src: generate code for printing contents of structs
...enerate_header CStyle LGPLv2plus;
+
+ pr "\
+#include <config.h>
+
+#include <inttypes.h>
+
+#include \"c-ctype.h\"
+
+#include \"guestfs.h\"
+#include \"structs-print.h\"
+
+";
+
+ let write_structs =
+ List.iter (
+ fun { s_name = typ; s_cols = cols } ->
+ let needs_i =
+ List.exists (function (_, (FUUID|FBuffer)) -> true | _ -> false) cols in
+
+ pr "void\n";
+ pr "guestfs_int_print_%s_indent (struct guestfs_%s *%s, FILE *dest, const char *linesep, const char *indent)\n"
+...
2016 Nov 08
4
[PATCH 1/3] generator: c: move internal functions
...lic, or required
+ * by clients).
+ *
+ * To reiterate, we will pass these structures to and from the client
+ * with a simple assignment or memcpy, so the format must be
+ * identical to what rpcgen / the RFC defines.
+ *)
+and generate_all_structs structs =
+ List.iter (
fun { s_name = typ; s_cols = cols } ->
pr "#define GUESTFS_HAVE_STRUCT_%s 1\n" (String.uppercase typ);
pr "\n";
@@ -634,14 +698,9 @@ extern GUESTFS_DLL_PUBLIC void *guestfs_next_private (guestfs_h *g, const char *
pr "extern GUESTFS_DLL_PUBLIC void guestfs_free_%s (struct gues...
2015 Feb 03
2
[PATCH v2 0/2] add btrfs_balance_status and btrfs_scrub_status
changes in v2:
- add check for the length of lines[]
- the code parsing 'btrfs scrub -R status' output is changed into a loop
Hu Tao (2):
New API: btrfs_balance_status
New API: btfs_scrub_status.
daemon/btrfs.c | 263 +++++++++++++++++++++++++++++++
generator/actions.ml | 26 +++
generator/structs.ml | 34 ++++