diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-29 01:35:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-29 01:35:06 +0000 |
commit | ab768c97f88fc954ab5e72cb6a50c0f6043005da (patch) | |
tree | b84c1173e63291ba3da7fa24393210856724bab3 /sbin | |
parent | ad1bb41c9f76c905cedadf4945386e0ffc50090b (diff) |
from leo; add -G flag for mounting atari gemdos filesystems
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_msdos/mount_msdos.8 | 8 | ||||
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 9 |
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; |