diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/mkfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |