Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst For filesystem checks, skip any 'noaut...
details: https://anonhg.NetBSD.org/src/rev/117224c736d2
branches: trunk
changeset: 499195:117224c736d2
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Nov 14 13:27:49 2000 +0000
description:
For filesystem checks, skip any 'noauto' entries. Avoids problems
when upgrading a system that has a 'noauto' entry for a floppy
or CD device that has type ffs.
diffstat:
distrib/utils/sysinst/disks.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r ed3d8df9a9b4 -r 117224c736d2 distrib/utils/sysinst/disks.c
--- a/distrib/utils/sysinst/disks.c Tue Nov 14 13:13:36 2000 +0000
+++ b/distrib/utils/sysinst/disks.c Tue Nov 14 13:27:49 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disks.c,v 1.36 2000/10/31 16:02:06 fvdl Exp $ */
+/* $NetBSD: disks.c,v 1.37 2000/11/14 13:27:49 fvdl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -356,8 +356,8 @@
static struct lookfor fstabbuf[] = {
- {"/dev/", "/dev/%s %s ffs", "c", NULL, 0, 0, foundffs},
- {"/dev/", "/dev/%s %s ufs", "c", NULL, 0, 0, foundffs},
+ {"/dev/", "/dev/%s %s ffs %s", "c", NULL, 0, 0, foundffs},
+ {"/dev/", "/dev/%s %s ufs %s", "c", NULL, 0, 0, foundffs},
};
static int numfstabbuf = sizeof(fstabbuf) / sizeof(struct lookfor);
@@ -370,7 +370,8 @@
static void
foundffs(struct data *list, int num)
{
- if (strcmp(list[1].u.s_val, "/") != 0) {
+ if (strcmp(list[1].u.s_val, "/") != 0 &&
+ strstr(list[2].u.s_val, "noauto") == NULL) {
strncpy(dev[devcnt], list[0].u.s_val, SSTRSIZE);
strncpy(mnt[devcnt], list[1].u.s_val, STRSIZE);
devcnt++;
Home |
Main Index |
Thread Index |
Old Index