summaryrefslogtreecommitdiff
path: root/sbin/mount_filecore
AgeCommit message (Collapse)Author
2020-07-26Refactor remaining mount_* commands to use the common pathadj()mlelstv
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.
2011-08-29Use __deadjoerg
2008-08-05Refactor mount utilities to provide a mount_fs_parseargs() routine.pooka
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-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
(Tweak some to use a consistent format.)
2007-07-16Make all mount(2) return value error checks against -1. Some filepooka
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-14Add additional 'sizeof args' parameter to mount(2).dsl
2007-03-10- removes unused ctype.h headerhubertf
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/ From: Slava Semushin <php-coder@altlinux.ru>
2006-10-16use MOPT_NULLchristos
2006-03-21Always check the results of getmntopts() and free them.christos
2005-09-23Apply the NFS exports list rototill patch:jmmv
- 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-06-27Move WARNS=3 to the Makefile.inc, and add a little const to the remainingchristos
programs that did not compile before.
2005-02-05Kill __P(), use ANSI function declarations; WARNS=3.xtraeme
2005-01-31Fix PR#3617 and PR#3205: call realpath to convert mount points and paths toerh
device nodes into absolute paths before using them.
2004-06-25Sync usage with reality. Closes PR 25915 by Kouichirou Hiratsuka.wiz
2004-06-25Sort options; bump date.wiz
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-03-22move getmntopts(3) to libutil, build and install also it's manpagejdolecek
bump libutil minor adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22use <> rather than "" for #include mntopts.hjdolecek
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-01-06writable, not writeable.wiz
2003-01-02Sort sections.wiz
2003-01-01Fix tyops pointed out by Igor Sobrado in PR misc/19623:jschauma
mount_filecore(8) - frquently (frequently), upto (up to) mount_nfs(8) - NFSV3 (NFSv3), automaticly (automatically) mount_ntfs(8) - particularily (particularly), fisk (disk)
2002-10-01New sentence, new line. By Robert Elz with minimal fixes.wiz
2002-09-21MNT_GETARGS supportchristos
2002-08-19Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/pathlukem
2001-11-16Punctuation nit.wiz
2001-06-05Drop arguments of .Os.wiz
2000-10-30make the code includable into other programs:jdolecek
* 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-06-14fix up NetBSD RCS Ids to match the standard, and the leading comment ascgd
to match as well. No functional changes.
1999-06-25Regularize error reporting of mount_* commands for failure of mount(2)perseant
to the form: mount_xxx: dev on dir: reason for failure
1999-04-061, 2, 3 and.. 4!pk
1999-03-07Clean up SYNOPSIS formatting.mycroft
1998-08-14Add a description of the origin of filecore and what it is.mark
1998-08-14Add man page for mount_filecore.mark
1998-08-14Initial commit of mount_filecore used for mounting filecorefs partitions.mark