summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-13 04:54:27 +0000
committerbde <bde@FreeBSD.org>1998-02-13 04:54:27 +0000
commit3ba234ae41f816a052a6fa354ef11acf22490794 (patch)
tree720cef881394232ca0925399710bd3b28d7f1cac /sbin
parent85b6b2fc81ea31c73a307758182855b123d8ee06 (diff)
downloadFreeBSD-src-3ba234ae41f816a052a6fa354ef11acf22490794.zip
FreeBSD-src-3ba234ae41f816a052a6fa354ef11acf22490794.tar.gz
Converted putfsent() to Lite2 mount interface - don't use numeric
filesystem types.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c4
-rw-r--r--sbin/mount_ifs/mount.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 9c28f2e..93b7e14 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -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");
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c
index 9c28f2e..93b7e14 100644
--- a/sbin/mount_ifs/mount.c
+++ b/sbin/mount_ifs/mount.c
@@ -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");
OpenPOWER on IntegriCloud