aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_nullfs
Commit message (Collapse)AuthorAgeFilesLines
* mount_nullfs: rename a local variableAlan Somers2021-02-121-7/+7
| | | | | | | | | | | | | The "source" variable was introduced in r26072, probably as the traditional counterpart to "target". But the "source"/"target" names suggest the opposite of their actual meaning. With ln, for example, the source is the real file and the target is the newly created link. In mount_nullfs the meaning is the opposite: the target is the existing file system and the source is the newly created mountpoint. Better to use "target"/"mountpoint" terminology, which matches the man page. MFC after: 6 weeks Sponsored by: Axcient
* Remove the check that prevents creating "loops" from mount_nullfs(8).Edward Tomasz Napierala2020-10-251-20/+0
| | | | | | | | | | Reviewed by: kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26921 Notes: svn path=/head/; revision=367038
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Note the name change from mount_null to mount_nullfs in FreeBSD 5.0.Sevan Janiyan2016-10-031-2/+6
| | | | | | | | | | PR: 212541 Approved by: bcr (mentor) MFC after: 4 days Differential Revision: https://reviews.freebsd.org/D8105 Notes: svn path=/head/; revision=306612
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * sync from headSimon J. Gerraty2013-04-121-3/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=249429
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-081-23/+26
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | GC unused variables. Prefer NULL over 0 for pointers.Jung-uk Kim2013-03-051-3/+2
| |/ |/| | | | | Notes: svn path=/head/; revision=247856
* | Allow to specify "cache" and "nocache" as an option forKonstantin Belousov2013-01-031-23/+26
|/ | | | | | | | | | mount_nullfs(8). Tested by: pho MFC after: 2 weeks Notes: svn path=/head/; revision=245005
* Change checkpath() to not exit on error. This is a prerequisite forJaakko Heinonen2012-01-161-2/+4
| | | | | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version) Notes: svn path=/head/; revision=230226
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-1/+1
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* ANSIfy almost all applications that use WARNS=6.Ed Schouten2009-12-291-4/+2
| | | | | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application. Notes: svn path=/head/; revision=201227
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-1/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Add a missing .Pp call.Christian Brueffer2006-04-191-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=157877
* Remove scary warning, since nullfs works fine thesedays.Kris Kennaway2006-01-161-13/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=154418
* Bring mount_nullfs up to WARNS=6.Craig Rodrigues2005-11-212-8/+6
| | | | Notes: svn path=/head/; revision=152670
* 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
* Sort sections.Ruslan Ermilov2005-01-181-5/+5
| | | | Notes: svn path=/head/; revision=140415
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-13/+27
| | | | Notes: svn path=/head/; revision=131488
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-092-8/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* style.Makefile(5):Johan Karlsson2004-02-231-1/+1
| | | | | | | Use WARNS?= instead of WARNS=. Notes: svn path=/head/; revision=126178
* Correct an instance of an erroneous "it's".Ceri Davies2004-01-071-1/+1
| | | | | | | | | PR: docs/59937 Submitted by: Ada Lim <ada@bsd.org> MFC After: 1 day Notes: svn path=/head/; revision=124236
* The .Xr utilityPhilippe Charnier2003-02-051-2/+3
| | | | Notes: svn path=/head/; revision=110396
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-11/+11
| | | | Notes: svn path=/head/; revision=102231
* 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
* Small diffs that p4 didn't catch when I extractedMaxime Henrion2002-08-031-2/+1
| | | | | | | the diffs from my branch. Notes: svn path=/head/; revision=101275
* Now that the kernel is able to load modules itself,Maxime Henrion2002-08-031-13/+2
| | | | | | | | | | | | | 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
* The .Nm utilityPhilippe Charnier2002-07-061-3/+4
| | | | Notes: svn path=/head/; revision=99501
* Make mount_nullfs(8) use nmount(2) rather than mount(2) nowMaxime Henrion2002-05-231-5/+15
| | | | | | | that nullfs has been converted to nmount. Notes: svn path=/head/; revision=97187
* more file system > filesystemTom Rhodes2002-05-161-8/+8
| | | | Notes: svn path=/head/; revision=96707
* o __P removedWarner Losh2002-03-211-2/+2
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+2
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Spell "FreeBSD" with "F" and "BSD" in uppercase.Ruslan Ermilov2001-08-131-1/+3
| | | | Notes: svn path=/head/; revision=81588
* Remove whitespace at EOL.Dima Dorfman2001-07-151-16/+16
| | | | Notes: svn path=/head/; revision=79754
* Correct grammar.Dima Dorfman2001-07-011-2/+2
| | | | Notes: svn path=/head/; revision=79049
* Rename (after a repo-copy) some mount(8) programs:Ruslan Ermilov2001-05-233-10/+10
| | | | | | | | | | | 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-232-2/+2
| | | | | | | | | | | | | | | | | | 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