[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] Remove call to set_autosync.



From: "Richard W.M. Jones" <rjones redhat com>

This is the default since libguestfs 1.6.  It does not need to be
explicitly set.

See also https://bugzilla.redhat.com/show_bug.cgi?id=799798#c6
---
 lib/Sys/VirtConvert/GuestfsHandle.pm |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/lib/Sys/VirtConvert/GuestfsHandle.pm b/lib/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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]