Commit Graph

86 Commits

Author SHA1 Message Date
sevan
20d2cbcc33 - 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.
2016-09-12 01:44:52 +00:00
jdolecek
76043b45b1 report also gmtoff in the output of mount options 2016-08-21 22:27:20 +00:00
mlelstv
c153503310 fix usage message 2016-02-06 10:35:58 +00:00
wiz
69be113f78 New sentence, new line. Bump date. 2016-01-30 10:13:02 +00:00
mlelstv
223c7df5b3 Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
tsutsui
1c2763589b Note mount_msdos -G option also allows mounting X680x0's Human68k floppies. 2012-11-16 15:00:18 +00:00
riz
1c8ef6d0ac 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.
2012-09-27 21:51:12 +00:00
wiz
369bd71deb Consistently spell MS-DOS with a hyphen. From Snader_LB. 2011-09-15 09:44:59 +00:00
pooka
c23e4f05d3 Don't -I from $S/sys. 2009-12-22 17:50:22 +00:00
pooka
96c1f4851b Mount from canon_dev instead of dev. 2009-10-07 20:34:02 +00:00
wiz
f8ab4d2651 New sentence, new line. 2009-01-24 10:45:44 +00:00
jmcneill
537c688f5b Note that empty filesystems are now treated as if they support long
filenames by default.
2009-01-23 12:48:49 +00:00
pooka
99fed7264c 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
2008-08-05 20:57:45 +00:00
pooka
8188a28971 Split option parsing into its own routine so that it can be used
by other consumers as well.
2008-07-29 16:05:05 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
pooka
704e075311 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.
2007-07-16 17:06:52 +00:00
dsl
7af7206539 Add additional 'sizeof args' parameter to mount(2). 2007-07-14 15:57:24 +00:00
hubertf
d8a2863966 - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
hubertf
df06563bc3 Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:59:49 +00:00
christos
5afd1c0a23 use MOPT_NULL 2006-10-16 03:37:42 +00:00
christos
7067dcb9a4 Always check the results of getmntopts() and free them. 2006-03-21 21:11:41 +00:00
jmmv
2a3e5eeb7c 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.
2005-09-23 12:10:31 +00:00
christos
2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
xtraeme
60fef07963 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:55:44 +00:00
erh
fdd16c549b Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
2005-01-31 05:19:18 +00:00
jmmv
0d52ea4901 Remove extra newline from usage message. 2004-01-05 23:27:16 +00:00
jmmv
b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz
0eba47bcd1 Sync usage with man page. 2003-09-08 07:21:59 +00:00
wiz
d234eaaab1 Sort options. 2003-09-08 07:21:51 +00:00
wiz
4ae63e1052 Bump date for previous. 2003-09-08 05:21:58 +00:00
itojun
ce112dfc4f add -t option for gmt time offset (normally MS-DOS filesystem has timestamp
in localtime, not GMT).  PR kern/22717
2003-09-07 22:09:11 +00:00
jdolecek
f462956915 bump date for last 2003-08-02 11:43:21 +00:00
jdolecek
28dd22899a actually enable MNT_GETARGS support 2003-08-02 11:42:20 +00:00
jdolecek
62e0ed44c8 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
2003-08-02 11:41:19 +00:00
christos
e6cde3e511 print masks and modes in octal. 2003-05-03 15:37:07 +00:00
jdolecek
1edd42a9d2 move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00
jdolecek
899bce0921 use <> rather than "" for #include mntopts.h 2003-03-22 11:15:45 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
c39c2e62d5 'NetBSD.org' and some mdoc fixes. 2003-02-14 16:21:47 +00:00
wiz
2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
christos
9f9ee29713 MNT_GETARGS support 2002-09-21 18:43:31 +00:00
lukem
7360d7b6ae Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 10:16:51 +00:00
wiz
875bfce8db Sort sections, use standard section headers. 2001-11-16 11:26:53 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
lukem
279552d3db 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
2000-11-07 06:43:24 +00:00
jdolecek
debb6d80a3 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
2000-10-30 20:56:57 +00:00
hubertf
26b6647470 Document the FAT types we support, and add a bugs section (suggested
by ws@netbsd.org).
2000-08-28 15:31:05 +00:00
deberg
31064c0014 use CURDIR where appropriate 2000-08-14 16:38:40 +00:00
cgd
db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00