Commit Graph

3088 Commits

Author SHA1 Message Date
fvdl 774a28f33f Correctly deal with directories that need indirect blocks by adding
some code I missed in the UFS2 commit. Should fix false positives
seen by fsck_ffs on clean filesystems.

Thanks to Takahiro Kambe for debugging help.
2003-04-09 12:49:28 +00:00
fvdl e06c710852 Swap the right blocks in an inode in the byteswapping case. 2003-04-08 14:59:52 +00:00
fvdl bbc00e975a Fix reverse test for UFS2 in the blks command. 2003-04-08 14:46:21 +00:00
fvdl 2812e7d837 Since the size passed in may be different from the fs blocksize, just
allocate a buffer each time instead of using a static one.
2003-04-08 10:02:23 +00:00
fvdl 0835d456dd dblk should be static. Fixes PR 21020, by Geoff Wing. Patch supplied
by him.
2003-04-08 09:16:19 +00:00
fvdl 253e7c6b6a Don't print the version of the argument structure, it's easily confused
with the NFS version.
2003-04-07 13:31:17 +00:00
wiz d0ca8fad45 Some casing changes, and use Er for EINTR. 2003-04-06 19:42:59 +00:00
fvdl 750ed85d47 Write update some old fields when writing the superblock, similar to
ffs_oldfscompat_write() in the kernel. Use the old totals when
time < old_time (i.e. an old kernel or fsck wrote the filesystem last).
When setting the date back on a new kernel, that works out ok, since
new kernels always update both fields.
2003-04-06 17:23:25 +00:00
lukem ea56af7b9d Tweak behaviour introduced in rev 1.50;
*	by default, warning messages go to stderr
    *	if -A or -a is used, send warning messages to stdout instead.

The behaviour in 1.50 meant that
	somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".

(This way, "sysctl -A | grep ..." is still useful.)
2003-04-06 05:19:03 +00:00
fvdl 8e4c90f49a Skip checks for old 4.2BSD filesystem; as it stands, we can't deal with
writing them. Could be fixed, but doesn't have a high priority.
2003-04-05 13:45:21 +00:00
wiz 9cdee53232 Some minor fixes from Soren Jacobsen in PR 21017. 2003-04-05 09:22:22 +00:00
wiz 52c7291619 Bump date. 2003-04-04 19:02:44 +00:00
perry aa62e15ec9 1) Remove a reference to a 30 second delay left when Ignatios
backed out a 30 second delay from the program.
2) Add a CAVEATS section noting that the command cannot and should not
   be stopped once started.
2003-04-04 18:13:47 +00:00
perry cf423b3982 1) To eliminate a race condition in which the user could conceivably
try to quit or stop the program right at the moment after the it
   sends a TSTP to init, move the kill(1, TSTP) to right after we
   block most signals, instead of doing it just before.
2) To add TSTP to the signals we ignore. Once we start halting, it
   really is not safe to try to stop at all. You can't change your
   mind halfway through -- init will already be stopped and a TERM
   will have been sent to everything on the system within
   milliseconds of starting.
3) Adjust one comment for TNF
2003-04-04 17:43:08 +00:00
fvdl 5f7172ed40 When fixing the cstotal structure, use the right size to copy it back.
Also, remove some accidentally committed debug code from the previous
commit.
2003-04-04 15:02:40 +00:00
fvdl 373feac024 Initialize cg_irotor correctly in newcg, to avoid false positives
for bad cylinder groups.
2003-04-04 13:45:21 +00:00
jdolecek 7e4ff06b35 install the example dot.nsmbrc
suggested by Masao Uebayashi and others, also in FreeBSD docs/35649
2003-04-04 07:50:43 +00:00
christos 628c00a0ec make this compile again. 2003-04-03 14:55:16 +00:00
wiz 4abefdc12f Sort options; mention -O default; grammar improvements; use more macros. 2003-04-03 14:50:35 +00:00
fvdl 645eff4a6f The -r option is no more, so delete it from the synopsis line too. 2003-04-03 14:26:11 +00:00
tron ef15ca7b9d Document extended "-O" option after UFS2 import. 2003-04-03 14:17:26 +00:00
jrf dee179a37f Made a note in the code about the -d and -d options brought up in
PR 18674. Thanks to Chris Jones for pointing it out.
2003-04-03 02:39:50 +00:00
he e75cb67772 On LP64 hosts, iswap64() result is "long int", so cast result to (long long)
before printing with %lld.
2003-04-02 22:27:09 +00:00
he bfd92e95d2 The new UFS2 code uses memset(), so include <string.h> for prototype. 2003-04-02 22:25:56 +00:00
dbj 2e948b5e58 On Apple UFS filesystems, change the default fragment size to 1024
and the default block size to 4096.  Issue a warning if values
are used that will not work on Darwin.
2003-04-02 20:48:13 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
fvdl 96757427c6 Fix range check for the default boot option case. 2003-04-01 19:39:13 +00:00
perseant acddf8ff0b Check inode free list tail pointer as well as head pointer, and write both
into the CLEANERINFO block of the Ifile as well as into the superblock.
Make preen update both superblocks.
2003-03-31 19:56:59 +00:00
wiz 0acfa3bb9e Consistently spell occurrence with two rs. 2003-03-29 22:48:37 +00:00
perseant f8b4df4569 Fix some accounting problems when preening, since preening skips phases
1-4 entirely.  Make preen run phase 0, since the Ifile is so important
and the test so quick.
2003-03-29 00:09:43 +00:00
perseant 42b9009195 Make vmsg non-static, so it can be used directly by fsck_lfs. 2003-03-28 08:12:38 +00:00
perseant ba10361ab2 Add working writing ability to fsck_lfs, including roll-forward, based on
a partial-segment writer ported from the kernel.
2003-03-28 08:09:52 +00:00
perry 1fbcf39738 do proper rounded packet loss calculations.
From Robert Elz in PR #20885
XXX This should be sent back to KAME
2003-03-27 16:15:44 +00:00
taca a89b208abd Since "host" is used when RRESTORE is defined, enclose variable definition
with "#ifdef RRESTORE" and "#endif".
2003-03-27 14:11:51 +00:00
lukem fb1a99ccf5 Remove "setgid tty" and references to utmp code from usr.bin/who. 2003-03-27 13:58:49 +00:00
lukem ec029d0aa9 Use "wall -g operator" (instead of private code) to broadcast() messages to
members of the operator group.
Don't install "setgid tty", and remove now unnecessary gid/egid swapping.
Remove utmp trawling code pulled in from usr.bin/who.
The Code is now simpler, and more portable (without the utmp cruft) too.

This is derived from similar work in OpenBSD.
2003-03-27 13:56:46 +00:00
elric 7687f10a7a Quick bugfix:
o  need to do keygen_filldefaults() in generate_convert no
	   matter what, not only if there are no existing keygen
	   methods in the new parameters.
2003-03-24 03:12:22 +00:00
elric 8c6033d202 substantial rototill of the code.
o  added new features:
		o  -G:  generate a new paramsfile that produces the same
			key as the old paramsfile,
		o  ffs verify_method,
		o  multiple keygen methods that are xor'ed together
		   (for n-factor authentication), and
		o  calibrating the iteration count of PKCS#5 PBKDF2 to
		   the current machine's speed.
	o  changed paramsfile format to allow for the new features.
	o  replaced open-coded parser with yacc grammar.
	o  lots of supporting changes.
	o  updated documentation to reflect new features and new
	   paramsfile format.
2003-03-24 02:02:49 +00:00
jdolecek ded9445270 no need for -I${MOUNT} & .PATH: ${MOUNT} now neither 2003-03-22 19:09:39 +00:00
tron 006d0d43aa Remove "getmntopts.c" from list of source files. getmntopts(3) is in
"libutil" now.
2003-03-22 15:34:44 +00:00
mrg af585b8553 bump .Dt [from wiz] 2003-03-22 15:26:38 +00:00
mrg f3b8a67c63 add a "-f configfile" option. the config file contains individual lines of
parameter=value pairs normally passed on the command line (# and \
continuation also works, yay fparseln), one per line.  now you don't have
to run a program with a password on the command line.
2003-03-22 14:38:15 +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
jdolecek 899bce0921 use <> rather than "" for #include mntopts.h 2003-03-22 11:15:45 +00:00
christos 34d0e11123 put this back. 2003-03-19 18:35:08 +00:00
christos f6bd12363e union moved. 2003-03-19 18:25:15 +00:00
wiz 3d147c386a Bump date for last change; new sentence, new line. 2003-03-19 10:37:55 +00:00
bouyer 4a3c894eef Fix 2 bugs:
- initialise stp when the bridge is turned up, without this stp will keep
  all interfaces disabled in a sequence like:
  brconfig bridge0 add if0 add if1 stp if0 stp if1 up
- s/BRDGSPRI/BRDGSIFPRIO in brconfig.c:cmd_ifpriority()

add a command (ifpathcost) to change the stp path cost of the STP path cost of
an interface. Display the interface path cost with the others STP parameters.
2003-03-19 10:34:33 +00:00
wiz 676e42ffce Consistent tab usage. 2003-03-17 08:00:38 +00:00
wiz 83de4abed2 Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00