summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-01-29 01:35:01 +0000
committerderaadt <deraadt@openbsd.org>1996-01-29 01:35:01 +0000
commit9aa639e893636ec47b02bd5e44cb9756a00c4807 (patch)
treeb2ad97f110484b413338c9b82f217c03a7067804
parentuse ed to repair all termcap database entries that locate the (diff)
downloadwireguard-openbsd-9aa639e893636ec47b02bd5e44cb9756a00c4807.tar.xz
wireguard-openbsd-9aa639e893636ec47b02bd5e44cb9756a00c4807.zip
from leo; add -G flag for mounting atari gemdos filesystems
-rw-r--r--sbin/mount_msdos/mount_msdos.88
-rw-r--r--sbin/mount_msdos/mount_msdos.c9
2 files changed, 13 insertions, 4 deletions
diff --git a/sbin/mount_msdos/mount_msdos.8 b/sbin/mount_msdos/mount_msdos.8
index 6bf21b13bff..0ecc4dc99e4 100644
--- a/sbin/mount_msdos/mount_msdos.8
+++ b/sbin/mount_msdos/mount_msdos.8
@@ -1,4 +1,4 @@
-.\" $NetBSD: mount_msdos.8,v 1.9 1995/11/29 15:11:37 ws Exp $
+.\" $NetBSD: mount_msdos.8,v 1.10 1996/01/19 21:14:43 leo Exp $
.\"
.\" Copyright (c) 1993,1994 Christopher G. Demetriou
.\" All rights reserved.
@@ -43,6 +43,7 @@
.Op Fl s
.Op Fl l
.Op Fl 9
+.Op Fl G
.Pa special
.Pa node
.Sh DESCRIPTION
@@ -119,6 +120,11 @@ is assumed.
Ignore the special Win'95 directory entries even
if deleting or renaming a file. This forces
.Fl s .
+.It Fl G
+This option causes the filesystem to be interpreted as an Atari-Gemdos
+filesystem. The differences to the msdos filesystem are minimal and
+limited to the boot block. This option enforces
+.Fl s .
.El
.Sh SEE ALSO
.Xr mount 2 ,
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c
index 7e0a9c42cc9..8aa66639056 100644
--- a/sbin/mount_msdos/mount_msdos.c
+++ b/sbin/mount_msdos/mount_msdos.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_msdos.c,v 1.11 1995/10/15 15:35:48 ws Exp $ */
+/* $NetBSD: mount_msdos.c,v 1.12 1996/01/19 21:14:46 leo Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#ifndef lint
-static char rcsid[] = "$NetBSD: mount_msdos.c,v 1.11 1995/10/15 15:35:48 ws Exp $";
+static char rcsid[] = "$NetBSD: mount_msdos.c,v 1.12 1996/01/19 21:14:46 leo Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -72,8 +72,11 @@ main(argc, argv)
mntflags = set_gid = set_uid = set_mask = 0;
(void)memset(&args, '\0', sizeof(args));
- while ((c = getopt(argc, argv, "sl9u:g:m:o:")) != EOF) {
+ while ((c = getopt(argc, argv, "Gsl9u:g:m:o:")) != EOF) {
switch (c) {
+ case 'G':
+ args.flags |= MSDOSFSMNT_GEMDOSFS;
+ break;
case 's':
args.flags |= MSDOSFSMNT_SHORTNAME;
break;