diff options
author | bde <bde@FreeBSD.org> | 1998-01-17 16:45:03 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-01-17 16:45:03 +0000 |
commit | 96fd17c7036968b7fbdd9b7a12be3ce25065a913 (patch) | |
tree | ae178c17adc2109f3848177615b0dcfef52db746 /usr.sbin | |
parent | 4f0b4172653fd5c324069491cc77badc98dced82 (diff) | |
download | FreeBSD-src-96fd17c7036968b7fbdd9b7a12be3ce25065a913.zip FreeBSD-src-96fd17c7036968b7fbdd9b7a12be3ce25065a913.tar.gz |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/quot/quot.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 <sys/param.h> @@ -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; |