Home | History | Annotate | only in /src/sbin/mount_msdos
History log of /src/sbin/mount_msdos
RevisionDateAuthorComments
 1.22 22-Dec-2009  pooka Don't -I from $S/sys.
 1.21 05-Aug-2008  pooka Refactor mount utilities to provide a mount_fs_parseargs() routine.
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h
 1.20 27-Jun-2005  christos branches: 1.20.20; 1.20.24;
Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
 1.19 05-Feb-2005  xtraeme Kill __P(), use ANSI function declarations; WARNS=3.
 1.18 22-Mar-2003  jdolecek move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
 1.17 21-Sep-2002  christos MNT_GETARGS support
 1.16 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.15 30-Oct-2000  jdolecek make the code includable into other programs:
* make static all symbols which do not need to be exported
* rename main() to mount_FOO()
* new main() now just calls mount_FOO(), main() is only compiled in if
MOUNT_NOMAIN is not defined
* a_gid(), a_uid() and a_mask() were put into ../mount/fattr.[ch], local
versions removed
 1.14 14-Aug-2000  deberg use CURDIR where appropriate
 1.13 01-Mar-1998  fvdl branches: 1.13.10;
Merge with Lite2 + local changes
 1.12 10-Oct-1997  christos CFLAGS->CPPFLAGS
 1.11 08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.10 06-May-1997  gwr Use .PATH.c: ...
 1.9 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.8 22-Dec-1994  cgd specify man pages the new way.
 1.7 20-Dec-1994  mycroft No longer install setuid root.
 1.6 16-Jul-1994  cgd branches: 1.6.2;
update from ws. make it work again
 1.5 08-Apr-1994  cgd new functionality -- uid/gid/perms settable, users can invoke
 1.4 07-Apr-1994  cgd clean up, zero args struct so we're ok for changes coming soon...
 1.3 09-Aug-1993  mycroft PCFS --> MSDOSFS
 1.2 30-Jul-1993  mycroft Merge changes from netbsd-0-9 branch.
 1.1 09-Apr-1993  cgd branches: 1.1.2;
written by Paul Popelka. mounts pcfs MS-DOS filesystem. (patch 111)
 1.1.2.3 15-Aug-1993  cgd define MSDOSFS not PCFS
 1.1.2.2 20-Jul-1993  cgd source file is mount_msdos.c now...
 1.1.2.1 20-Jul-1993  cgd change name to mount_msdos, and add man page. need some more hacking
later to change everything to mount_msdos, i.e. files need to be
moved in the tree, but that can wait.
 1.6.2.2 16-Jul-1994  cgd update from ws. make it work again
 1.6.2.1 16-Jul-1994  cgd file Makefile was added on branch netbsd-1-0 on 1994-07-16 21:32:07 +0000
 1.13.10.1 14-Aug-2000  deberg pullup 1.14, approved by thorpej

use CURDIR where appropriate
 1.20.24.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.20.20.1 28-Sep-2008  mjf Sync with HEAD.
 1.41 12-Feb-2020  leot Fix a thinko

Reported by qjsgkem via #netbsd-code, thanks!
 1.40 11-Oct-2016  sevan branches: 1.40.14;
Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it.
Heads up by Ingo Schwarze.
 1.39 12-Sep-2016  sevan - mount_pcfs appeared in 386BSD
https://groups.google.com/forum/#!search/mount_pcfs.c/comp.unix.bsd/9qhH0v1tZm0/inlPnXZj_2sJ
- Edit history to note name change version & rewrite.
- Add authors section.
- s/filesystem/file systems
- Bump date.
 1.38 30-Jan-2016  wiz branches: 1.38.2;
New sentence, new line. Bump date.
 1.37 30-Jan-2016  mlelstv Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
 1.36 16-Nov-2012  tsutsui Note mount_msdos -G option also allows mounting X680x0's Human68k floppies.
 1.35 27-Sep-2012  riz Remove the bit about empty DOS file systems assumed to have short names
by default; jmcneill changed this back in Jan 2009, but missed this
text.
 1.34 15-Sep-2011  wiz branches: 1.34.2; 1.34.4; 1.34.8; 1.34.10;
Consistently spell MS-DOS with a hyphen. From Snader_LB.
 1.33 24-Jan-2009  wiz New sentence, new line.
 1.32 23-Jan-2009  jmcneill Note that empty filesystems are now treated as if they support long
filenames by default.
 1.31 31-Jan-2005  erh Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
 1.30 08-Sep-2003  wiz Sort options.
 1.29 08-Sep-2003  wiz Bump date for previous.
 1.28 07-Sep-2003  itojun add -t option for gmt time offset (normally MS-DOS filesystem has timestamp
in localtime, not GMT). PR kern/22717
 1.27 02-Aug-2003  jdolecek bump date for last
 1.26 02-Aug-2003  jdolecek Allow separate masks for files and directories. Useful e.g. to turn
the execute bit off for files, but keep search permission for directories.
Change contributed in PR kern/21538 by Pavel Arnost, based on some FreeBSD
patches.
Further manpage changes, and backward-compatibility adjustments done by me.

Also fixes PR kern/16778 by Johan Danielsson, and PR kern/3400 by Rick Byers
 1.25 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.24 14-Feb-2003  grant 'NetBSD.org' and some mdoc fixes.
 1.23 01-Oct-2002  wiz New sentence, new line. By Robert Elz with minimal fixes.
 1.22 16-Nov-2001  wiz Sort sections, use standard section headers.
 1.21 16-Nov-2001  wiz Whitespace nits
 1.20 05-Jun-2001  wiz Drop arguments of .Os.
 1.19 07-Nov-2000  lukem fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
 1.18 28-Aug-2000  hubertf Document the FAT types we support, and add a bugs section (suggested
by ws@netbsd.org).
 1.17 14-Jun-2000  cgd branches: 1.17.2;
sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.16 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.15 06-Apr-1999  pk branches: 1.15.6;
1, 2, 3 and.. 4!
 1.14 07-Mar-1999  mycroft branches: 1.14.2;
Clean up SYNOPSIS formatting.
 1.13 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.12 17-Oct-1997  ws Drop indication of support for access times (they are no longer maintained)
 1.11 15-Sep-1997  lukem * update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.10 19-Jan-1996  leo Add '-G' flag for mounting Atari-Gemdos filesystems.
 1.9 29-Nov-1995  ws - Add support for Win'95 separate creation/modification/access timestamps
- Re-introduce lowercase filenames for non-Win'95-filesystems
 1.8 15-Oct-1995  ws Add support for Win'95 long filenames
 1.7 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.6 18-Jan-1995  mycroft Document the `-o' option. Remove the last vestige of the `-F' option.
 1.5 16-Jul-1994  cgd branches: 1.5.2;
update from ws. make it work again
 1.4 08-Apr-1994  cgd new functionality -- uid/gid/perms settable, users can invoke
 1.3 29-Jan-1994  jtc Fix spelling error in Copyright notice
 1.2 30-Jul-1993  mycroft Merge changes from netbsd-0-9 branch.
 1.1 20-Jul-1993  cgd branches: 1.1.2;
change name to mount_msdos, and add man page. need some more hacking
later to change everything to mount_msdos, i.e. files need to be
moved in the tree, but that can wait.
 1.1.2.2 20-Jul-1993  cgd change phrasing of compatibility CAVEAT thang.
 1.1.2.1 20-Jul-1993  cgd file mount_msdos.8 was added on branch netbsd-0-9 on 1993-07-20 01:41:12 +0000
 1.5.2.2 16-Jul-1994  cgd update from ws. make it work again
 1.5.2.1 16-Jul-1994  cgd file mount_msdos.8 was added on branch netbsd-1-0 on 1994-07-16 21:32:08 +0000
 1.14.2.1 07-Apr-1999  pk Pull up from trunk: copyright text warts.
 1.15.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.2.1 29-Aug-2000  hubertf Pull up rev. 1.18 to netbsd-1-5 branch, OK'd by thorpej:
> Document the FAT types we support, and add a bugs section (suggested
> by ws@netbsd.org).
 1.34.10.1 24-Nov-2012  jdc Pull up revisions:
src/sbin/mount_msdos/mount_msdos.8 revisions 1.35,1.36
(requested by tsutsui in ticket #711).

Remove the bit about empty DOS file systems assumed to have short names
by default; jmcneill changed this back in Jan 2009, but missed this
text.

Note mount_msdos -G option also allows mounting X680x0's Human68k floppies.
 1.34.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.4.1 24-Nov-2012  jdc Pull up revisions:
src/sbin/mount_msdos/mount_msdos.8 revisions 1.35,1.36
(requested by tsutsui in ticket #711).

Remove the bit about empty DOS file systems assumed to have short names
by default; jmcneill changed this back in Jan 2009, but missed this
text.

Note mount_msdos -G option also allows mounting X680x0's Human68k floppies.
 1.34.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.34.2.1 30-Oct-2012  yamt sync with head
 1.38.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.40.14.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.50 21-Aug-2016  jdolecek report also gmtoff in the output of mount options
 1.49 06-Feb-2016  mlelstv fix usage message
 1.48 30-Jan-2016  mlelstv Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
 1.47 07-Oct-2009  pooka Mount from canon_dev instead of dev.
 1.46 05-Aug-2008  pooka Refactor mount utilities to provide a mount_fs_parseargs() routine.
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h
 1.45 29-Jul-2008  pooka Split option parsing into its own routine so that it can be used
by other consumers as well.
 1.44 15-Dec-2007  perry branches: 1.44.4; 1.44.8;
convert __attribute__s to applicable cdefs.h macros
 1.43 16-Jul-2007  pooka branches: 1.43.4; 1.43.6;
Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS. Others worked with < 0,
but make them check against -1 too for consistency. And sprinkle some
stylish line wrapping where appropriate.
 1.42 14-Jul-2007  dsl Add additional 'sizeof args' parameter to mount(2).
 1.41 10-Mar-2007  hubertf - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
 1.40 17-Jan-2007  hubertf Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
 1.39 16-Oct-2006  christos use MOPT_NULL
 1.38 21-Mar-2006  christos Always check the results of getmntopts() and free them.
 1.37 23-Sep-2005  jmmv Apply the NFS exports list rototill patch:

- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
file sys/nfs/nfs_export.c. The former was becoming large and its code
is always compiled, regardless of the build options. Using the latter,
the code is only compiled in when NFSSERVER is enabled. While doing this,
also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
path and a set of export entries. At the moment it can only clear the
exports list or append entries, one by one, but it is done in a way that
allows setting the whole set of entries atomically in the future (see the
comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
that it becomes file system agnostic. In fact, all this whole thing was
done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
exports initialization; done internally by the kernel when initializing
the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
subsystems can run arbitrary code upon receipt of specific VFS events.
At the moment, this only provides support for unmount and is used to
destroy NFS exports lists from the file systems being unmounted, though it
has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
 1.36 05-Feb-2005  xtraeme Kill __P(), use ANSI function declarations; WARNS=3.
 1.35 31-Jan-2005  erh Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
 1.34 05-Jan-2004  jmmv Remove extra newline from usage message.
 1.33 05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.32 08-Sep-2003  wiz Sync usage with man page.
 1.31 07-Sep-2003  itojun add -t option for gmt time offset (normally MS-DOS filesystem has timestamp
in localtime, not GMT). PR kern/22717
 1.30 02-Aug-2003  jdolecek actually enable MNT_GETARGS support
 1.29 02-Aug-2003  jdolecek Allow separate masks for files and directories. Useful e.g. to turn
the execute bit off for files, but keep search permission for directories.
Change contributed in PR kern/21538 by Pavel Arnost, based on some FreeBSD
patches.
Further manpage changes, and backward-compatibility adjustments done by me.

Also fixes PR kern/16778 by Johan Danielsson, and PR kern/3400 by Rick Byers
 1.28 03-May-2003  christos print masks and modes in octal.
 1.27 22-Mar-2003  jdolecek use <> rather than "" for #include mntopts.h
 1.26 14-Feb-2003  grant 'NetBSD.org' and some mdoc fixes.
 1.25 21-Sep-2002  christos MNT_GETARGS support
 1.24 30-Oct-2000  jdolecek make the code includable into other programs:
* make static all symbols which do not need to be exported
* rename main() to mount_FOO()
* new main() now just calls mount_FOO(), main() is only compiled in if
MOUNT_NOMAIN is not defined
* a_gid(), a_uid() and a_mask() were put into ../mount/fattr.[ch], local
versions removed
 1.23 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.22 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.21 27-Mar-2000  jdolecek branches: 1.21.2;
allow options 'sync' and 'async'
 1.20 25-Jun-1999  perseant Regularize error reporting of mount_* commands for failure of mount(2)
to the form:

mount_xxx: dev on dir: reason for failure
 1.19 01-Mar-1998  fvdl branches: 1.19.2;
Merge with Lite2 + local changes
 1.18 16-Sep-1997  lukem update for new getmntopts() brought in from lite-2 merge
 1.17 15-Sep-1997  lukem * update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.16 24-Oct-1996  cgd Fix typo in last commit
 1.15 23-Oct-1996  cgd this file system (according to its source) supports MNT_UPDATE. Therefore
the mount program must recognize the 'update' option.
 1.14 13-Apr-1996  cgd 'const struct' not 'struct const'
 1.13 13-Apr-1996  jtc Add const qualifier to mopts table
 1.12 19-Jan-1996  leo Add '-G' flag for mounting Atari-Gemdos filesystems.
 1.11 15-Oct-1995  ws Add support for Win'95 long filenames
 1.10 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.9 18-Jan-1995  mycroft Document the `-o' option. Remove the last vestige of the `-F' option.
 1.8 16-Jul-1994  cgd branches: 1.8.2;
update from ws. make it work again
 1.7 08-Apr-1994  cgd kill relative paths
 1.6 08-Apr-1994  cgd new functionality -- uid/gid/perms settable, users can invoke
 1.5 07-Apr-1994  cgd clean up, zero args struct so we're ok for changes coming soon...
 1.4 07-Sep-1993  ws Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
 1.3 14-Aug-1993  mycroft pcfs_args --> msdosfs_args
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 09-Apr-1993  cgd written by Paul Popelka. mounts pcfs MS-DOS filesystem. (patch 111)
 1.8.2.2 16-Jul-1994  cgd update from ws. make it work again
 1.8.2.1 16-Jul-1994  cgd file mount_msdos.c was added on branch netbsd-1-0 on 1994-07-16 21:32:09 +0000
 1.19.2.1 05-Sep-1999  he Pull up revision 1.20:
Regularize error reporting of mount_* commands for failure of
mount(2) to the form "mount_xxx: dev on dir: reason for failure"
(as opposed to the old "mount_xxx: : reason for failure").
(perseant)
 1.21.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.43.6.1 27-Dec-2007  mjf Sync with HEAD.
 1.43.4.1 09-Jan-2008  matt sync with HEAD
 1.44.8.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.44.4.1 28-Sep-2008  mjf Sync with HEAD.
 1.1 29-Jul-2008  pooka branches: 1.1.2; 1.1.4;
Split option parsing into its own routine so that it can be used
by other consumers as well.
 1.1.4.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.4.1 29-Jul-2008  mjf file mount_msdos.h was added on branch mjf-devfs2 on 2008-09-28 11:17:13 +0000
 1.1.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.2.1 29-Jul-2008  wrstuden file mount_msdos.h was added on branch wrstuden-revivesa on 2008-09-18 04:28:27 +0000

RSS XML Feed