Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/installboot run fsync on the fsfd before closing
details: https://anonhg.NetBSD.org/src/rev/f89972d52ac1
branches: trunk
changeset: 525476:f89972d52ac1
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Apr 12 03:15:20 2002 +0000
description:
run fsync on the fsfd before closing
diffstat:
usr.sbin/installboot/installboot.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 41d6b78dea7c -r f89972d52ac1 usr.sbin/installboot/installboot.c
--- a/usr.sbin/installboot/installboot.c Fri Apr 12 03:01:57 2002 +0000
+++ b/usr.sbin/installboot/installboot.c Fri Apr 12 03:15:20 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.3 2002/04/11 07:56:13 lukem Exp $ */
+/* $NetBSD: installboot.c,v 1.4 2002/04/12 03:15:20 lukem Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: installboot.c,v 1.3 2002/04/11 07:56:13 lukem Exp $");
+__RCSID("$NetBSD: installboot.c,v 1.4 2002/04/12 03:15:20 lukem Exp $");
#endif /* !__lint */
#include <sys/utsname.h>
@@ -185,6 +185,8 @@
if (rv == 0)
errx(1, "%s boot block operation failed", op);
+ if (fsync(params->fsfd) == -1)
+ err(1, "Synchronising file system `%s'", params->filesystem);
if (close(params->fsfd) == -1)
err(1, "Closing file system `%s'", params->filesystem);
if (argc == 2)
Home |
Main Index |
Thread Index |
Old Index