Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount_cd9660 Add new mount option nomaplcase (name take...
details: https://anonhg.NetBSD.org/src/rev/a091d81a96a6
branches: trunk
changeset: 486699:a091d81a96a6
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat May 27 16:32:08 2000 +0000
description:
Add new mount option nomaplcase (name taken from Solaris) - if set, file
names read from non-Rock Ridge cdroms won't be translated to lower case.
This is functionally similar to -g flag, but the version numbers on files
are still stripped.
diffstat:
sbin/mount_cd9660/mount_cd9660.8 | 16 ++++++++++++----
sbin/mount_cd9660/mount_cd9660.c | 11 ++++++-----
2 files changed, 18 insertions(+), 9 deletions(-)
diffs (90 lines):
diff -r 0883089c2461 -r a091d81a96a6 sbin/mount_cd9660/mount_cd9660.8
--- a/sbin/mount_cd9660/mount_cd9660.8 Sat May 27 16:11:16 2000 +0000
+++ b/sbin/mount_cd9660/mount_cd9660.8 Sat May 27 16:32:08 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: mount_cd9660.8,v 1.8 1999/07/13 11:12:49 scw Exp $
+.\" $NetBSD: mount_cd9660.8,v 1.9 2000/05/27 16:32:08 jdolecek Exp $
.\"
.\" Copyright (c) 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -44,7 +44,7 @@
.Nd mount an ISO-9660 filesystem
.Sh SYNOPSIS
.Nm ""
-.Op Fl egr
+.Op Fl egjr
.Op Fl o Ar options
.Ar special node
.Sh DESCRIPTION
@@ -86,9 +86,17 @@
Options are specified with a
.Fl o
flag followed by a comma separated string of options.
-See the
+Besides options mentioned in
.Xr mount 8
-man page for possible options and their meanings.
+man page, following cd9660-specific options are supported:
+.Bl -tag -width indent
+.It Cm nomaplcase
+File names on cd9660 cdrom without Rock Ridge extension present
+should be uppercase only. By default, cd9660 recodes file
+names read from a non-Rock Ridge disk to all lowercase characters.
+.Cm nomaplcase
+turns off this mapping.
+.El
.It Fl r
Do not use any Rockridge extensions included in the filesystem.
.El
diff -r 0883089c2461 -r a091d81a96a6 sbin/mount_cd9660/mount_cd9660.c
--- a/sbin/mount_cd9660/mount_cd9660.c Sat May 27 16:11:16 2000 +0000
+++ b/sbin/mount_cd9660/mount_cd9660.c Sat May 27 16:32:08 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_cd9660.c,v 1.10 1999/11/21 00:57:07 mjl Exp $ */
+/* $NetBSD: mount_cd9660.c,v 1.11 2000/05/27 16:32:08 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)mount_cd9660.c 8.7 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: mount_cd9660.c,v 1.10 1999/11/21 00:57:07 mjl Exp $");
+__RCSID("$NetBSD: mount_cd9660.c,v 1.11 2000/05/27 16:32:08 jdolecek Exp $");
#endif
#endif /* not lint */
@@ -70,6 +70,7 @@
const struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_UPDATE,
+ { "maplcase", 1, ISOFSMNT_NOCASETRANS, 1 },
{ NULL }
};
@@ -86,7 +87,7 @@
char *dev, *dir;
mntflags = opts = 0;
- while ((ch = getopt(argc, argv, "egjo:r")) != -1)
+ while ((ch = getopt(argc, argv, "egijo:r")) != -1)
switch (ch) {
case 'e':
opts |= ISOFSMNT_EXTATT;
@@ -98,7 +99,7 @@
opts |= ISOFSMNT_NOJOLIET;
break;
case 'o':
- getmntopts(optarg, mopts, &mntflags, 0);
+ getmntopts(optarg, mopts, &mntflags, &opts);
break;
case 'r':
opts |= ISOFSMNT_NORRIP;
@@ -135,6 +136,6 @@
usage()
{
(void)fprintf(stderr,
- "usage: mount_cd9660 [-egjr] [-o options] special node\n");
+ "usage: mount_cd9660 [-egijr] [-o options] special node\n");
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index