xtraeme
eab7dadfb7
Xref mount_tmpfs(8).
2008-05-06 17:21:56 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
pooka
16170d27f6
Explain that nosuid,nodev is also needed for non-privileged mounts.
2007-08-01 08:51:24 +00:00
christos
7f593965ea
cast sizeof() to int for printf widths.
2007-07-17 23:56:01 +00:00
christos
a6e0a40b9f
kill MFSTYPENAME
2007-07-17 20:13:43 +00:00
hubertf
d8a2863966
- removes unused ctype.h header
...
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
hubertf
df06563bc3
Remove more duplicate #includes,
...
from Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:59:49 +00:00
elad
9b470b7708
Mention potential reasons for EPERM.
...
Requested by Anon Ymous.
2007-01-06 14:43:27 +00:00
mjf
a2be0ed655
Revert the changes I introduced trying to solve tmpfs' NFS export problem.
...
Requested by yamt@
2006-10-31 08:12:46 +00:00
mjf
84bd46b9f9
Add support to allow a file system to not permit being exported over NFS.
...
Approved by elad@ and wrstuden@
2006-10-24 21:53:10 +00:00
christos
2f9c53340f
sprinkle volatile.
2006-10-16 02:54:23 +00:00
wiz
730e1c55de
End sentence with a dot.
2006-09-27 17:42:34 +00:00
elad
fd2bf79719
Add a DIAGNOSTICS section, specifically to address the "Operation not
...
supported by device" error. Reference options(4). Bump date.
2006-09-25 20:07:17 +00:00
christos
c543e3e4ab
since yamt prohibits any flag with MNT_GETARGS, don't set MNT_UPDATE for
...
/ when we do getargs.
2006-05-04 19:38:50 +00:00
christos
0c9dfbbbdf
Coverity CID 1688: Fix memory leak.
2006-03-21 21:37:34 +00:00
rumble
e948e1b17f
Check for allocation failures in malloc, calloc, realloc, asprintf, and
...
vasprintf and try to handle them.
2006-03-17 15:53:46 +00:00
chs
899d1b31b2
convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
...
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
riz
288025ff2a
Bump date, use "file system" consistently, no hyphen in "soft
...
dependencies", and sort options under -o.
2006-02-03 22:50:21 +00:00
riz
efb16065b2
Note that softdep and async options can't be used together. From
...
Dheeraj S in PR#32211, wording and formatting changes by me.
2006-02-03 22:34:11 +00:00
christos
1098ee8a76
expose a_num.
2006-02-02 23:42:00 +00:00
reinoud
85b5a27e76
Crosslink mount(8) with mount_udf(8)
2006-02-02 16:24:09 +00:00
elad
9144e38e70
document port option; prompted by wiz@ :)
2006-01-13 09:34:46 +00:00
christos
2c6eadc9ce
Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
...
programs that did not compile before.
2005-06-27 01:00:04 +00:00
christos
a9274bf3fb
Don't abuse writing to const strings. We can pass const strings to this,
...
and we write to them. Allocate memory instead.
2005-06-26 21:43:33 +00:00
thorpej
65412a2710
Implement expansion of special "magic" strings in symlinks into
...
system-specific values. Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.
This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag. It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.
The following magic strings are supported by the implementation:
@machine value of MACHINE for the system
@machine_arch value of MACHINE_ARCH for the system
@hostname the system host name, as set with sethostname()
@domainname the system domain name, as set with setdomainname()
@kernel_ident the kernel config file name
@osrelease the releaes number of the OS
@ostype the name of the OS (always "NetBSD" for NetBSD)
Example usage:
mkdir /arch/i386/bin
mkdir /arch/sparc/bin
ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
lukem
6ac207736c
Fix core dump when doing
...
mount fileserver:/somepath
by not passing a NULL pointer to getfsfile(3).
(Bug was introduced in rev 1.74 as part of fix for PR 28644.)
2005-03-18 04:24:35 +00:00
dsl
6d840cfd52
Simplify a_uid and a_gid, and fix a_mask to actually use its argument
...
(fortunately it is always called with 'optarg')
Saves a few bytes from mount_msdos in rescue_tiny.
2005-03-03 21:15:26 +00:00
xtraeme
23bd8cd383
Kill __P(), use ANSI function declarations.
2005-02-05 14:44:46 +00:00
he
66369741ef
Move local variable declaration to variable declaration section at
...
top of function, and at least away from after active code within
a block. Fixes build problem with gcc 2 (for vax).
2005-01-31 14:18:08 +00:00
erh
897e5cc524
PR #28644 : Use realpath to make mount more forgiving of non-canonical
...
mount paths entered on the command line.
2005-01-31 02:32:35 +00:00
snj
654ad24a7f
New sentence, new line, Xref fsck(8), use Dq.
2004-12-08 01:22:00 +00:00
jdolecek
19d91c00f9
document reload option, description shamelessly stolen off ffs_reload()
...
comment
2004-12-07 21:38:58 +00:00
dsl
9ab983c04a
Add (unsigned char) cast to ctype function
2004-10-29 19:04:39 +00:00
thorpej
ef92b0de59
Try the DIOCGWEDGEINFO ioctl first. If that succeeds (i.e. the block
...
device is a wedge), use the partition type string from the dkwedge_info
structure to get the file system type.
2004-09-25 03:32:52 +00:00
christos
c7e7e2b5bf
Remove special case
2004-08-19 23:02:27 +00:00
christos
79455d444d
Handle RESCUEDIR
2004-08-19 23:00:22 +00:00
enami
15b3a40e8a
Print fsid on verbose printing. It is useful when debugging nfs.
2004-04-30 00:48:07 +00:00
hannken
f15d491175
Use PRIu64 to printf uint64_t. Compiles again on sparc64.
2004-04-22 10:17:00 +00:00
christos
330d7c9870
un-__P
2004-04-21 15:21:44 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
snj
2055aee33c
Bump date for last.
2004-03-27 19:22:28 +00:00
cgd
efddf99c99
Recognize 'from_mount' as the device, which is especially useful when
...
putting root on NFS. (From my PR, 20305.)
2004-03-27 06:11:48 +00:00
itojun
6379e11194
realloc pedant
2003-09-19 08:29:58 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
jdolecek
1edd42a9d2
move getmntopts(3) to libutil, build and install also it's manpage
...
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
tsutsui
b33c28a7f5
libutil (which was added for MNT_GETARGS) is no longer needed.
2003-01-19 12:37:41 +00:00
jdolecek
4a97217e59
do not link all mount programs into single image; the total size difference
...
isn't really that huge now that these are compiled as dynamic
2003-01-19 10:49:11 +00:00
wiz
5fc05bb384
removable with only two es, from Adrian Mrva.
2002-12-21 12:27:14 +00:00
wiz
d1a3cd19aa
Sort SEE ALSO.
2002-11-07 12:45:35 +00:00
christos
0261b4559e
PR/16688: Robert Elz: No way exists to use MNT_IGNORE (custom C code excepted)
2002-11-07 12:43:50 +00:00
wiz
b3000c7d7c
Use .Fl t instead of \fI-t\fP.
2002-10-01 13:49:15 +00:00
wiz
2fb4b1db52
New sentence, new line. By Robert Elz with minimal fixes.
2002-10-01 13:40:23 +00:00
jdolecek
d1bc9949f9
update incorrect comment - getmntopts.c _is_ used by mount(8)
2002-10-01 08:56:40 +00:00
enami
a1f7b117b6
Cosmetic changes.
2002-09-23 03:39:41 +00:00
enami
0dbc7886c7
Properly terminate the output from mount -v.
2002-09-23 03:35:22 +00:00
christos
b7d2f8ff04
make sure options is not NULL before we look in it. Thanks Charles.
2002-09-21 21:30:27 +00:00
christos
9f9ee29713
MNT_GETARGS support
2002-09-21 18:43:31 +00:00
taca
41ce843fd8
Remove extra tab in really an empty line.
2002-09-01 08:10:53 +00:00
lukem
f8df88f111
if RESCUEDIR is defined, set _PATH_RESCUE to that
2002-08-23 03:19:07 +00:00
lukem
8f87d6469c
if _PATH_RESCUE is defined, try that before _PATH_SBIN & _PATH_USRSBIN
2002-08-23 03:17:18 +00:00
lukem
7360d7b6ae
Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
2002-08-19 10:16:51 +00:00
nathanw
be856ef968
When attempting to guess the filesystem type from the disklabel, don't
...
consider a out-of-range partition letter at the end of the special
device node to be a fatal error; just return NULL and let the caller
fall back to FFS.
This fixes the "mount -u /kern/rootdev /" done by the script installer.
XXX this is still gross, and breaks things like
"mount /my/strange/dev/path/b /mnt". Perhaps it should stat the node
and use the minor number as an index instead?
2002-05-21 23:51:19 +00:00
lukem
9234db0acd
Improve mount_mfs examples. Inspired by [misc/16193] from
...
Brian A. Seklecki <lavalamp@hurt.spiritual-machines.org>
2002-05-21 11:17:57 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
christos
bcbaa46862
Use __MNT_FLAGS from <sys/mount.h> instead of rolling our own list. Also
...
when -v is used, print even the silent flags.
2002-01-30 21:40:31 +00:00
soren
dc53bf3cba
Sync getopt() / man page with actual getopt options.
2001-12-20 20:10:33 +00:00
wiz
0d862d5885
Drop empty lines and an unnecessary .Pp, sort sections.
2001-11-16 11:57:51 +00:00
wiz
4ce43ae0cd
Whitespace nits
2001-11-16 10:25:42 +00:00
gmcgarry
684c2af799
Prominently provide explanation of who is allowed to mount file
...
systems.
2001-09-12 21:48:08 +00:00
wiz
73f545bb5b
Drop arguments of .Os.
2001-06-05 11:22:41 +00:00
cgd
d7666f6c7f
use getprogname()
2001-02-20 23:22:49 +00:00
tsutsui
899149f1e5
Add x_mount, which does not include any MOUNT_PROGS.
...
Installer does not require all vfs progs and all binaries
are crunched after all.
2001-02-18 06:15:48 +00:00
christos
a84f9073c7
fix nested extern
2001-02-04 20:09:40 +00:00
cgd
09995c7b56
generated source should include stdlib.h and string.h for prototypes.
2001-01-16 02:37:35 +00:00
jdolecek
33e5945c93
also install mount_ufs manpage links
...
Fixes bin/11412 by Andrew Brown.
2000-11-02 18:02:16 +00:00
veego
3cae956077
Add a 'CLEANFILES+= checkname.c' to remove that file during a make clean.
2000-11-01 08:45:20 +00:00
enami
4952afaa4f
Factor out some function declarations into a header file.
2000-11-01 04:10:02 +00:00
enami
290c3a67ba
When failed to read disklabel to deduce filesystem type,
...
- don't warn. It's just too verbose when we know there is
no disklabel and want to use the default filesystem type.
- close the file descriptor so that further mount success.
2000-11-01 04:06:49 +00:00
enami
a56e1ec458
Cosmetic changes.
2000-11-01 04:01:45 +00:00
jdolecek
366b58f084
mount(8) now includes code for all mount_*(8) but mount_portal(8) and
...
mount_mfs(8); the mount_*(8) are hardlinked to mount (appropriate mount routine
is called depending on program name) - this saves approx. 1.7MB of /sbin
space
mount.c: make all local symbols static
2000-10-30 21:31:49 +00:00
jdolecek
3d64d110ca
fix copyright (damned copy&paste)
2000-10-30 20:58:20 +00:00
jdolecek
debb6d80a3
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
2000-10-30 20:56:57 +00:00
abs
5d868db883
When determining the filesystem type automatically, only try the raw device
...
for the disklabel if the given device fails with EBUSY. Also make disklabel
errors non fatal (just fall back to ffs as per pre-autofilesystem behaviour)
Based on further discussion with Launey Thomas <ljt@alum.mit.edu>
2000-10-11 17:56:05 +00:00
is
9979da6cbb
Format string cleanups by Bill Sommerfeld.
2000-10-10 20:24:49 +00:00
abs
5087b081db
When opening a partition to automatically determine the filesystem type,
...
always use the raw partition in case it is already mounted and this is
an 'update' mount. Patch from Launey Thomas <ljt@alum.mit.edu>
2000-10-02 18:52:47 +00:00
abs
7dea4938ea
If device and mountpoint are given without -t, and without a : in the
...
device, check the disklabel for filesystem type. Fall back to ffs as ever.
2000-09-18 10:48:23 +00:00
jhawk
f66c42de08
Xr for mount_overlay(8)
2000-07-30 15:17:14 +00:00
he
7ea7848d3c
Make sure .Dl has the line to be shown as argument (on same line).
2000-07-07 17:58:37 +00:00
fair
f7f2fe622e
Add example text to answer PR 10232.
2000-07-07 09:25:36 +00:00
fvdl
5422b85358
Enable and document the -o softdep option.
2000-06-15 22:36:07 +00:00
enami
3fdb4d7b11
If we didn't print an open paren, no need to print a closing paren
...
(by backing out part of previous commit).
1999-11-16 11:53:17 +00:00
fvdl
60f82a22ae
Print softdep information. Also print sync+async writes in verbose mode.
1999-11-15 19:20:58 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
jdolecek
cbac3515fc
xref mount_ntfs(8) in SEE ALSO
1999-08-08 04:40:18 +00:00
kenh
7171fafd1d
Add support for a new flag: "nodevmtime". This sets the MNT_NODEVMTIME mount
...
flag.
1998-12-01 23:20:43 +00:00
hubertf
df0d7ae70f
add mount_filecore to "see also"-list
1998-10-03 22:50:46 +00:00
mycroft
54bbb69ea1
Word the comments about `async' a bit more strongly.
1998-09-16 09:27:36 +00:00
ross
382f00edd8
Document noasync and nosync.
...
Clarify the meaning of sync.
Run all the -o keywords through the Cm (keyword emphasis) macro.
1998-09-14 03:48:30 +00:00
ross
029a64cc29
from Erik Bertelsen <erik@mediator.uni-c.dk>
...
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00