Commit Graph

151 Commits

Author SHA1 Message Date
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
mycroft
b93acf4aaf const poisoning. 1998-07-26 20:02:36 +00:00
ross
d90f43feb2 Rewrite options and fstype handling for upgrade mounts. 1998-05-06 02:36:35 +00:00
fair
3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
enami
87b5ef1610 Add MNT_SYMPERM to optnames[]. 1997-11-23 03:53:24 +00:00
drochner
f153059f4d Add a clarification how the missing data are looked up if either
mount source or target are omitted. Adresses PR 3240.
XXX This is not the complete truth. Things change with the -u
option. Should be fixed in "mount.c".
1997-11-19 11:32:03 +00:00
cgd
1c9d9590f6 lint 1997-11-05 21:29:29 +00:00
drochner
3545748fee Take out last change (wait for mount_mfs completion).
I changed it in mount_mfs instead.
1997-11-01 18:38:29 +00:00
drochner
4cb160ce6c Fix a problem with asynchronous processing of mfs mounts: Calls to
statfs() or getmountinfo() did not tell about the freshly mounted
ramdisk.
XXX Imo, "mount_mfs" should not return before the mount is done.
This is the only place where this can be done cleanly. But this would
require a substancial restructuring of "newfs". For now, wait in "mount"
until the filesystem appears.
1997-11-01 15:32:06 +00:00
drochner
4ba76d86ad Fix a misbehaviour introduced in rev. 1.34 - mountfs() returned in
"verbose" mode after printing the exec args.
This invalidates most of my comment in the previous commit. (Not all,
there are still bogosities with mount_mfs.)
1997-11-01 14:21:53 +00:00
drochner
365365d512 When checking whether a filesystem is already mounted (for -a), get and
check all mounts (getmntinfo), not only the top one (statfs).
Otherwise we might miss lower level mounts on the same mountpoint.
XXX "mount" behaves differently with the "verbose" flag (-v) in some
cases, probably due to asynchronous calls to fs dependant mount programs.
1997-11-01 13:59:00 +00:00
mycroft
04b8837e23 Import modified mangle() from mount(8).
Also rewrite catopt() with a more sane interface.
1997-10-31 09:40:29 +00:00
enami
4589c896eb Conditionalize the recognition of symbolic link permission by
per fs mount option `symperm'.
1997-10-30 22:47:06 +00:00
christos
6255639603 PR/2974: VaX#n8: fix the rest of the problems that were not addressed by 4384.
- vfork exit -> _exit
 - debug and verbose consistency with fsck.
1997-10-29 19:41:24 +00:00
christos
4ec7993e91 PR/4384: Brian Grayson: Pass the real argv[0] to the exec'ed child.
Also while I am here, remove bogus XXX comment about mount_mfs.
1997-10-29 18:55:58 +00:00
enami
0d4522a03f Fix .Nm usage. 1997-10-20 09:11:16 +00:00
lukem
36323c1221 resolve conflicts from lite-2 import, with two major modifications
that require all of /sbin/mount_* and /sbin/umount to be modified:
* incorporate vfslist.c, adding checkvfsname() and makevfslist()
* getmntopts() now takes 4 args (adding int *altflagp)
1997-09-16 12:22:39 +00:00
lukem
f33b5a38b9 imported from lite-2 1997-09-16 09:03:30 +00:00
lukem
2ddc10a0ab define WARNS?=1 for all of sbin/* 1997-09-15 12:45:47 +00:00
lukem
145eccbda7 * getopt returns -1 not EOF
* use .Nm correctly
1997-09-15 04:09:06 +00:00
jtk
d92df69ca3 don't need getmntopts.c as part of mount(8) 1997-08-01 14:51:44 +00:00
christos
0d45b522a3 When we mount -u and there is no vfstype specified, deduce the vfstype from
statfs.
1997-07-30 03:45:27 +00:00
christos
599d8d864f Fix warnings. 1997-07-04 15:17:55 +00:00
pk
25ba5d6eb3 More accurate failure message for unknown filesystem types, as
suggested in PR#1274.
1997-05-31 09:27:57 +00:00
pk
d3f13c2f1c NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:36:35 +00:00
mikel
d2057dd292 add support for MNT_NOATIME; from Lennart Augustsson in PR bin/3304. 1997-03-10 03:59:53 +00:00
tls
d0c43309b5 add support for noatime mount flag 1997-01-30 09:52:26 +00:00
cgd
da8bebb896 document the 'nocoredump' mount option, which sets the MNT_NOCOREDUMP
mount flag, disabling core dumps on the file system.
1996-10-23 22:56:20 +00:00
cgd
fa1bf894fd recognize the 'nocoredump' mount option as a standard option (supported by
all file system types).
1996-10-23 22:51:08 +00:00
cgd
26902ec586 recognize MNT_NOCOREDUMP and print the 'nocoredump' flag for file
systems which have MNT_NOCOREDUMP set.
1996-10-23 22:50:05 +00:00
mrg
4db6918d7d fdesc file system does not allow files created in it. pr#941 1996-05-22 00:55:59 +00:00
cgd
9cd0c2cad7 Recognize all mount flags exported from the kernel (but only print the
ones that we used to print).  Note unrecognized flags(s) when printing
mount list.
1995-11-18 03:34:29 +00:00
jtc
1f3a168f04 Call mount_ffs instead of mount_ufs; PR #1379 1995-08-22 19:58:33 +00:00
cgd
3f9f3ddd4e update docs to match the code. 1995-07-12 06:23:21 +00:00
cgd
f03626292f fix a goof in my previous code, that i thought of while reading pr 749.
add a -A flag, which does the same thing as '-a', but doesn't check for
remounts.
1995-07-12 06:05:04 +00:00
cgd
723ca902ed remove FFS mounting code from mount(8); there are now _no_ 'internal' mount
types.  when using mount(8) with '-a', do _NOT_ remount file systems
that have been mounted once already.  (This cannot be 100% precisely
determined (thanks to mfs, union fs, and similar file systems which
don't use a 'real' mounted-from node), and changed options cannot be updated
with mount -a.  however, options wouldn't be updated with the old mount -a
anyway, and this solves several annoyances.
1995-07-12 03:45:09 +00:00
ghudson
92174a19ea Give an argument to the warning message for when realpath() fails. 1995-07-04 23:41:33 +00:00
cgd
a8973a1752 specify precision, not minimum field width. pointed out by John Kohl 1995-06-22 11:15:14 +00:00
cgd
3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
jtc
ec38846844 sys_siglist[] -> strsignal() 1995-05-28 05:25:34 +00:00
briggs
c8338a3451 Remove xref to mount_lofs and add xref to mount_ados and mount_msdos. 1995-04-30 20:42:12 +00:00
cgd
0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft
6d25129f1e Change type list code to match umount(8). 1995-01-30 17:22:42 +00:00
cgd
06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
cgd
a2fc49f975 compile against new headers 1994-12-18 16:01:13 +00:00
mycroft
41cfb13f6e Display type of mount; suggested by Thomas Eberhardt. 1994-08-29 02:38:00 +00:00
deraadt
e19b07b366 fix quotas 1994-06-24 07:32:01 +00:00
mycroft
16573e290b Import 4.4-Lite version. 1994-06-13 22:40:40 +00:00
mycroft
ccfa3742b5 Update from 4.4-Lite, with local changes. 1994-06-08 18:57:30 +00:00
cgd
2f067856cd allow external mount types, even if LETS_GET_SMALL 1994-04-18 06:15:08 +00:00
cgd
c49bfc05a9 oops, forgot one 1994-04-15 00:47:33 +00:00
cgd
5334ad51e1 fs type names, and much clean 1994-04-14 03:25:14 +00:00
cgd
acdf74915d update for new (actually old... *sigh*) mount flags 1994-01-05 08:32:10 +00:00
deraadt
df1ab8279c should bzero automatic sockaddr's before use 1993-12-05 13:26:52 +00:00
cgd
909ad08f8c there is no librpc any more 1993-10-08 00:51:12 +00:00
ws
053f138dae Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
1993-09-07 15:40:14 +00:00
mycroft
85fd4d583d Recognize noauto' (and auto', just for symmetry) in fstab. 1993-08-03 01:25:52 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd
cbdb50c1c1 incorporate changes from 0-9-base to 0-9-ALPHA 1993-07-28 00:56:43 +00:00
cgd
9c7a811a01 fixed NFSCLIENT problem. 1993-04-12 18:22:27 +00:00
cgd
06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd
346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00