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
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +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
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
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
lukem
8f87d6469c
if _PATH_RESCUE is defined, try that before _PATH_SBIN & _PATH_USRSBIN
2002-08-23 03:17:18 +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
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
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
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
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
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
kenh
7171fafd1d
Add support for a new flag: "nodevmtime". This sets the MNT_NODEVMTIME mount
...
flag.
1998-12-01 23:20:43 +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
enami
87b5ef1610
Add MNT_SYMPERM to optnames[].
1997-11-23 03:53:24 +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
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
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
145eccbda7
* getopt returns -1 not EOF
...
* use .Nm correctly
1997-09-15 04:09:06 +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
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
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
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