From 5714664cf5684857749255e8d4fd13d52f2454d9 Mon Sep 17 00:00:00 2001 From: perry Date: Thu, 16 Jan 1997 22:00:30 +0000 Subject: [PATCH] fix pr 2977 -- only try to dump ufs/ffs partitions --- sbin/dump/optr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 51470e2b5655..af0ed3d4cb17 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -1,4 +1,4 @@ -/* $NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $ */ +/* $NetBSD: optr.c,v 1.5 1997/01/16 22:00:30 perry Exp $ */ /*- * Copyright (c) 1980, 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94"; #else -static char rcsid[] = "$NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $"; +static char rcsid[] = "$NetBSD: optr.c,v 1.5 1997/01/16 22:00:30 perry Exp $"; #endif #endif /* not lint */ @@ -444,6 +444,9 @@ getfstab() strcmp(fs->fs_type, FSTAB_RO) && strcmp(fs->fs_type, FSTAB_RQ)) continue; + if (strcmp(fs->fs_vfstype, "ufs") && + strcmp(fs->fs_vfstype, "ffs")) + continue; fs = allocfsent(fs); if ((pf = (struct pfstab *)malloc(sizeof (*pf))) == NULL) quit("%s\n", strerror(errno));