Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pdisk comment out bogus attempt to zero first byte afte...
details: https://anonhg.NetBSD.org/src/rev/fc3806ea58b2
branches: trunk
changeset: 546217:fc3806ea58b2
user: dbj <dbj%NetBSD.org@localhost>
date: Tue Apr 22 18:19:39 2003 +0000
description:
comment out bogus attempt to zero first byte after map on disk
diffstat:
dist/pdisk/partition_map.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 3c6aae48dc20 -r fc3806ea58b2 dist/pdisk/partition_map.c
--- a/dist/pdisk/partition_map.c Tue Apr 22 17:23:47 2003 +0000
+++ b/dist/pdisk/partition_map.c Tue Apr 22 18:19:39 2003 +0000
@@ -345,6 +345,8 @@
error(errno, "Unable to write block %d", i);
}
}
+
+#ifdef __linux__
// zap the block after the map (if possible) to get around a bug.
if (map->maximum_in_map > 0 && i < map->maximum_in_map) {
i += 1;
@@ -357,6 +359,8 @@
free(block);
}
}
+#endif
+
if (interactive)
printf("The partition table has been altered!\n\n");
Home |
Main Index |
Thread Index |
Old Index