Home | History | Annotate | only in /src/sbin/mount_ados
History log of /src/sbin/mount_ados
RevisionDateAuthorComments
 1.14 26-Jul-2020  mlelstv Refactor remaining mount_* commands to use the common pathadj()
function for resolving paths.

Make pathadj() no longer warn about symlinks. Symlinks in /dev are
regularly used in several places like LVM . The warning was also
only visible when calling a mount_* command directly as mount(8)
itself would resolve the path witout warning before passing it to
a mount_* command.
 1.13 27-Jun-2005  christos Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
 1.12 05-Feb-2005  xtraeme Kill __P(), use ANSI function declarations; WARNS=3.
 1.11 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.10 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.9 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.8 01-Mar-1998  fvdl Merge with Lite2 + local changes
 1.7 10-Oct-1997  christos CFLAGS->CPPFLAGS
 1.6 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.5 06-May-1997  gwr Use .PATH.c: ...
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 18-Jan-1995  mycroft Clone from mount_msdos.
 1.2 22-Dec-1994  cgd specify man pages the new way.
 1.1 03-Jun-1994  chopps basically mount_msdos for now.
 1.19 30-Jul-2007  rumble branches: 1.19.18;
Rescue the subjunctive.
 1.18 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.17 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.16 14-Feb-2003  grant 'NetBSD.org' and some mdoc fixes.
 1.15 01-Oct-2002  wiz New sentence, new line. By Robert Elz with minimal fixes.
 1.14 16-Nov-2001  wiz Sort sections, use standard section headers.
 1.13 16-Nov-2001  wiz Whitespace nits
 1.12 05-Jun-2001  wiz Drop arguments of .Os.
 1.11 25-Feb-2001  is error code formatting
 1.10 25-Feb-2001  is Note that the ados fs is read-only, and that mount_ados falls back to
read-only mounts now.
 1.9 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.8 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.7 06-Apr-1999  pk branches: 1.7.6;
1, 2, 3 and.. 4!
 1.6 07-Mar-1999  mycroft branches: 1.6.2;
Clean up SYNOPSIS formatting.
 1.5 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.4 15-Sep-1997  lukem * cleanup for WARNS=1
* getopt returns -1 not EOF
* correct use of .Nm
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 18-Jan-1995  mycroft Clone from mount_msdos.
 1.1 03-Jun-1994  chopps basically mount_msdos for now.
 1.6.2.1 07-Apr-1999  pk Pull up from trunk: copyright text warts.
 1.7.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19.18.2 30-Jul-2007  rumble Rescue the subjunctive.
 1.19.18.1 30-Jul-2007  rumble file mount_ados.8 was added on branch matt-mips64 on 2007-07-30 05:00:56 +0000
 1.30 26-Jul-2020  mlelstv Refactor remaining mount_* commands to use the common pathadj()
function for resolving paths.

Make pathadj() no longer warn about symlinks. Symlinks in /dev are
regularly used in several places like LVM . The warning was also
only visible when calling a mount_* command directly as mount(8)
itself would resolve the path witout warning before passing it to
a mount_* command.
 1.29 29-Aug-2011  joerg Use __dead
 1.28 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.27 16-Jul-2007  pooka branches: 1.27.12; 1.27.16;
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.26 14-Jul-2007  dsl Add additional 'sizeof args' parameter to mount(2).
 1.25 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.24 17-Jan-2007  hubertf Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
 1.23 16-Oct-2006  christos use MOPT_NULL
 1.22 16-Oct-2006  christos c99 initializer
 1.21 21-Mar-2006  christos Always check the results of getmntopts() and free them.
 1.20 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.19 05-Feb-2005  xtraeme Kill __P(), use ANSI function declarations; WARNS=3.
 1.18 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.17 03-May-2003  christos print masks and modes in octal.
 1.16 22-Mar-2003  jdolecek use <> rather than "" for #include mntopts.h
 1.15 14-Feb-2003  grant 'NetBSD.org' and some mdoc fixes.
 1.14 21-Sep-2002  christos MNT_GETARGS support
 1.13 22-Feb-2001  is Silently fall back to read-only mounting, when we get EROFS.
We do not want to enforce read-only mounting (like mount_iso does)
because we want to write adosfs writing code eventually.
 1.12 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.11 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.10 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.9 25-Jun-1999  perseant branches: 1.9.6;
Regularize error reporting of mount_* commands for failure of mount(2)
to the form:

mount_xxx: dev on dir: reason for failure
 1.8 01-Mar-1998  fvdl branches: 1.8.2;
Merge with Lite2 + local changes
 1.7 16-Sep-1997  lukem update for new getmntopts() brought in from lite-2 merge
 1.6 15-Sep-1997  lukem * cleanup for WARNS=1
* getopt returns -1 not EOF
* correct use of .Nm
 1.5 13-Apr-1996  jtc Add const qualifier to mopts table
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 18-Jan-1995  mycroft Clone from mount_msdos.
 1.2 30-Jul-1994  chopps conditional floppy version remove uid/gid/mode options shrinks by ~70k
 1.1 03-Jun-1994  chopps branches: 1.1.2;
basically mount_msdos for now.
 1.1.2.1 03-Aug-1994  cgd from trunk.
 1.8.2.1 05-Sep-1999  he Pull up revision 1.9:
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.9.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.27.16.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.27.12.1 28-Sep-2008  mjf Sync with HEAD.

RSS XML Feed