Commit Graph

71383 Commits

Author SHA1 Message Date
iedowse
60abcb00b0 Fix a bug in ufsdirhash_adjfree() that caused it to incorrectly
update the free-space statistics in some cases. The problem affected
directory blocks when the free space dropped below the size of the
maximum allowed entry size. When this happened, the free-space
summary information could claim that there are no further blocks
that can fit a maximum-size entry, even if there are.

The effect of this bug is that the directory may be enlarged even
though there is space within the directory for the new entry. This
wastes disk space and has a negative impact on performance.

Fix it by correctly computing the dh_firstfree array index, adding
a helper macro for clarity. Put an extra sanity check into
ufsdirhash_checkblock() to detect the situation in future.

Found by:	dwmalone
Reviewed by:	dwmalone
MFC after:	1 week
2002-03-11 19:13:22 +00:00
imp
9136e81d86 On FreeBSD make usb_proc_t the same as d_thred_t always. 2002-03-11 16:38:53 +00:00
phk
3c1100894c I missed one VOP_CLOSE in the previous commit.
Pointed out by:	bde
2002-03-11 16:27:04 +00:00
joe
57affa9748 Be more specific about when block major numbers disappeared from
the cdev switch.
2002-03-11 16:22:15 +00:00
murray
ab001f063e Add security/sudo to the list of packages for disc #1. sudo is small
(< 100k), has no dependencies, and is very popular.
2002-03-11 15:08:41 +00:00
phk
44066f813f As a XXX bandaid open the mounted device READ/WRITE even if we only mount
read-only.

The trouble here is that we don't reopen the device in read/write mode
when we remount in read/write mode resulting in a filesystem sending
write requests to a device which was only opened read/only.

I'm not quite sure how such a reopen would best be done and defer
the problem to more agile hackers.
2002-03-11 13:53:00 +00:00
murray
6ae4808f0c Update number of ports available. 2002-03-11 13:48:13 +00:00
maxim
ebc5fa3617 Remove duplicated yacc nonterminals declarations, sort includes.
No functional changes from rev. 1.31.

Reviewed by:	ru
Approved by:	ru
MFC after:	1 week
2002-03-11 11:48:55 +00:00
markm
5c060984bf Try harder to lint without nonstandard stuff. 2002-03-11 11:32:55 +00:00
markm
d2b419ab6f Punt to attic file that moved in latest import. 2002-03-11 11:28:56 +00:00
markm
283a853f3b Fix a prototype to match our headers. I am not convinced that doing
this in this file is the correct way round. (Maybe our definition of
__assert is wrong?)

Anyway, perhaps we should revisit this later. For the time being,
building lint libraries here does not blow up.
2002-03-11 11:26:17 +00:00
des
c39818027a Sparc64 support. 2002-03-11 11:23:48 +00:00
markm
c5636055d3 Fix silly one line error. (Half a .if statement left behind). 2002-03-11 11:20:45 +00:00
maxim
10546e9a48 Add a bunch of functions.
PR:		docs/32561
Reviewed by:	deischen, ru
Approved by:	ru
MFC after:	2 weeks
2002-03-11 10:45:18 +00:00
phk
652afdc501 Remove use of the bogus ioctl DIOCGPART.
It was used to initialize an unused variable, because ext2fs was
copy&pasted from UFS rather than copy,paste&cleaned from UFS.

Suggested by:	bde
2002-03-11 10:11:00 +00:00
mux
ca540b5c8a Simplify the interface cloning framework by handling unit
unit allocation with a bitmap in the generic layer.  This
allows us to get rid of the duplicated rman code in every
clonable interface.

Reviewed by:	brooks
Approved by:	phk
2002-03-11 09:26:07 +00:00
cjc
d4a3eb43e2 Don't protect savecore(8) from being run with a bad dumpdir
argument. Don't fail silently, but let savecore(8) make noise. It
won't behave badly, it doesn't need protection.

At the same time, allow the administrator to have dumpdev enabled
while dumpdir (savecore(8)) is disabled and document how to do it.

PR:		conf/35725
2002-03-11 08:47:02 +00:00
phk
c40f0c307f Add commented out GEOM line to NOTES 2002-03-11 08:27:23 +00:00
phk
10aae693f8 Add GEOM to conf/files. 2002-03-11 08:24:12 +00:00
phk
9f2c6e4d8b Augment struct bio for GEOM. 2002-03-11 08:20:22 +00:00
phk
cb97e771d3 Add a field to struct disk for GEOM 2002-03-11 08:17:40 +00:00
phk
e50dad3725 Make the disk_clone() routine more robust for abuse.
Sneak in a trivial bit of the GEOM stuff while we're here anyway.
2002-03-11 08:08:02 +00:00
phk
da8a92f424 Add the GEOM option. 2002-03-11 08:06:24 +00:00
phk
96492ebb6d Mark some arguments __unused. 2002-03-11 08:04:59 +00:00
luigi
58e09160d8 Make this compile again
Reported-by: Bruce Montague
2002-03-11 08:03:50 +00:00
luigi
b4df8285dc Make this compile again (increase MFS size, remove invalid option).
Reported-by: Bruce Montague
2002-03-11 08:03:07 +00:00
tanimura
d2ad7a5c28 Stop abusing the pgrpsess_lock. 2002-03-11 07:53:13 +00:00
tanimura
0908879b8c Do not lock the pgrpsess_lock exclusively across ttywait().
Spotted by:		David Wolfskill <david@catwhisker.org>
Investigated by:	rwatson
2002-03-11 07:51:08 +00:00
benno
a83c9e514b Correct a typo. (* that should've been &) 2002-03-11 07:09:42 +00:00
luigi
fa73596a0b Make the handling of machdep.guessed_bootdev compiled on i386 only. 2002-03-11 06:50:28 +00:00
obrien
a3a7c9d103 Due to changes in the handling of the #line directive by GCC(cpp) 3.1,
we must now explicitly list the source directory with -I.
2002-03-11 06:45:31 +00:00
luigi
4b00728153 Fix detection of existing ssh host key, generate the new one
in floppy.tree instead of mfs_tree.

Do not cleanup ${BUILDDIR}/floppy.tree, it might be useful to look
at it after an image has been built.
2002-03-11 05:54:22 +00:00
luigi
fd72c2f396 Make appropriate changes to use devfs.
Add a reference to the fd_size variable to set floppy size.
2002-03-11 05:46:18 +00:00
luigi
9c6656b1fc Default to ee as EDITOR (some apps such as disklabel default to "vi"
which is not available).
2002-03-11 05:42:14 +00:00
luigi
7e561d6f11 Use machdep.guessed_bootdev to guess the boot device. 2002-03-11 05:15:44 +00:00
obrien
a8034299f6 Add complete Sparc64 support.
Submitted by:	tmm

Dike out vax support.
2002-03-11 04:41:42 +00:00
obrien
28ac757fd3 * Support the Sparc64.
* Do not default to any particular platform.  Require that we explicitly
  support a particular platform.
2002-03-11 04:20:37 +00:00
dd
b4f60a5319 Make the diagnostics printfs less ugly. 2002-03-11 03:48:32 +00:00
tmm
5bf508faca Fix some bugs that would prevent %fsr to be set correctly, and add
support for fcmp and fcmpe instructions with a condition code
specification other than %fcc0.
This (primarily the first part) seems to fix a lot of problems that
people were seeing, e.g. perl and gawk failures.

Reported and analyzed by:	wollman
2002-03-11 03:18:17 +00:00
tmm
8823d6eea2 Account for <machine/fsr.h> no longer being usable for assembler code. 2002-03-11 03:13:02 +00:00
tmm
d0cfc41673 Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),
and make it PIC-aware.
2002-03-11 03:10:55 +00:00
simokawa
e07f1eb597 Add support for Simplified Direct Access Device in scsi_op_desc(). 2002-03-11 03:08:17 +00:00
tmm
604386aeca Fix the type of some constants, and make some macros safer by casting
the argument.
2002-03-11 03:04:28 +00:00
tmm
d65956bc41 Add convenience macros to extract the cc0 and cc1 from format 2 and 3
instructions.
2002-03-11 03:03:35 +00:00
tmm
7e46cbe6fa Save/restore the %y register around calls to the C user trap handler;
gcc emits the deprecated sparc v8 instructions that use this register
when optimizing for UltraSparc machines because they are apparetly
faster then their v9 counterpars there.
2002-03-11 02:53:03 +00:00
obrien
ca953d181c Wrong spelling of PIC.
Submitted by:	jake
2002-03-11 02:50:03 +00:00
dd
cc4ceb4151 Don't depend on ucred.h to include sys/queue.h for us. 2002-03-11 02:37:34 +00:00
tmm
ccc6553345 Use the pci_enable_* functions instead of manually fiddling with the
command register.

Pointed out by:	msmith
2002-03-11 02:37:19 +00:00
dd
df0f2a63e0 Belatedly add a release note about destaticizing and modulizing of
snp(4), and note MFC of watch(8) -f.
2002-03-11 01:37:54 +00:00
dd
353a5387c8 Chase sysctl name.
Submitted by:	Christopher Sharp <christopher_sharp@web.de>
2002-03-11 00:07:55 +00:00