search for: pread_device

Displaying 20 results from an estimated 70 matches for "pread_device".

2017 Jul 19
1
Is thread-safe for pread_device in python?
I want to test performance on reading one 1GB qcow2 file in python I create multiple threads and read the qcow2 file by pread_device function in python. And these threads share the same guest handler and device Is pread_device thread-safe? My result always shows pread_device can't get reply and corrupted
2011 Dec 26
1
Another virt-p2v blew up
...n_loop: proc 67 (download) took 0.71 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: recv_from_daemon: 68 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07 | 00 00 00 01 | 00 12 34 3e | ... libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"] libguestfs: trace: pread_device "/dev/sda" 4 440 libguestfs: send_to_daemon: 68 bytes: 00 00 00 40 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 14 | 00 00 00 00 | ... guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 libguestfs: recv_from_daemon: 48 bytes: 20 00 f5 f5 | 00...
2015 Nov 04
1
[PATCH 0/1] sparsify: Let --in-place capture ^C and shut down gracefully
This patch is easier to read if you use the 'git show -w' option. Also observe that: fun a -> ( fun () -> (* code *) ) (ie. returning a closure) is identical to: fun a () -> (* code *) Rich.
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...The filesystem ext3 on /dev/sda2 will be expanded using the 'resize2fs' method. ********** Setting up initial partition table on /dev/vg0/kvm105_img ... libguestfs: trace: part_init "/dev/sdb" "msdos" libguestfs: trace: part_init = 0 libguestfs: trace: pread_device "/dev/sda" 446 0 libguestfs: trace: pread_device = "\xebc\x90\x10\x8e\xd0\xbc\x00\xb0\xb8\x00\x00\x8e\xd8\x8e\xc0\xfb\xbe\x00|\xbf\x00\x06\xb9\x00\x02\xf3\xa4\xea!\x06\x00\x00\xbe\xbe\x078\x04u\x0b\x83\xc6\x10\x81\xfe\xfe\x07u\xf3\xeb\x16\xb4\x02\xb0\x01\xbb\x00|\xb2\x80\x8at\x01\x8...
2020 Feb 19
2
Poor write performance with golang binding
...f def find name m = self.constants.find { |c| c.to_s.downcase == name } m ? const_get(m) : nil end def names constants.map &:downcase end module Cat include BaseOp @readonly = 1 def perform gu, opts off = opts.offset while true buf = gu.pread_device opts.dev, opts.bs, off break if buf.empty? print buf off += buf.size end end end module Write include BaseOp @readonly = 0 def perform gu, opts off = opts.offset while true buf = STDIN.read opts.bs break if (buf||&quot...
2020 Feb 19
0
Re: Poor write performance with golang binding
...gt; m ? const_get(m) : nil > end > > def names > constants.map &:downcase > end > > module Cat > include BaseOp > > @readonly = 1 > > def perform gu, opts > off = opts.offset > while true > buf = gu.pread_device opts.dev, opts.bs, off > break if buf.empty? > print buf > off += buf.size > end > end > end > > module Write > include BaseOp > > @readonly = 0 > > def perform gu, opts > off = opts.offset >...
2014 Mar 11
21
[PATCH v2 00/18] Add discard support.
This still isn't working at the moment. See: http://marc.info/?t=139457409300003&r=1&w=2 This set of patches: - Adds new APIs to support discard in libguestfs. - Adds discard support to virt-format. - Adds discard support to virt-sysprep. - Implements virt-sparsify --in-place. Rich.
2012 Apr 30
5
[PATCH 0/4 v1] Remove gettextify, implement OCaml gettext.
Version 1 of the patch, for discussion, but not to be applied. It does work, but needs a lot more testing. This removes all the psychopathic gettextify cruft, and replaces it with a 99 line Makefile.am. A large win, I think. The third patch implements gettext support in the OCaml tools. The fourth patch is just for illustration. It shows the consequent changes to libguestfs.pot and the po
2015 May 27
3
Concurrent scanning of same disk
Greetings, I am suffering of several weird errors which show randomly and make me suspect some concurrency issue. Libguestfs version is 1.28.1, linux kernel 3.16, libvirt 1.2.9 and qemu 2.1. What I'm trying to do is comparing the disk state at two different point of a guest execution. Disk snapshots are taken through libvirt in different moments (I am aware of caching issue), from such
2017 Dec 02
0
Re: [nbdkit PATCH] nbd: Fix memory leak
...rtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle calling: settle libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: appliance is up libguestfs: trace: launch = 0 libguestfs: trace: pread_device "/dev/sda" 4096 0 guestfsd: main_loop: new request, len 0x40 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda calling: settle nbdkit: nbd.8: debug: acquire unload prevention lock nbdkit: nbd.8: debug: pread count=4096 offset=0 nbdkit: nbd.8: debug: se...
2017 Dec 02
2
[nbdkit PATCH] nbd: Fix memory leak
When converting from a single transaction to a linked list, I forgot to free the storage for each member of the list. Reported-by: Richard W.M. Jones <rjones at redhat.com> Fixes: 7f5bb9bf13f041ea7702bda557d9dd668bc3423a Signed-off-by: Eric Blake <eblake at redhat.com> --- I'm still not sure why 'make check' passes while 'make check-valgrind' fails for
2017 Apr 20
1
[PATCH] tests: Replace test-max-disks with several tests.
...the disk index written at the start of each disk. This + * ensures that disks are added to the appliance in the same order + * that we called guestfs_add_drive. + */ + errors = 0; + for (i = 0; i < ndisks; ++i) { + CLEANUP_FREE char *buf = NULL; + size_t j, r; + + buf = guestfs_pread_device (g, devices[i], sizeof j, 0, &r); + if (buf == NULL) + exit (EXIT_FAILURE); + if (r != sizeof j) + error (EXIT_FAILURE, 0, "pread_device read incorrect number of bytes"); + memcpy (&j, buf, r); + if (i != j) { + if (errors == 0) + fprintf (stderr,...
2014 Mar 12
12
[PATCH v3 00/10] Add discard support.
This set of patches: - Adds new APIs to support discard in libguestfs. - Adds discard support to virt-format. - Adds discard support to virt-sysprep. - Implements virt-sparsify --in-place. This is now working, after fixing the rather stupid bug in fstrim. I've pushed the ones which were ACKed previously + the fstrim fix. Rich.
2015 Dec 14
4
[PATCH 0/2] resize: Split out the command line parsing into Cmdline
Some simple refactoring of virt-resize. I originally had the idea that we could turn virt-resize into a library (cf. virt-customize) and use it from virt-builder, but I now don't think that would make any meaningful difference. In particular we'd still have to open the handle the same number of times. These two patches are left over from my work on that. Rich.
2015 May 28
3
Re: Concurrent scanning of same disk
...bguestfs: trace: hivex_value_value = "K\x8dN\xb6\x00\x00P\x06\x00\x00\x00\x00" libguestfs: trace: list_devices guestfsd: main_loop: new request, len 0x28 guestfsd: main_loop: proc 7 (list_devices) took 0.00 secondslibguestfs: trace: list_devices = ["/dev/sda"] libguestfs: trace: pread_device "/dev/sda" 4 440 guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 276 (pread_device) toolibguestfs: trace: pread_device = "K\x8dN\xb6" libguestfs: trace: part_list "/dev/sda" k 0.00 seconds guestfsd: main_loop: new request, len 0x34 parted -s -m /d...
2016 May 22
0
[PATCH 2/2] ocaml tools: Use a common debug function.
...m newsize start (next -^ 1L); { p with p_target_start = start; p_target_end = next -^ 1L; p_target_partnum = partnum } :: loop (partnum+1) next ps @@ -1259,7 +1252,7 @@ read the man page virt-resize(1). if verbose () then ( let old_hidden = int_of_le32 (g#pread_device target 4 0x1c_L) in - printf "old hidden sectors value: 0x%Lx\n%!" old_hidden + debug "old hidden sectors value: 0x%Lx" old_hidden ); let new_hidden = le32_of_int start in diff --git a/sparsify/copying.ml b/sparsify/copying.ml index 553da67....
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2016 May 22
4
ocaml tools: Use a common debug function.
Add a Common_utils.debug function for printing messages only when in verbose mode. Rich.
2011 Jan 29
0
builder-debian libguestfs success 6975e87153f593fddd5c27435c2e6347825daca9
...tr" has no tests warning: "guestfs_lgetxattr" has no tests warning: "guestfs_resize2fs_M" has no tests warning: "guestfs_internal_autosync" has no tests 1/321 test_mkfs_opts_0 2/321 test_lvm_canonical_lv_name_0 3/321 test_lvm_canonical_lv_name_1 4/321 test_pread_device_0 5/321 test_pwrite_device_0 6/321 test_download_offset_0 7/321 test_upload_offset_0 8/321 test_part_to_dev_0 9/321 test_part_to_dev_1 10/321 test_is_socket_0 11/321 test_is_symlink_0 12/321 test_is_symlink_1 13/321 test_is_fifo_0 14/321 test_is_fifo_1 15/321 test_is_blockdev_0 16/...
2011 Feb 03
1
builder-debian libguestfs success 8d7d7c4ecfd202e04d18736718e9c5bb125ce4f0
...tr" has no tests warning: "guestfs_lgetxattr" has no tests warning: "guestfs_resize2fs_M" has no tests warning: "guestfs_internal_autosync" has no tests 1/322 test_mkfs_opts_0 2/322 test_lvm_canonical_lv_name_0 3/322 test_lvm_canonical_lv_name_1 4/322 test_pread_device_0 5/322 test_pwrite_device_0 6/322 test_download_offset_0 7/322 test_upload_offset_0 8/322 test_part_to_dev_0 9/322 test_part_to_dev_1 10/322 test_is_socket_0 11/322 test_is_symlink_0 12/322 test_is_symlink_1 13/322 test_is_fifo_0 14/322 test_is_fifo_1 15/322 test_is_blockdev_0 16/...