summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat/pstat.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-11-24 23:42:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-11-24 23:42:12 +0000
commit74fe66b5050e1cd9aefa602e74930b7c4dca4079 (patch)
tree3be1ff1dfa3d27f2b41e38c14f3cfa0afec2cc25 /usr.sbin/pstat/pstat.c
parentb2141bc1d7593c269a5d45650725bc51f30a0503 (diff)
Add recognition for remaining mount flags (from <sys/mount.h>)
that make sense to "pstat -v". From NetBSD.
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r--usr.sbin/pstat/pstat.c36
1 files changed, 31 insertions, 5 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 74016f80a04..e1910895f99 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,5 @@
-/* $NetBSD: pstat.c,v 1.19.4.3 1996/06/03 19:00:46 cgd Exp $ */
+/* $OpenBSD: pstat.c,v 1.6 1996/11/24 23:42:11 millert Exp $ */
+/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@@ -43,7 +44,7 @@ static char copyright[] =
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#else
-static char *rcsid = "$NetBSD: pstat.c,v 1.19.4.3 1996/06/03 19:00:46 cgd Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.6 1996/11/24 23:42:11 millert Exp $";
#endif
#endif /* not lint */
@@ -532,9 +533,14 @@ mount_print(mp)
flags &= ~MNT_NODEV;
comma = ",";
}
- if (flags & MNT_EXPORTED) {
- (void)printf("%sexport", comma);
- flags &= ~MNT_EXPORTED;
+ if (flags & MNT_UNION) {
+ (void)printf("%sunion", comma);
+ flags &= ~MNT_UNION;
+ comma = ",";
+ }
+ if (flags & MNT_ASYNC) {
+ (void)printf("%sasync", comma);
+ flags &= ~MNT_ASYNC;
comma = ",";
}
if (flags & MNT_EXRDONLY) {
@@ -542,6 +548,26 @@ mount_print(mp)
flags &= ~MNT_EXRDONLY;
comma = ",";
}
+ if (flags & MNT_EXPORTED) {
+ (void)printf("%sexport", comma);
+ flags &= ~MNT_EXPORTED;
+ comma = ",";
+ }
+ if (flags & MNT_DEFEXPORTED) {
+ (void)printf("%sdefdexported", comma);
+ flags &= ~MNT_DEFEXPORTED;
+ comma = ",";
+ }
+ if (flags & MNT_EXPORTANON) {
+ (void)printf("%sexportanon", comma);
+ flags &= ~MNT_EXPORTANON;
+ comma = ",";
+ }
+ if (flags & MNT_EXKERB) {
+ (void)printf("%sexkerb", comma);
+ flags &= ~MNT_EXKERB;
+ comma = ",";
+ }
if (flags & MNT_LOCAL) {
(void)printf("%slocal", comma);
flags &= ~MNT_LOCAL;