aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdosfs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few mandoc issuesGordon Bergling2020-10-091-1/+1
| | | | | | | | | | | - no blank before trailing delimiter - whitespace at end of input line - sections out of conventional order - normalizing date format - AUTHORS section without An macro Notes: svn path=/head/; revision=366572
* mount_msdosfs: do not fail mounts requiring locale name conversion tableEugene Grosbein2018-10-271-3/+4
| | | | | | | | | | | | | | that is already present in a kernel statically. For example, the command "mount_msdosfs -L ru_RU.KOI8-R" fails with error "mount_msdosfs: msdosfs_iconv: File exists" for a kernel having options LIBICONV and MSDOSFS_ICONV. After this change, it mounts successfully. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D16951 Notes: svn path=/head/; revision=339816
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Remove msdosfs -o large support.Konstantin Belousov2017-06-091-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | Its purpose was to translate the values for msdosfs inode numbers, which is calculated from the msdosfs structures describing the file, into the range representable by 32bit ino_t. The translation acted for filesystems larger than 128Gb, it reserved the range 0xf0000000 (FILENO_FIRST_DYN) to UINT32_MAX and remembered some arbitrary translation of ino >= FILENO_FIRST_DYN into this range. It consumed memory that could be only freed by unmount, and the translation was not stable across remounts. With ino_t type extended to 64 bit, there is no such issue and values can be returned without compaction to 32bit. That is, for the native environments, the translation layer is not necessary and adds significant undeserved code complexity. For compat ABIs which use 32bit ino_t, the vfs.ino64_trunc_error sysctl provides some measures to soften the failure mode when inode numbers truncation is not safe. Discussed with: bde Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319735
* Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actuallySevan Janiyan2017-04-031-2/+2
| | | | | | | | | | | | was the first release of an OS to ship with it. Heads up by Ingo Schwarze. Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D10209 Notes: svn path=/head/; revision=316464
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Amend history to mention predecessor originated from 386BSD[1] & current ↵Sevan Janiyan2016-10-031-13/+24
| | | | | | | | | | | | | | | | | | | implementation from NetBSD[2]. Reword history since the utility was renamed once more in FreeBSD 5.0. Separate out author & historical information regarding character code conversion. Add AUTHORS section. [1] https://groups.google.com/forum/#!search/mount_pcfs.c/comp.unix.bsd/9qhH0v1tZm0/inlPnXZj_2sJ [2] http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/mount_msdos/mount_msdos.c?rev=1.6&content-type=text/x-cvsweb-markup PR: 212536 Approved by: bcr (mentor) MFC after: 4 days Differential Revision: https://reviews.freebsd.org/D8105 Notes: svn path=/head/; revision=306611
* Mount msdosfs with longnames support by default.Alan Somers2016-09-231-8/+1
| | | | | | | | | | | | | | The old behavior depended on the FAT version and on what files were in the root directory. "mount_msdosfs -o shortnames" is still supported. Reviewed by: wblock, cem Discussed with: trasz, adrian, imp MFC after: 4 weeks X-MFC-Notes: Don't MFC the removal of findwin95 Differential Revision: https://reviews.freebsd.org/D8018 Notes: svn path=/head/; revision=306276
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge head@256284Simon J. Gerraty2013-10-131-5/+5
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * \ \ sync from headSimon J. Gerraty2013-04-121-4/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | Sweep man pages replacing ad -> ada.Sergey Kandaurov2013-10-011-5/+5
| |/ |/| | | | | | | | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only Notes: svn path=/head/; revision=255977
* | GC unused variables. Prefer NULL over 0 for pointers.Jung-uk Kim2013-03-051-4/+3
|/ | | | Notes: svn path=/head/; revision=247856
* Change checkpath() to not exit on error. This is a prerequisite forJaakko Heinonen2012-01-161-1/+2
| | | | | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version) Notes: svn path=/head/; revision=230226
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theUlrich Spörlein2010-05-131-6/+6
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=208027
* Remove reference to the bug in FreeBSD 2.0.Konstantin Belousov2010-01-021-8/+0
| | | | | | | | Submitted by: Valentin Nechayev <netch segfault kiev ua> MFC after: 3 days Notes: svn path=/head/; revision=201400
* ANSIfy almost all applications that use WARNS=6.Ed Schouten2009-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. Notes: svn path=/head/; revision=201227
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-1/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Add missing qualifier which was missed in the previous commit.Tom Rhodes2009-01-051-1/+1
| | | | | | | Noticed by: brooks Notes: svn path=/head/; revision=186768
* Document the "-o large" option.Tom Rhodes2008-12-231-1/+6
| | | | | | | PR: 129792 Notes: svn path=/head/; revision=186429
* Noticed the following error message:Warner Losh2008-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). Notes: svn path=/head/; revision=185422
* Pass "errmsg" to nmount(), so that if nmount() fails, we can getCraig Rodrigues2007-01-291-1/+3
| | | | | | | strings provided by vfs_mount_error(). Notes: svn path=/head/; revision=166326
* mount_msdosfs.c:Craig Rodrigues2006-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 Notes: svn path=/head/; revision=159128
* Fixing yet another regression introduced in rev1.37 by preserving cs_localTai-hwa Liang2005-12-011-0/+1
| | | | | | | | | | pointer such that local to DOS code page conversion with combined option '-L,-D' works again. Reviewed by: rodrigc Notes: svn path=/head/; revision=152974
* It turns out that set_charset() invokes build_iovec_argf() which modifiesTai-hwa Liang2005-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 Notes: svn path=/head/; revision=152809
* - Adding the missing 'W' option back which was accidentally removedTai-hwa Liang2005-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 Notes: svn path=/head/; revision=152731
* o Style: restore tab indentation mangled in the previous delta.Maxim Konovalov2005-11-141-5/+5
| | | | Notes: svn path=/head/; revision=152416
* Increase WARNS level to 6.Craig Rodrigues2005-11-131-1/+1
| | | | Notes: svn path=/head/; revision=152363
* Convert mount_msdosfs to use nmount().Craig Rodrigues2005-11-131-98/+76
| | | | Notes: svn path=/head/; revision=152362
* Xref msdosfs(5)Joel Dahl2005-09-141-0/+1
| | | | | | | Approved by: brueffer (mentor) Notes: svn path=/head/; revision=150134
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporseXin LI2005-06-101-1/+1
| | | | | | | of the macro. Notes: svn path=/head/; revision=147242
* Add a handy macro to represent null mount option, MOPT_NULL, and makeXin LI2005-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. Notes: svn path=/head/; revision=146853
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-12/+8
| | | | Notes: svn path=/head/; revision=141611
* NOSHARED -> NO_SHAREDRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139112
* Correct a style bug: remove a gratuitous space between ( and ".Tom Rhodes2004-08-311-1/+1
| | | | | | | Ok'ed by: fjoe Notes: svn path=/head/; revision=134565
* Remove support for gemdos, John removed it from the driver awhile ago.Tom Rhodes2004-07-081-8/+0
| | | | | | | Glanced at by: jhb Notes: svn path=/head/; revision=131835
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-05-171-14/+19
| | | | Notes: svn path=/head/; revision=129327
* Make msdosfs long filenames matching case insensitive again.Max Khon2003-12-081-8/+2
| | | | | | | | PR: 59765 Submitted by: Ryuichiro Imura <imura@ryu16.org> Notes: svn path=/head/; revision=123293