From d9e5b514aa4ef6d659b267e8caef4ebec8a221b1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 8 Oct 2012 22:25:43 +0100 Subject: btrfs: Add a 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 --- daemon/mkfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemon/mkfs.c b/daemon/mkfs.c index 4b2ea10b..d472450e 100644 --- a/daemon/mkfs.c +++ b/daemon/mkfs.c @@ -192,6 +192,13 @@ do_mkfs (const char *fstype, const char *device, int blocksize, } free (err); + + /* Workaround for RHBZ#863978, possibly in kernel 3.7.0. Can be + * fixed when we work out what's going on upstream. + */ + if (STREQ (fstype, "btrfs")) + sync_disks (); + return 0; } -- cgit