From 96fd17c7036968b7fbdd9b7a12be3ce25065a913 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 17 Jan 1998 16:45:03 +0000 Subject: Started getting rid of the compatibility cruft for the Lite1 mount() and the pre-Lite2 vfsconf interfaces. For quot, just back out revs. 1.1 and 1.2 and change MNT_FFS to "ufs", so that vfsconf isn't used at all. Revs. 1.1 and 1.2 were hacks to get around f_fstypename not being in `struct statfs' in Lite1. --- usr.sbin/quot/quot.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'usr.sbin/quot') diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 64fdb28..7be0641 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -31,7 +31,7 @@ #ifndef lint static const char rcsid[] = - "$Id: quot.c,v 1.6 1997/08/13 12:09:48 jkh Exp $"; + "$Id: quot.c,v 1.7 1997/10/10 06:31:07 charnier Exp $"; #endif /* not lint */ #include @@ -522,7 +522,6 @@ main(argc,argv) { char all = 0; struct statfs *mp; - struct vfsconf *vfsp; char dev[MNAMELEN + 1]; char *nm; int cnt; @@ -564,11 +563,8 @@ main(argc,argv) } if (all) { cnt = getmntinfo(&mp,MNT_NOWAIT); - vfsp = getvfsbyname("ufs"); - if (vfsp == NULL) - errx(1, "cannot find ufs/ffs filesystem type!"); for (; --cnt >= 0; mp++) { - if (mp->f_type == vfsp->vfc_index) { + if (!strncmp(mp->f_fstypename, "ufs", MFSNAMELEN)) { if ((nm = strrchr(mp->f_mntfromname,'/'))) { sprintf(dev,"/dev/r%s",nm + 1); nm = dev; -- cgit v1.1