Guido van Rooij
8f89943eda
Add generation number randomization. Newly created filesystems wil now
...
automatically have random generation numbers. The kenel way of handling those
also changed. Further it is advised to run fsirand on all your nfs exported
filesystems. the code is mostly copied from OpenBSD, with the randomization
chanegd to use /dev/urandom
Reviewed by: Garrett
Obtained from: OpenBSD
1997-03-23 20:08:22 +00:00
Mike Pritchard
d92630300f
Mdoc cleanup.
1997-03-19 22:42:02 +00:00
Peter Wemm
10e1c2d28a
patch up some "int *" vs. "time_t *" (long) mismatches. They could be
...
nasty if sizeof(int) != sizeof(long).
1997-03-18 20:02:18 +00:00
Peter Wemm
e3bed33cc9
Restore check for ridiculous directory sizes.
1997-03-18 19:53:54 +00:00
Peter Wemm
e457979c0d
Document the -a option in .Fl form instead of .Cm form to be consistant
...
with the rest of the manpage. (Lite2 documents it in getopt form, Lite1
did it in old-style arg format)
1997-03-15 06:23:57 +00:00
Peter Wemm
79aed3fe40
The -a option (autosize) option got mangled during the Lite2 merge.
...
Pointed out by: Tom Jackson <tom@peeper.jackson.org>
1997-03-15 05:32:40 +00:00
Bruce Evans
962cf4d335
Fixed bogus casts from (int32_t *) to (time_t *).
1997-03-13 17:56:25 +00:00
Peter Wemm
32f189ac7d
Kill the Lite2 early "filesystem clean abort" check and go back to
...
something closer to how we used to do it. The Lite2 way is to check the
"fsclean" flag in the superblock and stop there if so (during preen).
We now do the various superblock sanity checks that we used to do before
since it's cheap. We now get the filesystem state summary again instead
of "FILESYSTEM CLEAN; CHECKING SKIPPED" (or whatever).
1997-03-13 15:37:23 +00:00
Peter Wemm
01b21ff640
Reactivate fsdb
1997-03-13 12:46:17 +00:00
Peter Wemm
fd24d57d05
Missing $Id$
1997-03-13 12:44:53 +00:00
Peter Wemm
76863c5104
Make this compile. Mostly use the new names for the ctime/atime/mtime
...
stamps in the inodes and call one of fsck's utility funcs with a new arg.
1997-03-13 12:42:22 +00:00
Bruce Evans
0622cc3837
Fixed checking for a non-numeric minor number.
1997-03-12 19:03:40 +00:00
Joerg Wunsch
d048f017ad
Record num_eisa_slots if it could be found in the kernel.
1997-03-12 18:54:52 +00:00
Bruce Evans
74cf460b66
Finished (?) merging with Lite2: cleaned up #include mess; fixed merging
...
errors (mis-sorted prototypes, duplicated MNT_NOATIME, duplicated NULL
mntopts fixup).
Updated getopt() usage.
Fixed style bugs in FreeBSD changes (one or two per line for putfsent()
stuff).
1997-03-12 18:35:10 +00:00
Bruce Evans
51a5cf9064
Finished (?) merging with Lite2: cleaned up #include mess.
1997-03-12 17:01:11 +00:00
Bruce Evans
bb19997c02
Finished (?) merging with Lite2: cleaned up #include mess.
...
Fixed style bugs in FreeBSD changes.
1997-03-12 16:58:35 +00:00
Bruce Evans
a2c6443276
Finished (?) merging with Lite2: cleaned up #include mess and fixed a
...
style bug.
Removed a redundant declaration.
1997-03-12 16:53:31 +00:00
Bruce Evans
04aba25407
Finished (?) merging with Lite2: cleaned up #include mess.
...
Fixed misformatting in a comment.
1997-03-12 16:49:28 +00:00
Bruce Evans
473e3a9ab9
Finished (?) merging with Lite2: cleaned up #include mess.
...
Updated getopt() usage.
1997-03-12 16:46:32 +00:00
Bruce Evans
d97b1da168
Restored lost reference to fsdb(8).
...
Fixed weird quoting of $Id$.
1997-03-12 16:35:26 +00:00
Mike Pritchard
42deda5d1a
Add cvs Id.
1997-03-12 15:08:06 +00:00
Mike Pritchard
6bae29046e
Some minor mdoc cleanup. Partially based on PR# 2959.
1997-03-12 13:22:17 +00:00
Peter Wemm
d87d79aefe
Merge from Lite2
...
- cleanups,
- whiteout support
- bug fixes (chflags missing on a few file types etc)
The dump/restore folks would want to have a closer look at this, the
change is pretty big.
1997-03-11 12:55:19 +00:00
Peter Wemm
08966bd5fd
Merge from Lite2 (use new getvfsbyname() interface)
1997-03-11 12:51:00 +00:00
Peter Wemm
73421c42fb
Merge from Lite2 (but does not work)
1997-03-11 12:49:29 +00:00
Peter Wemm
75e2941193
Merge from Lite2:
...
- use new getvfsbyname() and mount(2) interface (mount_mfs)
- use new fs include files
- updated inode / cg layout calculations (?)
1997-03-11 12:48:17 +00:00
Peter Wemm
87564113d7
Merge from Lite2 (use new getvfsbyname() and mount(2) interface, cleanup)
1997-03-11 12:43:45 +00:00
Peter Wemm
4a4c52857e
Merge from Lite2 (use new getvfsbyname() and mount(2) interface)
1997-03-11 12:40:45 +00:00
Peter Wemm
b94d6bf4d7
Update to compile under Lite2
1997-03-11 12:38:16 +00:00
Peter Wemm
c06fe0a05e
Merge from Lite2
...
- use new getvfsbyname() interface and mount(2) interface
**DANGER WILL ROBINSON!!** You must be running a -current kernel
from within a week or so in order for this to work!
1997-03-11 12:28:00 +00:00
Peter Wemm
e7b6972097
Compile under Lite2 (unistd.h has proto for getopt)
1997-03-11 12:24:00 +00:00
Peter Wemm
b4f70931e0
Compile under Lite2 (getopt() is in unistd.h etc)
1997-03-11 12:23:09 +00:00
Peter Wemm
780a5c1ec1
Merge from Lite2. Note that Lite2 has it's own filesystem clean check
...
skipping code that overrides ours sooner. One should be eliminated,
but for now it works.
1997-03-11 12:20:21 +00:00
Peter Wemm
82b49328cd
Merge from Lite2 (does not work though)
1997-03-11 12:14:07 +00:00
Peter Wemm
9d1741b9da
Merge from Lite2
1997-03-11 12:12:26 +00:00
Peter Wemm
a37c38b8d8
Merge Lite2 changes (rather bigish, the dump/restore folks should check)
1997-03-11 12:09:50 +00:00
Peter Wemm
33aa65742b
Disable two newly broken dirs:
...
fsdb (too intimate with old fsck, needs work)
newlfs (doesn't build since Lite2 lfs wasn't merged into kernel)
1997-03-11 12:06:41 +00:00
Peter Wemm
39e5614a71
This commit was generated by cvs2svn to compensate for changes in r23669,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:59:39 +00:00
Peter Wemm
1811bdf372
Import some CSRG 4.4BSD-Lite2 components for sbin onto vendor branch.
...
(note that some of these have already been imported, this is a no-op)
1997-03-11 11:59:39 +00:00
Bruce Evans
92e2d9bed5
Attempt to import Lite2's mount.
1997-03-05 17:51:21 +00:00
Bruce Evans
2822751af3
This commit was generated by cvs2svn to compensate for changes in r23412,
...
which included commits to RCS files with non-trunk default branches.
1997-03-05 17:51:21 +00:00
Bruce Evans
a92d3ad246
Attempt to import Lite2's mount.
1997-03-05 17:51:21 +00:00
Bruce Evans
423f22330a
Force null termination after 2 errant strncpy()s.
1997-03-05 12:08:44 +00:00
Warner Losh
624ff93821
Fix typo introduced in 1.17.
...
Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1997-03-04 22:05:49 +00:00
Bruce Evans
8f86703906
Updated mount_msdos to use the Lite2 getvfsbyname() interface.
1997-03-03 13:23:54 +00:00
Warner Losh
1ffae4a6dd
Check the size of the IP address reutrned from gethostbyname2, per PR
...
2578 from Julian A. Likely not strictly needed, but it doesn't hurt
and protects ping against possible buffer overflows if the resolver
were to return large IP addresses.
1997-03-03 09:50:21 +00:00
Mike Pritchard
940783df47
An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5
...
man page was in better shape than the 3.0-current version,
so I'm committing the 2.2 version to 3.0. Whatever happened,
it was my fault :-).
1997-03-03 06:47:27 +00:00
John-Mark Gurney
50ceac8822
fix man page to use marcos instead of parens, quotes and braces
...
plus other minor fixes
1997-03-02 23:38:05 +00:00
John-Mark Gurney
f22592e760
mdoc'ify man page
1997-03-02 21:43:10 +00:00
Warner Losh
ee2bf73496
1) Minor nits in the usage message from bde. I took out the hard tabs and
...
used spaces to align the second line under the program name.
2) Cache uid after call to setuid(getuid()) so we don't waste a system call
for each packet with a call to getuid for the -v case.
3) Update manual to reflect new restriction on -l from last delta.
Suggested by: bde, Bill Fenner
1997-03-02 20:01:13 +00:00