1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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.
This commit is contained in:
Bruce Evans 1998-01-17 16:45:03 +00:00
parent 1e69872de7
commit b49d184b20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32595

View File

@ -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;