History log of /netbsd-src/sbin/mount_null/mount_null.c (Results 1 – 22 of 22)
Revision Date Author Comments
# fd33bfb7 26-Jul-2020 mlelstv <mlelstv@NetBSD.org>

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

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.

show more ...


# 2b151ae5 25-Jul-2016 erh <erh@NetBSD.org>

Eliminate the distinct path check, since the paths don't actually need to be
distinct and allowing this makes certain useful tasks possible, such as
fixing an unpopulated /dev while a tmpfs is moun

Eliminate the distinct path check, since the paths don't actually need to be
distinct and allowing this makes certain useful tasks possible, such as
fixing an unpopulated /dev while a tmpfs is mounted over it.
However, require the paths to be different, as mounting a path directly over
itself has the side effect of causing any other mount points within that path
to no longer be accessible, and is difficult to unmount when done on /.

show more ...


# baa8e84b 29-Aug-2011 joerg <joerg@NetBSD.org>

Use __dead


# 6543a91f 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)


# 704e0753 16-Jul-2007 pooka <pooka@NetBSD.org>

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 s

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.

show more ...


# 7af72065 14-Jul-2007 dsl <dsl@NetBSD.org>

Add additional 'sizeof args' parameter to mount(2).


# 5afd1c0a 16-Oct-2006 christos <christos@NetBSD.org>

use MOPT_NULL


# 7067dcb9 21-Mar-2006 christos <christos@NetBSD.org>

Always check the results of getmntopts() and free them.


# 60fef079 05-Feb-2005 xtraeme <xtraeme@NetBSD.org>

Kill __P(), use ANSI function declarations; WARNS=3.


# fdd16c54 31-Jan-2005 erh <erh@NetBSD.org>

Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.


# 276d62f6 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.


# 899bce09 22-Mar-2003 jdolecek <jdolecek@NetBSD.org>

use <> rather than "" for #include mntopts.h


# 9f9ee297 21-Sep-2002 christos <christos@NetBSD.org>

MNT_GETARGS support


# debb6d80 30-Oct-2000 jdolecek <jdolecek@NetBSD.org>

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 compile

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

show more ...


# 7c564a9c 08-Jul-1999 wrstuden <wrstuden@NetBSD.org>

Update to new mount arguments.


# 8847804f 25-Jun-1999 perseant <perseant@NetBSD.org>

Regularize error reporting of mount_* commands for failure of mount(2)
to the form:

mount_xxx: dev on dir: reason for failure


# 0b2c959e 16-Sep-1997 lukem <lukem@NetBSD.org>

resolve conflicts from lite-2 merge


# 0965d12e 15-Sep-1997 lukem <lukem@NetBSD.org>

* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage


# 6397db2d 13-Apr-1996 jtc <jtc@NetBSD.org>

Add const qualifier to mopts table


# 0114e805 18-Mar-1995 cgd <cgd@NetBSD.org>

convert to new RCS Id conventions; reduce my headache


# 0924c7ec 13-Jun-1994 mycroft <mycroft@NetBSD.org>

Import 4.4-Lite version.


# 5922d844 08-Jun-1994 mycroft <mycroft@NetBSD.org>

Update from 4.4-Lite, with local changes.