summaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdosfs/mount_msdosfs.c
Commit message (Collapse)AuthorAgeFilesLines
* GC unused variables. Prefer NULL over 0 for pointers.jkim2013-03-051-4/+3
|
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-161-1/+2
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* ANSIfy almost all applications that use WARNS=6.ed2009-12-291-7/+4
| | | | | | | 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.
* Noticed the following error message:imp2008-11-291-2/+6
| | | | | | | | | | | | 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).
* Pass "errmsg" to nmount(), so that if nmount() fails, we can getrodrigc2007-01-291-1/+3
| | | | strings provided by vfs_mount_error().
* mount_msdosfs.c:rodrigc2006-06-011-10/+0
| | | | | | | | | | | | | | - 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
* Fixing yet another regression introduced in rev1.37 by preserving cs_localavatar2005-12-011-0/+1
| | | | | | | pointer such that local to DOS code page conversion with combined option '-L,-D' works again. Reviewed by: rodrigc
* It turns out that set_charset() invokes build_iovec_argf() which modifiesavatar2005-11-251-6/+6
| | | | | | | | | | | | | 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
* - Adding the missing 'W' option back which was accidentally removedavatar2005-11-231-2/+2
| | | | | | | | in rev1.37. - Fixing a core dump inside build_iovec_argf by providing a !NULL format string to vsnprintf(3). Reviewed by: rodrigc
* o Style: restore tab indentation mangled in the previous delta.maxim2005-11-141-5/+5
|
* Convert mount_msdosfs to use nmount().rodrigc2005-11-131-98/+76
|
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporsedelphij2005-06-101-1/+1
| | | | of the macro.
* Add a handy macro to represent null mount option, MOPT_NULL, and makedelphij2005-06-011-1/+1
| | | | | | | | | | | | | | | | | | | 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.
* Correct a style bug: remove a gratuitous space between ( and ".trhodes2004-08-311-1/+1
| | | | Ok'ed by: fjoe
* Remove support for gemdos, John removed it from the driver awhile ago.trhodes2004-07-081-8/+0
| | | | Glanced at by: jhb
* Make msdosfs long filenames matching case insensitive again.fjoe2003-12-081-8/+2
| | | | | PR: 59765 Submitted by: Ryuichiro Imura <imura@ryu16.org>
* Fix several old bugs which got worse over time:trhodes2003-10-231-7/+9
| | | | | | | | | | 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
* Move prototypes into their function.trhodes2003-10-221-3/+1
|
* Make WARNS=2 build without error.trhodes2003-10-221-1/+1
|
* Add back the commas ',' in usage to avoid a garbled usage message.trhodes2003-10-221-2/+2
| | | | They were erroneously removed in revision 1.27.
* Describe '-M' in usage().fjoe2003-10-111-5/+7
| | | | | PR: 57462 Submitted by: Ryuichiro Imura <imura@ryu16.org>
* - Support for multibyte charsets in LIBICONV.fjoe2003-09-261-87/+109
| | | | | | | | - 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>
* Add a '-M mask' option so that users can have differenttrhodes2003-08-121-4/+18
| | | | | | | | | | | 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
* Now that the kernel is able to load modules itself,mux2002-08-031-13/+2
| | | | | | | | | | 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.
* o __P removedimp2002-03-211-6/+6
| | | | o main prototype removed
* - VFS_SET(msdos) -> VFS_SET(msdosfs)ru2001-06-011-7/+7
| | | | | | - msdos.ko -> msdosfs.ko - mount_msdos(8) -> mount_msdosfs(8) - "msdos" -> "msdosfs" compatibility glue in mount(8)
* - sys/msdosfs moved to sys/fs/msdosfsru2001-05-251-1/+1
| | | | | - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs
* Don't call err with no format string.kris2000-07-101-1/+1
|
* Allow #-comments in conversion table fileache2000-01-081-14/+46
|
* mount* fixes from Martin Blapp <mb@imp.ch>:phk1999-10-091-13/+11
| | | | | | | | | | | | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* This lets you specify "gemdosfs", "shortnames", "longnames", andjkh1999-06-181-2/+12
| | | | | | | | | | | | | "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>
* Split usage string.charnier1998-06-301-2/+4
|
* Implement loadable DOS<->local conversion tables for DOS namesache1998-02-231-13/+25
| | | | Additionly load toupper table to create DOS names always in uppercase
* Implement loadable upper->lower local conversion tableache1998-02-231-4/+23
| | | | Recently introduced -w renamed to -W
* Add loadable local<->Unicode conversion support for Win95 namesache1998-02-221-3/+35
| | | | Note: DOS names still not work and require similar changes
* Support for FAT32 partitions.jkh1998-02-181-3/+21
| | | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Obtained from: NetBSD
* Support all mount flags that are supported in the kernel.bde1997-08-251-1/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Updated mount_msdos to use the Lite2 getvfsbyname() interface.bde1997-03-031-11/+12
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-2/+2
| | | | | | 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.
* One program I missed in removing MOUNT_* constants.wollman1996-05-131-17/+21
|
* Add support for filesystem-specific `-o' options, and re-implement thewollman1994-11-011-2/+2
| | | | | | | | | | | | | | | | 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!)
* Automatically load NFS and a bevy of other filesystems.wollman1994-09-221-2/+11
|
* Added mount_msdos.dfr1994-09-191-0/+199
Obtained from: NetBSD
OpenPOWER on IntegriCloud