mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 01:38:57 +00:00
Converted putfsent() to Lite2 mount interface - don't use numeric
filesystem types.
This commit is contained in:
parent
768950348d
commit
f1d7b4203c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33304
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$Id: mount.c,v 1.20 1997/09/27 13:44:17 kato Exp $";
|
||||
"$Id: mount.c,v 1.21 1997/11/13 00:28:49 julian Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -607,7 +607,7 @@ putfsent(ent)
|
||||
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
|
||||
else if ((fst = getfsfile(ent->f_mntonname)))
|
||||
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
|
||||
else if (ent->f_type == MOUNT_UFS)
|
||||
else if (strcmp(ent->f_fstypename, "ufs") == 0)
|
||||
printf("\t1 1\n");
|
||||
else
|
||||
printf("\t0 0\n");
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$Id: mount.c,v 1.20 1997/09/27 13:44:17 kato Exp $";
|
||||
"$Id: mount.c,v 1.21 1997/11/13 00:28:49 julian Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -607,7 +607,7 @@ putfsent(ent)
|
||||
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
|
||||
else if ((fst = getfsfile(ent->f_mntonname)))
|
||||
printf("\t%u %u\n", fst->fs_freq, fst->fs_passno);
|
||||
else if (ent->f_type == MOUNT_UFS)
|
||||
else if (strcmp(ent->f_fstypename, "ufs") == 0)
|
||||
printf("\t1 1\n");
|
||||
else
|
||||
printf("\t0 0\n");
|
||||
|
Loading…
Reference in New Issue
Block a user