search for: pwrite_device

Displaying 20 results from an estimated 63 matches for "pwrite_device".

2012 Apr 06
1
P2V: Error while converting Windows server
...ISO and entered the conversion server information. I choosed the "rhev-sparse" method and let the other parameters by default. The sda hard disk begins to get transfered and after some minutes I get this error in the virt-p2v-server log: # cat virt-p2v-server.1333661869.log virt-v2v: pwrite_device: pwrite_device: offset is negative at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 203, <> line 6. at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Transfer/Local.pm line 271 The transfer file gets deleted in the NFS export 192.168.1.11:/RHEV/export I tried changing...
2020 Feb 19
2
Poor write performance with golang binding
...ize BS blocksize [default: 1048576] -o, --offset OFF offset [default: 0] So eg. `cat /dev/urandom | guest-xfer -d /dev/sda write mydisk.img` will fill mydisk.img with pseudorandom content. I implemented this both with Ruby and Go. The 'write' op relies on pwrite_device. I have pasted the codes to the end of this mail. I'm creating mydisk.img as a qcow2 file with a raw sparse file bakcend $ truncate -s 100g myimg.raw $ qemu-img create -f qcow2 -b myimg.{raw,img} Then I do # pv /dev/sda2 | guest-xfer -d /dev/sda write mydisk.img I find that the ruby implem...
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...t21\xc0\x89D\x04@\x88D\xff\x89D\x02\xc7\x04\x10\x00f\x8b\x1e\|f\x89\\x08f\x8b\x1e`|f\x89\\x0c\xc7D\x06\x00p\xb4B\xcd\x13r\x05\xbb\x00p\xebv\xb4\x08\xcd\x13s\x0d\xf6\xc2\x80\x0f\x84\xd0\x00\xbe\x93}\xe9\x82\x00f\x0f\xb6\xc6\x88d\xff"<truncated, original size 446 bytes> libguestfs: trace: pwrite_device "/dev/sdb" "\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\x8bL\x02\xcd\x13\xea\x00|\x00\x00\xeb\xfe\x...
2020 Feb 19
0
Re: Poor write performance with golang binding
...ault: 1048576] > -o, --offset OFF offset [default: 0] > > So eg. `cat /dev/urandom | guest-xfer -d /dev/sda write mydisk.img` will fill > mydisk.img with pseudorandom content. > > I implemented this both with Ruby and Go. The 'write' op relies on > pwrite_device. > I have pasted the codes to the end of this mail. > > I'm creating mydisk.img as a qcow2 file with a raw sparse file bakcend > > $ truncate -s 100g myimg.raw > $ qemu-img create -f qcow2 -b myimg.{raw,img} > > Then I do > > # pv /dev/sda2 | guest-xfer -d /dev...
2020 Feb 19
1
[PATCH] golang: make API idiomatic so that functions return (<val>, error)
Go API functions returned (<val>, *GuestfsError) that made code like this fail to build: n, err := os.Stdin.Read(buf) if err != nil { log.Fatal(err) } n, err = g.Pwrite_device(dev, buf[:n], off) ... As err should be of error (interface) type as of the stdlib call, and should be of *GuestfsError type as of the libguestfs call. The concrete error value that libguestfs functions return can be a *GuestfsError, but the function signature should have (<val>, error)...
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.
2016 Jun 10
0
Re: [PATCH 2/2] v2v: remove the 'graphicsmodedisabled' entry in ESP BCD
...++++++ > 1 file changed, 41 insertions(+) > > diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml > index 62bb536..8579240 100644 > --- a/v2v/convert_windows.ml > +++ b/v2v/convert_windows.ml > @@ -466,6 +466,45 @@ if errorlevel 3010 exit /b 0 > ignore (g#pwrite_device rootpart bytes 0x1a_L) > ) > ) > + > + and fix_win_esp () = > + let fix_win_uefi_bcd esp_path = > + try > + let bcd_path = "/EFI/Microsoft/Boot/BCD" in > + Windows.with_hive_write g (esp_path ^ bcd_path) ( > + (* Remov...
2012 Feb 06
2
[PATCH 0/2] Work-around blkid running from udev after device close.
...oes then closes it) and before blockdev_rereadpt The fix is to run udev_settle *before* all blockdev, parted and sfdisk commands. Note we do it before because at this point a blkid command may be running which we have to wait for. None of these commands should be performance sensitive (unlike pwrite_device, where I have removed the udev_settle call). In the parted and sfdisk cases we also have to run this command afterwards, since parted itself will have closed the block device. There may be alternatives to this patch: - Add a udev rule (temporarily?) which causes udev to ignore devices that...
2016 Jun 15
3
[PATCH 2/3] Convert source so it can be compiled with OCaml '-safe-string' option.
OCaml 4.02 introduced the 'bytes' type, a mutable string intended to replace the existing 'string' type for those cases where the byte array can be mutated. In future the 'string' type will become immutable. This is not the default now, but it can be forced using the '-safe-string' compile option. I tested this on Fedora 24 (OCaml 4.02) & RHEL 7 (OCaml 4.01).
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
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
2011 Jan 29
0
builder-debian libguestfs success 6975e87153f593fddd5c27435c2e6347825daca9
...expected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8275: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:898: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8344: warning: 'return...
2011 Feb 03
1
builder-debian libguestfs success 8d7d7c4ecfd202e04d18736718e9c5bb125ce4f0
...expected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8310: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:907: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8379: warning: 'return...
2011 Feb 01
0
builder-debian libguestfs success 5079e0fff3f3c150818adb6febad6393b674f126
...expected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8275: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:898: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8344: warning: 'return...
2011 Feb 08
0
builder-debian libguestfs success f455dc3814bf9f7e7e894ba81360acb0edd92464
...expected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8310: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:907: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8379: warning: 'return...
2011 Feb 08
5
builder-ubuntu libguestfs success f455dc3814bf9f7e7e894ba81360acb0edd92464
...xpected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8310:3: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:907:12: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8379:3: warning: 'r...
2011 Jan 29
0
builder-ubuntu libguestfs success 6975e87153f593fddd5c27435c2e6347825daca9
...xpected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8275:3: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:898:12: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8344:3: warning: 'r...
2011 Feb 03
1
builder-ubuntu libguestfs success 8d7d7c4ecfd202e04d18736718e9c5bb125ce4f0
...xpected 'char * const*' but argument is of type 'const char **' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8310:3: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:907:12: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8379:3: warning: 'r...
2011 Mar 11
0
builder-debian libguestfs success eb304e9689ca474834207605ed52c369bcdec6ea
...uestFS.c:8363: warning: 'return' with a value, in function returning void com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1pwrite_1device': com_redhat_et_libguestfs_GuestFS.c:8382: warning: pointer targets in passing argument 3 of 'guestfs_pwrite_device' differ in signedness ../src/guestfs.h:907: note: expected 'const char *' but argument is of type 'jbyte *' com_redhat_et_libguestfs_GuestFS.c: In function 'Java_com_redhat_et_libguestfs_GuestFS__1mkfs_1opts': com_redhat_et_libguestfs_GuestFS.c:8451: warning: 'return...