[Libguestfs] [PATCH] libvirt: read disk paths from pools (RHBZ#1366049)

2016-09-20 Thread Pino Toscano
A disk of type 'volume' is stored as and its real location is inside the 'volume_name', as 'pool_name': in this case, query libvirt for the actual path of the specified volume in the specified pool. Adjust the code so that: - for_each_disk gets the virConnectPtr, needed to do operations with

[Libguestfs] [PATCH v3 1/3] New API: internal_find_block

2016-09-20 Thread Matteo Cafasso
The internal_find_block command searches all entries referring to the given filesystem data block and returns a tsk_dirent structure for each of them. For filesystems such as NTFS which do not delete the block mapping when removing files, it is possible to get multiple non-allocated entries for

[Libguestfs] [PATCH v3 2/3] New API: find_block

2016-09-20 Thread Matteo Cafasso
Library's counterpart of the daemon's internal_find_block command. It writes the daemon's command output on a temporary file and parses it, deserialising the XDR formatted tsk_dirent structs. It returns to the caller the list of tsk_dirent structs generated by the internal_find_block command.

[Libguestfs] [PATCH v3 0/3] New API - find_block

2016-09-20 Thread Matteo Cafasso
v3: - fixed attribute walk callback: checking against TSK_FS_BLOCK_FLAG_RAW flag would exclude compressed data blocks which are still important. Yet we want to exclude sparse blocks (TSK_FS_BLOCK_FLAG_SPARSE) as they are not stored on the disk. Matteo Cafasso (3): New API:

[Libguestfs] [PATCH v3 3/3] find_block: added API tests

2016-09-20 Thread Matteo Cafasso
NTFS file system always has the Boot file at block 0. This reliable information helps testing the API. Signed-off-by: Matteo Cafasso --- tests/tsk/Makefile.am| 1 + tests/tsk/test-find-block.sh | 66 2 files changed, 67

[Libguestfs] [PATCH v5] v2v: linux: correctly reconfigure the initrd on Debian

2016-09-20 Thread Tomáš Golembiovský
Using update-initramfs is the native way of updating initrd on Debian based systems. To add some modules to the image we can list them in file /etc/initramfs-tools/modules. Signed-off-by: Tomáš Golembiovský --- v2v/convert_linux.ml | 32 1

Re: [Libguestfs] [PATCH v2 1/3] New API: internal_find_block

2016-09-20 Thread NoxDaFox
2016-09-20 11:38 GMT+03:00 Pino Toscano : > On Monday, 19 September 2016 23:26:57 CEST Matteo Cafasso wrote: > > The internal_find_block command searches all entries referring to the > > given filesystem data block and returns a tsk_dirent structure > > for each of them. > >

Re: [Libguestfs] [PATCH 0/2] supermin: use /etc/os-release

2016-09-20 Thread Pino Toscano
On Wednesday, 31 August 2016 15:05:34 CEST Pino Toscano wrote: > let's make supermin use /etc/os-release as primary source instead of > the various release files in /etc; apparently distros (e.g. openSUSE) > are starting removing them. Ping. Thanks, -- Pino Toscano signature.asc Description:

Re: [Libguestfs] [PATCH v2 0/3] New API - find_block

2016-09-20 Thread Pino Toscano
On Monday, 19 September 2016 23:26:56 CEST Matteo Cafasso wrote: > v2: > > - use boolean field in struct > - move refactoring to previous series > > Matteo Cafasso (3): > New API: internal_find_block > New API: find_block > find_block: added API tests Patches #2, and #3 LGTM. -- Pino

Re: [Libguestfs] [PATCH v2 1/3] New API: internal_find_block

2016-09-20 Thread Pino Toscano
On Monday, 19 September 2016 23:26:57 CEST Matteo Cafasso wrote: > The internal_find_block command searches all entries referring to the > given filesystem data block and returns a tsk_dirent structure > for each of them. > > For filesystems such as NTFS which do not delete the block mapping >