search for: set_autosync

Displaying 20 results from an estimated 46 matches for "set_autosync".

Did you mean: get_autosync
2012 Mar 05
2
[PATCH] Remove call to set_autosync.
...b/Sys/VirtConvert/GuestfsHandle.pm index 01d7eb0..c370007 100644 --- a/lib/Sys/VirtConvert/GuestfsHandle.pm +++ b/lib/Sys/VirtConvert/GuestfsHandle.pm @@ -103,9 +103,6 @@ sub new &$open(); } - # Enable autosync to defend against data corruption on unclean shutdown - $g->set_autosync(1); - $self->{g} = $g; $self->{onclose} = []; -- 1.7.9.1
2011 Jul 26
0
qemu: could not load kernel '/var/tmp/.guestfs-1000/kernel.6941': Permission denied
I think this was your pastebin? http://pastebin.com/LbNZPtya libguestfs: trace: set_autosync true libguestfs: trace: set_autosync = 0 libguestfs: trace: launch qemu: could not load kernel '/var/tmp/.guestfs-1000/kernel.6941': Permission denied libguestfs: trace: launch = -1 (error) Traceback (most recent call last): File "get_result.py", line 3, in <module> gu...
2015 Feb 05
1
[PATCH] perl: tests: reenable set_path tests
...--- a/perl/t/060-handle-properties.t +++ b/perl/t/060-handle-properties.t @@ -17,7 +17,7 @@ use strict; use warnings; -use Test::More tests => 7; +use Test::More tests => 9; use Sys::Guestfs; @@ -33,13 +33,10 @@ ok ($g->get_autosync () == 1, "autosync not true"); $g->set_autosync (0); ok ($g->get_autosync () == 0, "autosync not false"); -# This probably doesn't work at the moment because -# the binding for set_path does not ensure the string -# remains around for the lifetime of the handle. -#$g->set_path ("."); -#ok ($g->get_path () eq &...
2011 Jul 21
2
Libguestfs hangs after issuing a launch command
...e) i.e in normal conditions launch command works but when a vm (which uses the same vdi file) is started - stopped , a call to "launch" command hangs the terminal. Please help . this is the output of the libguestfs_debug : libguestfs: new guestfs handle 0x7f0e3007dee0 libguestfs: trace: set_autosync true libguestfs: trace: set_autosync = 0 libguestfs: trace: launch libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/guestfs/supermin.d' x86_64 supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), applian...
2016 Feb 23
2
[PATCH 1/2] Revert "ruby: Run tests one at a time, instead of in parallel."
It seems the default behaviour of rake is to run tests sequentially, and not in parallel (there are separate gems to achieve that behaviour). Hence just invoke "rake test" to run all the available tests at once. This reverts commit 8f30c3c3f8c063f7c5ff8c6154d881e07a820251. --- ruby/run-ruby-tests | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git
2011 Dec 07
2
failure converting Linux ESX guest to KVM hypervisor
...ro_with_if "/var/lib/virt-v2v/transfer.iso" "ide" libguestfs: trace: add_drive_ro_with_if = 0 libguestfs: trace: set_network true libguestfs: trace: set_network = 0 libguestfs: trace: launch Using CPU model "cpu64-rhel6" libguestfs: trace: launch = 0 libguestfs: trace: set_autosync true libguestfs: trace: set_autosync = 0 libguestfs: trace: list_devices libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"] libguestfs: trace: mount_ro "/dev/sda" "/" libguestfs: trace: mount_ro = -1 (error) libguestfs: trace: umount_all libguestfs: t...
2019 Apr 03
1
[PATCH] Add missing python bindings tests
...lf): + g = guestfs.GuestFS(python_return_dict=True) + g.set_verbose(1) + self.assertEqual(g.get_verbose(), 1) + g.set_verbose(0) + self.assertEqual(g.get_verbose(), 0) + + def test_autosync(self): + g = guestfs.GuestFS(python_return_dict=True) + g.set_autosync(1) + self.assertEqual(g.get_autosync(), 1) + g.set_autosync(0) + self.assertEqual(g.get_autosync(), 0) + + def test_path(self): + g = guestfs.GuestFS(python_return_dict=True) + g.set_path(".") + self.assertEqual(g.get_path(), ".") + +...
2012 Feb 23
1
[PATCH v2] Add a flag to make some functions called only at CONFIG state(RHBZ796520)
...uot;set_append", (RErr, [OptString "append"], []), -1, [FishAlias "append"; ConfigOnly], [], "add options to kernel command line", "\ @@ -286,7 +286,7 @@ guest kernel command line. If C<NULL> then no options are added."); - ("set_autosync", (RErr, [Bool "autosync"], []), -1, [FishAlias "autosync"], + ("set_autosync", (RErr, [Bool "autosync"], []), -1, [FishAlias "autosync"; ConfigOnly], [], "set autosync mode", "\ @@ -373,7 +373,7 @@ only useful for p...
2012 Jul 03
8
[PATCH 0/7 v2] Fix and workaround for qcow2 issues in qemu causing data corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=836710 https://bugzilla.redhat.com/show_bug.cgi?id=836913 There are at least two related bugs going on: (1) Linux sync(2) system call doesn't send a write barrier to the disk, so in effect it doesn't force the hard disk to flush its cache. libguestfs used sync(2) to force changes to disk. We didn't expect that qemu was caching anything
2015 Jun 25
0
[PATCH v2 7/9] tests: daemon: Cleanly shut down the daemon on exit.
...emon/captive-daemon.pm.in index 991a9a1..19833b8 100644 --- a/tests/daemon/captive-daemon.pm.in +++ b/tests/daemon/captive-daemon.pm.in @@ -93,14 +93,15 @@ sub run_tests { # libguestfs live. $g = Sys::Guestfs->new (); $g->set_backend ("unix:" . $sockname); + $g->set_autosync (0); $g->launch; # Run the user tests. my $r = ::tests ($g); - # Close the socket. The daemon should now exit. - $g->shutdown (); - $g->close (); + # Tell the daemon to exit cleanly, and remove the socket. + $g->internal_exit; + $g->close; u...
2016 Feb 23
0
[PATCH 2/2] ruby: tests: use more asserts instead of manual checks
...end + assert_equal 1, close_invoked end end diff --git a/ruby/t/tc_420_log_messages.rb b/ruby/t/tc_420_log_messages.rb index 90a1360..e64ea74 100644 --- a/ruby/t/tc_420_log_messages.rb +++ b/ruby/t/tc_420_log_messages.rb @@ -45,8 +45,6 @@ class TestLoad < MiniTest::Unit::TestCase g.set_autosync(1) g.close() - if log_invoked == 0 - raise "log_invoked should be > 0" - end + refute_equal 0, log_invoked end end diff --git a/ruby/t/tc_810_rhbz664558c6.rb b/ruby/t/tc_810_rhbz664558c6.rb index 7e27db2..347e403 100644 --- a/ruby/t/tc_810_rhbz664558c6.rb +++ b...
2010 Jun 17
2
[PATCH] Improve cleanup of libguestfs handle with Sys::VirtV2V::GuestfsHandle
...ig_received) if ($sig_received eq 'INT'); + &$sigquit($sig_received) if ($sig_received eq 'QUIT'); + } + $SIG{'INT'} = $sigint; + $SIG{'QUIT'} = $sigquit; + + # Enable autosync to defend against data corruption on unclean shutdown + $g->set_autosync(1); + + $self->{g} = $g; + + $self->{onclose} = []; + + bless($self, $class); + return $self; +} + +=item add_on_close + +Register a callback to be called before closing the underlying Sys::Guestfs +handle. + +=cut + +sub add_on_close +{ + my $self = shift; + + push(@{$self-...
2012 Jan 24
1
example script for GObject
I tried using Javascript (gjs) with GObject-Introspection and did a port of the create_disk example which is attached below. Quite a bit of time was spent looking up stuff in the GLib reference and guessing how certain idioms translate to gjs. I used the traditional add_drive_opts method since I haven't been able to find how to specify the optional arguments to add_drive_opts. How does that
2012 Dec 13
3
Lua improvements
Here are a few patches I applied to get the Lua bindings to build correctly with different versions of Lua. I am not particularly happy with generating all the test scripts just for the shebang line. Since it has been a while since I had to edit autoconf/automake, this was the best I could come up with. Cheers, -Hilko
2019 Jul 20
0
[PATCH] Rust bindings: Add Rust bindings
...); + assert_eq!(g.get_trace().expect("get_trace"), true); + g.set_trace(false).expect("set_trace"); + assert_eq!(g.get_trace().expect("get_trace"), false); +} + +#[test] +fn autosync() { + let g = guestfs::Handle::create().expect("create"); + g.set_autosync(true).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), true); + g.set_autosync(false).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), false); +} + +#[test] +fn path() { + let g = guestfs::...
2019 Jul 23
2
Re: [PATCH] Rust bindings: Add Rust bindings
..."get_trace"), true); > + g.set_trace(false).expect("set_trace"); > + assert_eq!(g.get_trace().expect("get_trace"), false); > +} > + > +#[test] > +fn autosync() { > + let g = guestfs::Handle::create().expect("create"); > + g.set_autosync(true).expect("set_autosync"); > + assert_eq!(g.get_autosync().expect("get_autosync"), true); > + g.set_autosync(false).expect("set_autosync"); > + assert_eq!(g.get_autosync().expect("get_autosync"), false); > +} > + > +#[test] >...
2019 Jul 23
0
Re: [PATCH] Rust bindings: Add Rust bindings
...); + assert_eq!(g.get_trace().expect("get_trace"), true); + g.set_trace(false).expect("set_trace"); + assert_eq!(g.get_trace().expect("get_trace"), false); +} + +#[test] +fn autosync() { + let g = guestfs::Handle::create().expect("create"); + g.set_autosync(true).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), true); + g.set_autosync(false).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), false); +} + +#[test] +fn path() { + let g = guestfs::...
2019 Jul 20
2
Re: [PATCH] Rust bindings: Add Rust bindings
> Is this just trying if the guestfs can be linked with? Yes. In OCaml bindings, there is the corresponding test( https://github.com/libguestfs/libguestfs/blob/master/ocaml/t/guestfs_010_load.ml). I just mimicked it. If it is not required, I will remove it. divided the generated files and handmade files in rust/src/ directory. I'll send this fixed patch to this mailing list. I'm not
2019 Jul 08
2
Re: [PATCH] Add Rust bindings
On Mon, Jul 08, 2019 at 10:04:57AM +0100, Richard W.M. Jones wrote: >On Mon, Jul 08, 2019 at 10:49:55AM +0200, Martin Kletzander wrote: >> On Mon, Jul 08, 2019 at 10:10:10AM +0200, Pino Toscano wrote: >> >On Saturday, 6 July 2019 13:03:24 CEST Martin Kletzander wrote: >> >>Just one thing, the Cargo.toml includes a version under which the crate would be >>
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...); + assert_eq!(g.get_trace().expect("get_trace"), true); + g.set_trace(false).expect("set_trace"); + assert_eq!(g.get_trace().expect("get_trace"), false); +} + +#[test] +fn autosync() { + let g = guestfs::Handle::create().expect("create"); + g.set_autosync(true).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), true); + g.set_autosync(false).expect("set_autosync"); + assert_eq!(g.get_autosync().expect("get_autosync"), false); +} + +#[test] +fn path() { + let g = guestfs::...