summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-12-03 01:06:51 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-12-03 01:06:51 +0000
commit2d0ae420d262ffe8793bb902d8f0b8fb61932a12 (patch)
treefc9a1fa5677d20ade591bb8788da236a2c0d951c /sys
parent4e3cf5ae51e6086fa825eb14dabe972a3825b88f (diff)
Add readlabelfs()'s table, a shorter form of fstypenames.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/disklabel.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index 3824bc0c2ad..7e147c3e89a 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.9 1996/11/06 01:36:54 deraadt Exp $ */
+/* $OpenBSD: disklabel.h,v 1.10 1996/12/03 01:06:50 downsj Exp $ */
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
/*
@@ -238,7 +238,7 @@ static char *dktypenames[] = {
#define FS_ADFS 16 /* Acorn Disk Filing System */
#define FS_EXT2FS 17 /* ext2fs */
-#ifdef DKTYPENAMES
+#ifdef DKTYPENAMES
static char *fstypenames[] = {
"unused",
"swap",
@@ -260,6 +260,30 @@ static char *fstypenames[] = {
"ext2fs",
NULL
};
+
+/* Similar to the above, but used for things like the mount command. */
+static char *fstypesnames[] = {
+ "", /* 0 */
+ "", /* 1 */
+ "", /* 2 */
+ "", /* 3 */
+ "", /* 4 */
+ "", /* 5 */
+ "", /* 6 */
+ "ffs", /* 7 */
+ "msdos", /* 8 */
+ "lfs", /* 9 */
+ "", /* 10 */
+ "", /* 11 */
+ "cd9660", /* 12 */
+ "", /* 13 */
+ "ados", /* 14 */
+ "", /* 15 */
+ "", /* 16 */
+ "ext2fs", /* 17 */
+ NULL
+};
+
#define FSMAXTYPES (sizeof(fstypenames) / sizeof(fstypenames[0]) - 1)
#endif