search for: xdr_uint64_t

Displaying 16 results from an estimated 16 matches for "xdr_uint64_t".

2017 Mar 06
0
[PATCH] lib: Prefer tirpc for XDR, and rationlise how we search for alternatives.
.../Makefile.am @@ -36,25 +36,15 @@ libprotocol_la_SOURCES = guestfs_protocol.c guestfs_protocol.h libprotocol_la_CFLAGS = \ -Wall -Wno-unused -fno-strict-aliasing $(GCC_VISIBILITY_HIDDEN) -if HAVE_RPCGEN -RPCGEN_DEFS = -if HAVE_XDR_U_INT64_T -RPCGEN_DEFS += -DHAVE_XDR_U_INT64_T=1 -else -if HAVE_XDR_UINT64_T -RPCGEN_DEFS += -DHAVE_XDR_UINT64_T=1 -endif -endif - guestfs_protocol.c: guestfs_protocol.x rm -f $@-t $@-t2 - $(RPCGEN) $(RPCGEN_DEFS) -c -o $@-t $< + $(RPCGEN) -c -o $@-t $< $(SED) 's,\.\./\(\.\./\)*lib,.,' < $@-t > $@-t2 rm $@-t mv $@-t2 $@ guestfs_protocol.h: gu...
2017 Mar 07
1
[PATCH v2] lib: Prefer tirpc for XDR, and rationalise how we search for alternatives.
v1 -> v2: - No functional changes to the patch, just fixes a few bugs. Rich.
2012 Feb 05
4
qcow2 performance
Greets, I have to research performance-issues of a W2003-VM within KVM. Right now it's a qcow2-image-file w/ default settings within libvirt (configured by vmm ...) My question: what caching to use? writeback/writethrough/etc ... what to use for data integrity while not getting ultraslow performance? Found https://www.linuxfoundation.jp/jp_uploads/JLS2009/jls09_hellwig.pdf Is there
2012 Jul 24
11
[PATCH 01/12] configure: Add -nographic command line option to qemu.
Without this option, configure will fail when there is no display. Signed-off-by: Masami HIRATA <msmhrt at gmail.com> --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index de8a064..61d6f69 100644 --- a/configure.ac +++ b/configure.ac @@ -593,16 +593,16 @@ working. AC_MSG_FAILURE([$QEMU version must be >=
2016 Mar 29
3
[PATCH 0/2] added filesystem_walk API
The filesystem_walk API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. This is the end user API for inspecting a disk partition content. The command can handle filenames with special characters. Example
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk0 API
...} + + /* Serialise tsk_node struct. */ + len = strlen(node_info->tsk_name) + 1; + + xdrmem_create(&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + if (!xdr_u_long(&xdr, &len)) + return -1; + if (!xdr_string(&xdr, &node_info->tsk_name, len)) + return -1; + if (!xdr_uint64_t(&xdr, &node_info->tsk_inode)) + return -1; + if (!xdr_uint32_t(&xdr, &node_info->tsk_allocated)) + return -1; + + /* Resize buffer to actual length. */ + len = xdr_getpos(&xdr); + xdr_destroy(&xdr); + if ((buf = realloc(buf, len)) == NULL) + return -1; +...
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk API
...int +deserialise_inode_info +(guestfs_h *g, XDR *xdrs, struct guestfs_tsk_node *node_info) +{ + size_t len = 0; + CLEANUP_FREE char *buf = NULL; + + if (!xdr_u_long(xdrs, &len)) + return -1; + + buf = safe_malloc(g, len); + + if (!xdr_string(xdrs, &buf, len)) + return -1; + if (!xdr_uint64_t(xdrs, &node_info->tsk_inode)) + return -1; + if (!xdr_uint32_t(xdrs, &node_info->tsk_allocated)) + return -1; + + node_info->tsk_name = safe_strndup(g, buf, len); + + return 0; +} + +/* Free the nodes list. */ +static void +free_nodes(struct guestfs_tsk_node_list *nodes) +...
2016 Apr 03
0
[PATCH v2 4/5] appliance: Added filesystem_walk command
...rn index; +} + +/* Parse a single XDR encoded tsk_dirent. + * Return 0 on success, -1 on error. + */ +static int +deserialise_dirent (guestfs_h *g, XDR *xdrs, struct guestfs_tsk_dirent *dirent) +{ + size_t len = 0; + CLEANUP_FREE char *buf = NULL; + + /* Deserialise tsk_dirent struct. */ + if (!xdr_uint64_t (xdrs, &dirent->tsk_inode)) + return -1; + if (!xdr_char (xdrs, &dirent->tsk_type)) + return -1; + if (!xdr_int64_t (xdrs, &dirent->tsk_size)) + return -1; + + /* Deserialise filename. */ + if (!xdr_u_long (xdrs, &len)) + return -1; + buf = safe_malloc (g,...
2016 Mar 29
5
[PATCH 0/2] added filesystem_walk0 low level API
The filesystem_walk0 API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. The output is serialised in XDR format and written to the given file. The command is similar to The Sleuth Kit "fls -rp
2016 Apr 03
0
[PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...+ size_t len = 0; + CLEANUP_FREE char *buf; + + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + fprintf (stderr, "malloc: %m"); + return -1; + } + + /* Serialise tsk_dirent struct. */ + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + if (!xdr_uint64_t (&xdr, &dirent->tsk_inode)) + return -1; + if (!xdr_char (&xdr, &dirent->tsk_type)) + return -1; + if (!xdr_int64_t (&xdr, &dirent->tsk_size)) + return -1; + + /* Serialise filename. */ + len = strlen (dirent->tsk_name) + 1; + if (!xdr_u_long (&...
2016 Apr 03
7
[PATCH v2 0/5] Added filesystem_walk command
v2: - Increased the amount of collected information from the FS content. - Moved filesystem_walk0 as internal command. - Code improvement based on comments. - Adhere to project's coding style. - Better command documentation. - More robust tests. Patch ready for review, code available at: https://github.com/noxdafox/libguestfs/tree/filesystem_walk Matteo Cafasso (5): generator:
2016 Apr 04
2
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...t; + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); > + if (buf == NULL) { > + fprintf (stderr, "malloc: %m"); > + return -1; > + } > + > + /* Serialise tsk_dirent struct. */ > + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); > + > + if (!xdr_uint64_t (&xdr, &dirent->tsk_inode)) > + return -1; > + if (!xdr_char (&xdr, &dirent->tsk_type)) > + return -1; > + if (!xdr_int64_t (&xdr, &dirent->tsk_size)) > + return -1; > + > + /* Serialise filename. */ > + len = strlen (dirent->...
2016 Apr 04
0
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...> > + if (buf == NULL) { > > + fprintf (stderr, "malloc: %m"); > > + return -1; > > + } > > + > > + /* Serialise tsk_dirent struct. */ > > + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); > > + > > + if (!xdr_uint64_t (&xdr, &dirent->tsk_inode)) > > + return -1; > > + if (!xdr_char (&xdr, &dirent->tsk_type)) > > + return -1; > > + if (!xdr_int64_t (&xdr, &dirent->tsk_size)) > > + return -1; > > + > > + /* Serialise filename. *...
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings: Patches 1-12 split configure.ac into smaller files using the m4_include mechanism. Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into three new manual pages: guestfs-hacking(3) - how to extend and contribute to libguestfs guestfs-internals(3) - architecture and internals guestfs-security(3) - security and CVEs Patch 16 is a
2014 May 29
3
Re: libguestfs error
...ew enough... 5.1 checking which Linux distro for package names... UBUNTU checking for rpcgen... rpcgen checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for library containing xdr_u_int64_t... no checking for library containing xdr_uint64_t... none required checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking sys/sdt.h usability... no checking sys/sdt.h prese...
2014 May 29
2
Re: libguestfs error
Hi Rich Yes Rich I have tried libguesftfs on powerpc and it was working fine.For some reason i had to format my hard disk and now when I'm again compiling it,I'm getting following error.... Below is the status of configure .. This is how we have configured the optional components for you today: Daemon .............................. yes Appliance ........................... yes QEMU