aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_unionfs/mount_unionfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Raise WARNS level to 6.Craig Rodrigues2007-02-131-1/+2
| | | | Notes: svn path=/head/; revision=166684
* Fix parsing of -o uid and -o gid options, so that -o uidxx and -o gidxxCraig Rodrigues2007-01-051-2/+2
| | | | | | | | | are not accepted. Submitted by: daichi, Masanori OZAWA <ozawa ongs co jp> Notes: svn path=/head/; revision=165788
* o Correct a function prototype.Maxim Konovalov2006-12-041-1/+1
| | | | Notes: svn path=/head/; revision=164875
* Many, many thanks to Masanori OZAWA <ozawa@ongs.co.jp>Craig Rodrigues2006-12-021-72/+105
| | | | | | | | | | | | | | | | and Daichi GOTO <daichi@FreeBSD.org> for submitting this major rewrite of unionfs. This rewrite was done to try to solve many of the longstanding crashing and locking issues in the existing unionfs implementation. This implementation also adds a 'MASQUERADE mode', which allows the user to set different user, group, and file permission modes in the upper layer. Submitted by: daichi, Masanori OZAWA Reviewed by: rodrigc (modified for minor style issues) Notes: svn path=/head/; revision=164829
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporseXin LI2005-06-101-1/+1
| | | | | | | of the macro. Notes: svn path=/head/; revision=147242
* Add a handy macro to represent null mount option, MOPT_NULL, and makeXin LI2005-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | use of the macro in sbin/mount*'s, by replacing: mopts[] = { MOPT_STDOPTS, { NULL } } With: mopts[] = { MOPT_STDOPTS, MOPT_NULL } This change will help to reduce the situation that we don't explicitly initialize "struct mntopt"'s. It should not contribute to any functional/logical changes as far as I can tell. Notes: svn path=/head/; revision=146853
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-1/+1
| | | | Notes: svn path=/head/; revision=141611
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Don't depend on namespace pollution in sys/mount.h andMaxime Henrion2002-08-131-0/+1
| | | | | | | include sys/uio.h. Notes: svn path=/head/; revision=101829
* Now that the kernel is able to load modules itself,Maxime Henrion2002-08-031-14/+3
| | | | | | | | | | | | | remove all the code which was trying to do so. This code was nasty in several ways, it was hiding the kernel bug where the kernel was unable to properly load a module, and it was quitting if it wasn't able to load the module. The consequence is that an ABI breakage of the vfsconf API would have broken *every* mount utility. Notes: svn path=/head/; revision=101270
* nmount'ify unionfs further by using separate options insteadMaxime Henrion2002-06-151-17/+17
| | | | | | | | | | of passing a flags mount options. This removes the include of sys/fs/unionfs/union.h in mount_unionfs as it should be. Reviewed by: phk Notes: svn path=/head/; revision=98266
* Convert mount_unionfs(8) to nmount.Maxime Henrion2002-05-241-10/+24
| | | | Notes: svn path=/head/; revision=97196
* o __P removedWarner Losh2002-03-211-2/+2
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Actually rename FDESC, PORTAL, UMAP and UNION file systems.Ruslan Ermilov2001-05-241-5/+5
| | | | | | | OK'ed by: bp Notes: svn path=/head/; revision=77133
* Rename (after a repo-copy) some mount(8) programs:Ruslan Ermilov2001-05-231-1/+1
| | | | | | | | | | | mount_fdesc -> mount_fdescfs mount_null -> mount_nullfs mount_portal -> mount_portalfs mount_umap -> mount_umapfs mount_union -> mount_unionfs Notes: svn path=/head/; revision=77042
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileRuslan Ermilov2001-05-231-1/+1
| | | | | | | | | | | | | | | | | | systems were repo-copied from sys/miscfs to sys/fs. - Renamed the following file systems and their modules: fdesc -> fdescfs, portal -> portalfs, union -> unionfs. - Renamed corresponding kernel options: FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. - Install header files for the above file systems. - Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland Makefiles. Notes: svn path=/head/; revision=77031
* mount* fixes from Martin Blapp <mb@imp.ch>:Poul-Henning Kamp1999-10-091-5/+3
| | | | | | | | | | | | | | | | | | | | Made mount more userfriendly (bad slashes are now filtered out) and we remove in mount_nfs trailing slashes if there are any. Fixed mount_xxx binarys to resolve with realpath(3) the mountpoint. Translate the deprecated nfs-syntax with '@' to ':' . The ':' syntax has now precedence, but '@' still works. Notify the user that the '@' syntax should not be used. PR: 7846 PR: 13692 Submitted by: Martin Blapp <mb@imp.ch> Reviewed by: phk Notes: svn path=/head/; revision=52055
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Protect against target containing a '%' which might be misinterpretedSteve Price1997-08-231-2/+7
| | | | | | | | | by err(3). PR: bin/3864 Notes: svn path=/head/; revision=28629
* Typo in previous change.Doug Rabson1997-05-231-1/+1
| | | | Notes: svn path=/head/; revision=26071
* Use realpath() on the source as well as the target otherwise it can beDoug Rabson1997-04-291-4/+8
| | | | | | | impossible to unmount a union which was mounted with a relative pathname. Notes: svn path=/head/; revision=25275
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* Merge from Lite2 (use new getvfsbyname() and mount(2) interface)Peter Wemm1997-03-111-8/+9
| | | | Notes: svn path=/head/; revision=23680
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-141-1/+1
| | | | | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong. Notes: svn path=/head/; revision=18286
* Get rid of the last vestiges of the old MOUNT_* constants in theGarrett Wollman1996-05-131-8/+11
| | | | | | | | | | | | mount_* programs. While we're at it, collapse the four now-identical mount programs for devfs, fdesc, kernfs, and procfs into links to a new mount_std(8) which can mount any really generic filesystem such as these when called with the appropriate argv[0]. Also, convert the mount programs to use sysexits.h. Notes: svn path=/head/; revision=15770
* Add support for filesystem-specific `-o' options, and re-implement theGarrett Wollman1994-11-011-1/+1
| | | | | | | | | | | | | | | | | | | most common cd9660 and nfs options like God intended them. (It is now possible to say mount -o ro,soft,bg,intr there:/foo/bar /foo/bar again.) This whole getmntopt() business is an incredible botch; it never should have been anything more than a wrapper around getsubopt(3). Because if the way the current hackaround is implemented, options which take arguments (like the old `rsize' and `wsize') are still unavailable, and must be accessed the new, broken way. (It's unimaginable how Berkeley managed to screw up one of the few things about NFS that Sun actually got right to begin with!) Notes: svn path=/head/; revision=4065
* Automatically load NFS and a bevy of other filesystems.Garrett Wollman1994-09-221-1/+10
| | | | Notes: svn path=/head/; revision=2999
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+140
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558