search for: ldmtool

Displaying 20 results from an estimated 72 matches for "ldmtool".

2018 May 14
3
[PATCH libldm v4 0/3] Make libldm to parse and return volume GUID.
...commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. v4: gtk-doc is updated to reflect presence of new volume GUID field. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it will be unclear which drive letter belongs to which operating system. Volume GUID allows to overcome this shortco...
2012 Dec 07
2
[PATCH] Add support for Windows dynamic disks (libldm / ldmtool).
This is just an initial version of the patch, not to be applied. It implements just the diskgroup functions, ie. corresponding to these ldmtool commands: * ldmtool scan * ldmtool show diskgroup <guid> I have chosen yajl as the JSON parsing library (don't worry, this is optional). You will also, of course, need ldmtool which is not packaged in anything except Fedora. Rich.
2018 May 10
1
[PATCH 0/1] libldm: Make libldm to parse and return volume GUID.
The result of this patch will be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it is unclear which drive letter belongs to which operating system. Volume GUID allows to overcome this shortcomming....
2018 May 10
2
[PATCH libldm v2 0/1] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it will be unclear which drive letter belongs to which operating system. Volume GUID allows to overcome this shortco...
2017 Jan 16
0
ldmtool in RHEL (was: Re: https://www.redhat.com/archives/libguestfs/2012-December/msg00020.html)
On Wed, Dec 21, 2016 at 04:30:25PM +0000, Devloo, Ivan wrote: > Hi Sir, > > I'd like to install the ldmtool on Redhat linux 7. > > Any reason why it is not in the yum repository. > > Many thanks for your feedback, It's not available in RHEL or EPEL. https://admin.fedoraproject.org/pkgdb/package/rpms/libldm/ You'll have to add it: https://fedoraproject.org/wiki/EPEL/FAQ#Contribut...
2018 May 10
2
[PATCH libldm v3 0/2] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it will be unclear which drive letter belongs to which operating system. Volume GUID allows to overcome this shortco...
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
...a device mapper directory. Move devmapper logging functionality into a single place. misc: don't make unnecessary functions calls, return correct result. New API: ldm_volume_dm_get_device New API: ldm_partition_dm_get_device configure.ac | 2 +- docs/reference/ldmtool/ldmtool.xml | 20 ++ ldm-1.0.pc.in | 2 +- libldm.spec.in | 2 +- src/ldm.c | 379 ++++++++++++++++++++--------- src/ldm.h | 31 ++- src/ldmtool.c | 74 ++++-- test/ldmread.c...
2014 Jun 13
4
[libldm 1/3] relax uuid, zlib version requirements
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 469ea96..0e7e2ea 100644 --- a/configure.ac +++ b/configure.ac @@ -85,14 +85,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0], ] ) -PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5], +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2], [
2017 Nov 03
2
[PATCH] daemon: ldm: avoid manual free()
When the LDM code was converted to the CLEANUP_* macros, a free() invocation for a CLEANUP_FREE variable was left in the ldmtool_diskgroup_volumes implementation, causing double-free on success. Updates commit 950951c67de61da27dceca8ffb2079031c13e43b. --- daemon/ldm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon/ldm.c b/daemon/ldm.c index 1bab28989..2f4d2aef3 100644 --- a/daemon/ldm.c +++ b/daemon/ldm.c @@ -28...
2012 Dec 06
2
[PATCH 0/2] Two build fixes for libldm
Two simple build fixes for libldm. Well, the first isn't a build fix as such, but a code improvement. Rich.
2012 Dec 13
0
ANNOUNCE: libguestfs 1.20 - tools for accessing and modifying virtual machine disk images
...-name hivex-node-parent hivex-node-set-value hivex-node-values hivex-open hivex-root hivex-value-key hivex-value-type hivex-value-utf8 hivex-value-value inspect-list-applications2 (John Eckersberg) list-ldm-volumes list-ldm-partitions ldmtool-create-all ldmtool-diskgroup-disks ldmtool-diskgroup-name ldmtool-diskgroup-volumes ldmtool-remove-all ldmtool-scan ldmtool-scan-devices ldmtool-volume-hint ldmtool-volume-partitions ldmtool-volume-type ls0 max-disks mke2fs (Wanlong Gao)...
2018 May 13
0
[PATCH libldm] Fix crash while creating mapper for a volume which lacks all components.
How to reproduce: 1. Extract test images from test/data/ldm-data.tar.xz 2. losetup --show -f test/data/ldm-2003r2-simple-1.img Let's assume image file was associated with /dev/loop0 3. ldmtool -d /dev/loop0 create all Result: One LDM volume which contains all required components on the associated loop device will be mapped but application crashes on further attempt to do the same for incomplete volumes with error "Error in `ldmtool': free(): invalid pointer: 0x.......". R...
2014 Nov 03
2
Large Dependency List on Ubuntu Server 14
...get install libguestfs-tools Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apt-xapian-index aptitude aptitude-common binutils btrfs-tools dosfstools fontconfig-config ghostscript gsfonts icoutils jfsutils ldmtool libauthen-sasl-perl libboost-iostreams1.54.0 libclass-accessor-perl libconfig9 libcups2 libcupsfilters1 libcupsimage2 libcwidget3 libencode-locale-perl libept1.4.12 libfile-listing-perl libfont-afm-perl libfontconfig1 libgs9 libgs9-common libguestfs-perl libguestfs0 libhivex0 libhtml-form...
2018 May 15
0
[PATCH libldm v2 1/1] Fix crash while creating mapper for a volume which lacks of partitions.
How to reproduce: 1. Extract test images from test/data/ldm-data.tar.xz 2. losetup --show -f test/data/ldm-2003r2-simple-1.img Let's assume image file was associated with /dev/loop0 3. ldmtool -d /dev/loop0 create all Result: One LDM volume which contains all required components on the associated loop device will be mapped but application crashes on further attempt to do the same for incomplete volumes with error "Error in `ldmtool': free(): invalid pointer: 0x......."....
2018 May 15
1
[PATCH libldm v2 0/1] Fix crash while creating mapper for a volume which lacks of partitions.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-May/msg00058.html v2: - more correct explanation of a crash reason. Mykola Ivanets (1): Fix crash while creating mapper for a volume which lacks of partitions. src/ldm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.0
2014 Jan 19
1
[PATCH] daemon: add missing GUESTFSD_EXT_CMD usage
...d, NULL); + r = command (&out, &err, str_sh, "-c", cmd, NULL); if (r == -1) { reply_with_error ("find: %s", err); free (out); diff --git a/daemon/ldm.c b/daemon/ldm.c index aed8a0d..e89fc90 100644 --- a/daemon/ldm.c +++ b/daemon/ldm.c @@ -130,7 +130,7 @@ do_ldmtool_create_all (void) int r; CLEANUP_FREE char *err = NULL; - r = command (NULL, &err, "ldmtool", "create", "all", NULL); + r = command (NULL, &err, str_ldmtool, "create", "all", NULL); if (r == -1) { reply_with_error ("%s...
2016 Jan 09
0
[PATCH] build: Require qemu >= 1.3.0 and yajl.
...ress disk images. | | | | | Used by virt-builder for compression. | +--------------+-------------+---+-----------------------------------------+ +| yajl | 2.0.4 | R | JSON parser for parsing output of | +| | | | ldmtool and qemu-img info commands. | ++--------------+-------------+---+-----------------------------------------+ | po4a | |R/O| Required if compiling from git. | | | | | Optional if compiling from tarball. | | | |...
2017 Jul 14
0
[PATCH 13/27] daemon: Reimplement ‘list_ldm_(volumes|partitions)’ APIs in OCaml.
...aemon/ldm.c +++ b/daemon/ldm.c @@ -23,7 +23,6 @@ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include <glob.h> #include <string.h> #include <yajl/yajl_tree.h> @@ -47,87 +46,6 @@ optgroup_ldm_available (void) return prog_exists (str_ldmtool); } -static int -glob_errfunc (const char *epath, int eerrno) -{ - fprintf (stderr, "glob: failure reading %s: %s\n", epath, strerror (eerrno)); - return 1; -} - -static char ** -get_devices (const char *pattern) -{ - CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (ret); - glob_t devs;...
2018 Aug 17
4
Re: [PATCH v3 1/4] mltools: Rename Yajl module as JSON_parser and move to common/mltools.
On 08/17/2018 10:16 AM, Richard W.M. Jones wrote: > Commit bd1c5c9f4dcf38458099db8a0bf4659a07ef055d changed all the code > to use Jansson instead of yajl. However it didn't change the OCaml > API name (which was still Yajl). > Are you aware that Jansson can't parse all JSON generated by qemu, and that the developers of Jansson did not seem sympathetic to patches that would
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...r == -1) { reply_with_error ("%s", err); return -1; diff --git a/daemon/ldm.c b/daemon/ldm.c index 75418e8d3..3e1b72f39 100644 --- a/daemon/ldm.c +++ b/daemon/ldm.c @@ -39,12 +39,12 @@ #pragma GCC diagnostic ignored "-Wnull-dereference" #endif -GUESTFSD_EXT_CMD(str_ldmtool, ldmtool); +DECLARE_EXTERNAL_COMMANDS ("ldmtool") int optgroup_ldm_available (void) { - return prog_exists (str_ldmtool); + return prog_exists ("ldmtool"); } static int @@ -134,7 +134,7 @@ do_ldmtool_create_all (void) int r; CLEANUP_FREE char *err = NULL; - r...