Home | History | Annotate | only in /src/sbin/mount_fdesc
History log of /src/sbin/mount_fdesc
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 10-Oct-1997  christos CFLAGS->CPPFLAGS
 1.8 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.7 06-May-1997  gwr Use .PATH.c: ...
 1.6 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.5 22-Dec-1994  cgd specify man pages the new way.
 1.4 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.3 12-Jan-1994  cgd update from jsp
 1.2 30-Jul-1993  mycroft Merge changes from netbsd-0-9 branch.
 1.1 28-Mar-1993  cgd branches: 1.1.1; 1.1.2;
merged version of mount_fdesc and mount_kernfs
 1.1.2.2 20-Jul-1993  cgd break mount_miscfs into mount_kernfs and mount_fdesc
 1.1.2.1 19-Jul-1993  cgd add man pages for mount_fdesc and mount_kernfs.
after things settle down, i've decided that these should be broken
out into their component programs again; combining them was a mistake...
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.16 30-Dec-2013  dholland Add crossreference to fd(4) as noted a while back in PR 45694. Bump date.
 1.15 31-Jan-2005  erh branches: 1.15.50; 1.15.56;
Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.13 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.12 16-Nov-2001  wiz Sort sections, use standard section headers.
 1.11 16-Nov-2001  wiz Whitespace nits
 1.10 05-Jun-2001  wiz Drop arguments of .Os.
 1.9 07-Mar-1999  mycroft Clean up SYNOPSIS formatting.
 1.8 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.7 15-Sep-1997  lukem * update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.6 17-Dec-1995  ghudson fdescfs now provides . and .. entries, so remove the comment about
them not being there.
 1.5 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.2 12-Jan-1994  cgd update from jsp
 1.1 19-Jul-1993  cgd branches: 1.1.1; 1.1.2;
add man pages for mount_fdesc and mount_kernfs.
after things settle down, i've decided that these should be broken
out into their component programs again; combining them was a mistake...
 1.1.2.2 19-Jul-1993  cgd add man pages for mount_fdesc and mount_kernfs.
after things settle down, i've decided that these should be broken
out into their component programs again; combining them was a mistake...
 1.1.2.1 19-Jul-1993  cgd file mount_fdesc.8 was added on branch netbsd-0-9 on 1993-07-19 23:49:28 +0000
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.15.56.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.50.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27 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.26 29-Aug-2011  joerg Use __dead
 1.25 31-Mar-2010  pooka initialize canon_dev
 1.24 31-Jul-2009  pooka convert to parseargs form
 1.23 31-Jul-2009  pooka Shortcircuit -o getargs in userspace. We know the kernel driver
will not return any data and mount(2) fails with EINVAL if data_len
is 0. This caused lame-o output in mount -vv:
mount_fdesc: fdesc on /failsystem: Invalid argument
 1.22 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.21 16-Jul-2007  pooka branches: 1.21.12; 1.21.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.20 14-Jul-2007  dsl Add additional 'sizeof args' parameter to mount(2).
 1.19 16-Oct-2006  christos use MOPT_NULL
 1.18 16-Oct-2006  christos c99 initializer
 1.17 21-Mar-2006  christos Always check the results of getmntopts() and free them.
 1.16 05-Feb-2005  xtraeme Kill __P(), use ANSI function declarations; WARNS=3.
 1.15 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.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.13 22-Mar-2003  jdolecek use <> rather than "" for #include mntopts.h
 1.12 21-Sep-2002  christos MNT_GETARGS support
 1.11 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.10 25-Jun-1999  perseant Regularize error reporting of mount_* commands for failure of mount(2)
to the form:

mount_xxx: dev on dir: reason for failure
 1.9 16-Sep-1997  lukem branches: 1.9.4;
resolve conflicts from lite-2 merge
 1.8 15-Sep-1997  lukem * update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.7 13-Apr-1996  jtc Add const qualifier to mopts table
 1.6 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.5 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.4 12-Jan-1994  cgd update from jsp
 1.3 24-Aug-1993  pk Initialized `mntflags'.
 1.2 30-Jul-1993  mycroft Merge changes from netbsd-0-9 branch.
 1.1 28-Mar-1993  cgd branches: 1.1.1; 1.1.2;
merged version of mount_fdesc and mount_kernfs
 1.1.2.1 20-Jul-1993  cgd break mount_miscfs into mount_kernfs and mount_fdesc
 1.1.1.2 16-Sep-1997  lukem imported from lite-2
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.9.4.1 05-Sep-1999  he Pull up revision 1.10:
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.21.16.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.21.12.1 28-Sep-2008  mjf Sync with HEAD.
 1.1 31-Jul-2009  pooka convert to parseargs form

RSS XML Feed