diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-10-10 11:15:39 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-10-10 11:15:39 +0100 |
commit | a03f536f0dae3ca20e11b7c2ba41e4a7eb1f28c9 (patch) | |
tree | 243352ce7e3f9331ffeb1740695464c226cec1cc | |
parent | 0032c60336c6f819859d30ec68179373e8943ef6 (diff) | |
download | libguestfs-a03f536f0dae3ca20e11b7c2ba41e4a7eb1f28c9.tar.gz libguestfs-a03f536f0dae3ca20e11b7c2ba41e4a7eb1f28c9.tar.xz libguestfs-a03f536f0dae3ca20e11b7c2ba41e4a7eb1f28c9.zip |
btrfs: Add an extended workaround for btrfs failures seen with kernel 3.7.0.
See:
https://bugzilla.redhat.com/show_bug.cgi?id=863978
and:
http://thread.gmane.org/gmane.comp.file-systems.btrfs/20257
This extends the fix in commit d9e5b514aa4ef6d659b267e8caef4ebec8a221b1
because I missed the case where mkfs.btrfs is called directly.
-rw-r--r-- | daemon/btrfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 8ecde019..8b80475e 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -204,6 +204,11 @@ do_mkfs_btrfs (char *const *devices, return -1; } + /* Workaround for RHBZ#863978, possibly in kernel 3.7.0. Can be + * fixed when we work out what's going on upstream. + */ + sync_disks (); + free (err); return 0; } |