diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-11-30 17:34:58 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-11-30 17:34:58 +0000 |
commit | ed2c324266b8a72c0a6e7087b83530b6a8873b8b (patch) | |
tree | 587a2e8988bc4ce0587456fce0c6da76f663b48d /usr.sbin/installboot/landisk_installboot.c | |
parent | b0c7c04861827626ca0c8bb81ece585b174d4076 (diff) |
Revert the sync -> fsync conversion (at least for the time being) - there
is a good chance that this is causing the 'No blocks to load' errors that
various people have encountered.
Diffstat (limited to 'usr.sbin/installboot/landisk_installboot.c')
-rw-r--r-- | usr.sbin/installboot/landisk_installboot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/installboot/landisk_installboot.c b/usr.sbin/installboot/landisk_installboot.c index 30df58a107a..42fb022a5a0 100644 --- a/usr.sbin/installboot/landisk_installboot.c +++ b/usr.sbin/installboot/landisk_installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: landisk_installboot.c,v 1.6 2015/11/26 19:03:10 deraadt Exp $ */ +/* $OpenBSD: landisk_installboot.c,v 1.7 2015/11/30 17:34:57 jsing Exp $ */ /* * Copyright (c) 2013 Joel Sing <jsing@openbsd.org> @@ -40,7 +40,8 @@ md_loadboot(void) void md_installboot(int devfd, char *dev) { - fsync(devfd); + /* XXX - is this necessary? */ + sync(); bootldr = fileprefix(root, bootldr); if (bootldr == NULL) |