History log of /freebsd-10.0-release/sbin/mount_msdosfs/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255977 01-Oct-2013 pluknet

Sweep man pages replacing ad -> ada.

Approved by: re (blackend)
MFC after: 1 week
X-MFC note: stable/9 only


247856 05-Mar-2013 jkim

GC unused variables. Prefer NULL over 0 for pointers.


230226 16-Jan-2012 jh

Change checkpath() to not exit on error. This is a prerequisite for
fixing the mount(8) "failok" option.

PR: 163668
Reviewed by: Garrett Cooper, delphij (previous version)


208027 13-May-2010 uqs

mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru


201400 02-Jan-2010 kib

Remove reference to the bug in FreeBSD 2.0.

Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 3 days


201227 29-Dec-2009 ed

ANSIfy almost all applications that use WARNS=6.

I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.


198236 19-Oct-2009 ru

Switch the default WARNS level for sbin/ to 6.

Submitted by: Ulrich Spörlein


186768 05-Jan-2009 trhodes

Add missing qualifier which was missed in the previous commit.

Noticed by: brooks


186429 23-Dec-2008 trhodes

Document the "-o large" option.

PR: 129792


185422 29-Nov-2008 imp

Noticed the following error message:

mount_msdosfs: /dev/cf0s1: : Operation not supported by device

and thought I'd fix it to be:

mount_msdosfs: /dev/cf0s1: Operation not supported by device

Not sure why errmsg isn't getting filled in, or why this error is even
happening at all... (fsck_msdosfs is clean, and I can mount this same
CF elsewhere).


166326 29-Jan-2007 rodrigc

Pass "errmsg" to nmount(), so that if nmount() fails, we can get
strings provided by vfs_mount_error().


159128 01-Jun-2006 rodrigc

mount_msdosfs.c:
- remove call to getmntopts(), and just pass -o options to
nmount(). This removes some confusion as to what options
msdosfs can parse, by pushing the responsibility of option parsing
to the VFS and FS specific code in the kernel.

msdosfs_vfsops.c:
- add "force" and "sync" to msdosfs_opts. They used to be specified
in mount_msdosfs.c, so move them here. It's not clear whethere these
options should be placed into global_opts in vfs_mount.c or not.

Motivated by: marcus


152974 01-Dec-2005 avatar

Fixing yet another regression introduced in rev1.37 by preserving cs_local
pointer such that local to DOS code page conversion with combined option
'-L,-D' works again.

Reviewed by: rodrigc


152809 25-Nov-2005 avatar

It turns out that set_charset() invokes build_iovec_argf() which modifies
iov address internally through realloc(3). However, since the function
parameter wasn't designed to allow the modified iov being passed back to
the caller, we ended up feeding iov with several corrupted entries(this
depends on how many arguments were pushed into iovec before set_charset())
to nmount(2).

This commit fixes this regression introduced in rev1.37 such that
mount_msdosfs(8) with code page conversion option(-W,-D) enabled works again.

Reviewed by: rodrigc


152731 23-Nov-2005 avatar

- Adding the missing 'W' option back which was accidentally removed
in rev1.37.
- Fixing a core dump inside build_iovec_argf by providing a !NULL format
string to vsnprintf(3).

Reviewed by: rodrigc


152416 14-Nov-2005 maxim

o Style: restore tab indentation mangled in the previous delta.


152363 13-Nov-2005 rodrigc

Increase WARNS level to 6.


152362 13-Nov-2005 rodrigc

Convert mount_msdosfs to use nmount().


150134 14-Sep-2005 joel

Xref msdosfs(5)

Approved by: brueffer (mentor)


147242 10-Jun-2005 delphij

Use MOPT_END in favor of MOPT_NULL, which better describes the purporse
of the macro.


146853 01-Jun-2005 delphij

Add a handy macro to represent null mount option, MOPT_NULL, and make
use of the macro in sbin/mount*'s, by replacing:

mopts[] = {
MOPT_STDOPTS,
{ NULL }
}

With:
mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
}

This change will help to reduce the situation that we don't explicitly
initialize "struct mntopt"'s. It should not contribute to any
functional/logical changes as far as I can tell.


141611 10-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


139112 21-Dec-2004 ru

NOSHARED -> NO_SHARED


134565 31-Aug-2004 trhodes

Correct a style bug: remove a gratuitous space between ( and ".

Ok'ed by: fjoe


131835 08-Jul-2004 trhodes

Remove support for gemdos, John removed it from the driver awhile ago.

Glanced at by: jhb


129327 17-May-2004 ru

Assorted markup, grammar, and spelling fixes.


123293 08-Dec-2003 fjoe

Make msdosfs long filenames matching case insensitive again.

PR: 59765
Submitted by: Ryuichiro Imura <imura@ryu16.org>


121429 23-Oct-2003 trhodes

Fix several old bugs which got worse over time:

o WARNS should be WARNS?= (broke in rev 1.21).
o Includes should be sorted.
o Move "mntopt.h" out of the standard includes section.
o Rewrite usage() to match the manual page and make it < 80 characters.
o Remove extra .El call on line 187. It is unused and causes mdoc(7) warnings.

Discussed with: bde


121373 22-Oct-2003 trhodes

Move prototypes into their function.


121363 22-Oct-2003 trhodes

Make WARNS=2 build without error.


121360 22-Oct-2003 trhodes

Add back the commas ',' in usage to avoid a garbled usage message.
They were erroneously removed in revision 1.27.


121007 11-Oct-2003 fjoe

Describe '-M' in usage().

PR: 57462
Submitted by: Ryuichiro Imura <imura@ryu16.org>


120492 26-Sep-2003 fjoe

- Support for multibyte charsets in LIBICONV.
- CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options
(with corresponding modules).
- kiconv(3) for loadable charset conversion tables support.

Submitted by: Ryuichiro Imura <imura@ryu16.org>


118837 12-Aug-2003 trhodes

Add a '-M mask' option so that users can have different
masks for files and directories. This should make some
of the Midnight Commander users happy.

Remove an extra ')' in the manual page.

PR: 35699
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> (original version)
Tested by: simon


118685 09-Aug-2003 bms

PR: docs/53688
Submitted by: bms
Approved by: jake (mentor)


102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


101270 03-Aug-2002 mux

Now that the kernel is able to load modules itself,
remove all the code which was trying to do so.
This code was nasty in several ways, it was hiding
the kernel bug where the kernel was unable to properly
load a module, and it was quitting if it wasn't able
to load the module. The consequence is that an ABI
breakage of the vfsconf API would have broken *every*
mount utility.


100872 29-Jul-2002 ru

Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by: bde


100313 18-Jul-2002 ru

s/${INSTALL} -c/${INSTALL} ${COPY}/


99501 06-Jul-2002 charnier

The .Nm utility


96707 16-May-2002 trhodes

more file system > filesystem


92882 21-Mar-2002 imp

o __P removed
o main prototype removed


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


86838 23-Nov-2001 ache

Fix decode table

PR: 32233
Submitted by: Basileios Anastasatos <B.Anastasatos@MyRealBox.com>


86695 20-Nov-2001 ache

Add Greek conversion table

PR: 32119
Submitted by: Basileios Anastasatos <B.Anastasatos@MyRealBox.com>


80519 28-Jul-2001 ache

Add KOI8-U tables

Submitted by: Olexander Kunytsa <kunia@istc.kiev.ua>


77577 01-Jun-2001 ru

- VFS_SET(msdos) -> VFS_SET(msdosfs)
- msdos.ko -> msdosfs.ko
- mount_msdos(8) -> mount_msdosfs(8)
- "msdos" -> "msdosfs" compatibility glue in mount(8)


77162 25-May-2001 ru

- sys/msdosfs moved to sys/fs/msdosfs
- msdos.ko renamed to msdosfs.ko
- /usr/include/msdosfs moved to /usr/include/fs/msdosfs


74815 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74531 20-Mar-2001 ru

Set the default manual section for sbin/ to 8.


68960 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


64100 01-Aug-2000 sheldonh

Use ${LIBDATADIR} instead of hardcoding /usr/libdata into the
${TABDIR} path.

PR: 17945
Submitted by: Benno Rice <benno@netizen.com.au>


62881 10-Jul-2000 kris

Don't call err with no format string.


57668 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


55983 14-Jan-2000 bde

Adjust paths after repository copy.


55616 08-Jan-2000 ache

Add Latin2 conversion table

Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>


55613 08-Jan-2000 ache

Allow #-comments in conversion table file


52055 09-Oct-1999 phk

mount* fixes from Martin Blapp <mb@imp.ch>:

Made mount more userfriendly (bad slashes are now filtered out)
and we remove in mount_nfs trailing slashes if there are any.

Fixed mount_xxx binarys to resolve with realpath(3)
the mountpoint.

Translate the deprecated nfs-syntax with '@' to ':' .
The ':' syntax has now precedence, but '@' still works.
Notify the user that the '@' syntax should not be used.

PR: 7846
PR: 13692
Submitted by: Martin Blapp <mb@imp.ch>
Reviewed by: phk


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48002 18-Jun-1999 jkh

This lets you specify "gemdosfs", "shortnames", "longnames", and
"nowin95" as arguments to the "-o" flag, as alternatives to "-G", "-s",
"-l", and "-9"; when running "mount_msdos" by hand, that doesn't let you
do anything you couldn't already do, but if you're letting "mount" run
it, it lets you specify those options, which is especially useful if,
for example, you have an entry in "/etc/fstab" for some file system,
with "noauto" set, so you can conveniently mount a DOS partition from a
removable drive and force it to treat the file system as VFAT rather
than boring old FAT.

Submitted by: Guy Harris <guy@netapp.com>


42534 11-Jan-1999 dt

Update to match rev. 1.28 of msdosfs_lookup.c.


37277 30-Jun-1998 charnier

Split usage string.


33941 01-Mar-1998 ache

Add more info about special characters in dos2unix/unix2dos tables


33771 23-Feb-1998 ache

Add more info about -W option


33770 23-Feb-1998 ache

Note that default local charset assumed as ISO 8859-1


33769 23-Feb-1998 ache

Implement loadable DOS<->local conversion tables for DOS names
Additionly load toupper table to create DOS names always in uppercase


33761 23-Feb-1998 ache

Implement loadable upper->lower local conversion table
Recently introduced -w renamed to -W


33759 23-Feb-1998 ache

Add missing DESTDIR


33749 22-Feb-1998 ache

Add loadable local<->Unicode conversion support for Win95 names
Note: DOS names still not work and require similar changes


33549 18-Feb-1998 jkh

Support for FAT32 partitions.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Obtained from: NetBSD


32645 20-Jan-1998 bde

Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.


31877 19-Dec-1997 bde

Fixed some FUD (don't blame current msdosfs for old msdosfs+vfs_bio bugs).


30622 21-Oct-1997 bde

Don't install mount_msdos setuid root. Lite2's mount(2) handles
permissions centrally and a setuid root mount utility just breaks
its security. There was no new breakage in practice because
mfdosfs_mount() still checks the ruid.


28731 25-Aug-1997 bde

Support all mount flags that are supported in the kernel.


24359 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23335 03-Mar-1997 bde

Updated mount_msdos to use the Lite2 getvfsbyname() interface.


22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


18286 14-Sep-1996 bde

Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.


15771 13-May-1996 wollman

One program I missed in removing MOUNT_* constants.


15034 03-Apr-1996 gpalmer

Add a small message to the ``CAVEATS'' section saying if you get the
warning about the root directory, then you could corrupt your filesystem
if you write to it. Someone, please, feel free to improve this :-)


4949 04-Dec-1994 bde

Fix another path that was broken by moving things to sbin/i386.


4677 19-Nov-1994 nate

NetBSD -> FreeBSD

(Poul, bring this into 2.0 please)


4065 01-Nov-1994 wollman

Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them. (It is now
possible to say

mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.) This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3). Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)


2999 22-Sep-1994 wollman

Automatically load NFS and a bevy of other filesystems.


2892 19-Sep-1994 dfr

Added mount_msdos.

Obtained from: NetBSD