Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_msdos Well, if you set FSFIXFAT, better do it... T...
details: https://anonhg.NetBSD.org/src/rev/490591b61b0a
branches: trunk
changeset: 330476:490591b61b0a
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 10 21:06:20 2014 +0000
description:
Well, if you set FSFIXFAT, better do it... Try running fsck on:
$ newfs_msdos -C 1M ./poc.fs
$ dd if=/dev/zero of=poc.fs conv=notrunc bs=1 count=1 seek=512
multiple times and see that it does not get fixed.
diffstat:
sbin/fsck_msdos/check.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 75eb52bee61e -r 490591b61b0a sbin/fsck_msdos/check.c
--- a/sbin/fsck_msdos/check.c Thu Jul 10 21:00:52 2014 +0000
+++ b/sbin/fsck_msdos/check.c Thu Jul 10 21:06:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: check.c,v 1.18 2009/04/11 07:14:50 lukem Exp $ */
+/* $NetBSD: check.c,v 1.19 2014/07/10 21:06:20 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: check.c,v 1.18 2009/04/11 07:14:50 lukem Exp $");
+__RCSID("$NetBSD: check.c,v 1.19 2014/07/10 21:06:20 christos Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -135,7 +135,7 @@
goto out;
/* now write the FATs */
- if (mod & FSFATMOD) {
+ if (mod & (FSFATMOD|FSFIXFAT)) {
if (ask(1, "Update FATs")) {
mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT);
if (mod & FSFATAL)
Home |
Main Index |
Thread Index |
Old Index