Commit Graph

5778 Commits

Author SHA1 Message Date
christos
57ca898c48 remove ancient crap 2012-05-05 21:03:02 +00:00
tsutsui
56ed3d51fc Don't use "#if defined(__i386__) || defined(__x86_64__)" conditionals
in C source file to define option features.
Define proper options in each Makefile per ${MACHINE_ARCH} variable instead.

Previously if a host is x86 and it has /usr/mdec/mbr file in its system,
tools fdisk implicitly installs it as mbr bootcode even for !x86 targets.
2012-05-05 16:03:55 +00:00
jakllsch
ccce006c72 Bump date to date of previous change. 2012-05-02 15:42:58 +00:00
christos
7c8eec143a fix cast in local macro 2012-04-20 13:20:39 +00:00
mlelstv
4c4531d7b7 return exit code from mount_XXXX again 2012-04-09 15:50:20 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
cyber
05b3cc487c PR bin/45744
from Julian Fagir
Removing options that have had implementations removed.

-b: removed in -r1.4
-s: removed in -r1.2
2012-04-08 07:59:53 +00:00
christos
ba7ad7276d Don't re-use the same buffer that we pass in for newname in the cooked->raw
conversion. Better variable names.
2012-04-08 04:19:14 +00:00
christos
ca11e1e667 factor out rawname() from dump, fsck, savecore. 2012-04-07 16:44:10 +00:00
christos
8b15007246 add missing DPADD 2012-04-07 05:58:55 +00:00
christos
5727fadda2 use getfsspecname() 2012-04-07 04:52:20 +00:00
christos
338fb03101 use getfsspecname 2012-04-07 04:13:06 +00:00
christos
6ab6e47220 Accept NAME=label for special so that we can wire down our wedges. 2012-04-07 03:13:32 +00:00
christos
fe1ffb96a2 compile this for everyone, and warns=5 2012-04-06 22:42:50 +00:00
christos
788118e647 support sector sizes > 512. 2012-04-06 20:09:26 +00:00
christos
1b4e5840af don't print 2 lines of info, remove the bogus one. 2012-04-02 21:08:02 +00:00
njoly
5dfcab3622 Note that amd64 defaults to 32k read/write data size, just like i386. 2012-04-02 07:27:43 +00:00
joerg
6d6a95294e Avoid non-literal format string. Raise WARNS to 4 and disable
sign warnings instead.
2012-03-24 08:22:24 +00:00
njoly
af97374da1 Remove unexpected newline between Em macro and text. 2012-03-23 18:28:13 +00:00
wiz
89cc021f65 Bump date for previous. 2012-03-22 21:47:20 +00:00
drochner
364a06bb29 remove KAME IPSEC, replaced by FAST_IPSEC 2012-03-22 20:34:37 +00:00
he
1afead990d Convert from K&R to c89 function definitions. 2012-03-21 16:11:26 +00:00
matt
d8695ce615 Default to WARNS=5 2012-03-21 05:47:53 +00:00
riz
f76fc16550 Remove ${NETBSDSRCDIR}/sys/lib/libkern from .PATH; there are no
source files from there compiled.
2012-03-21 00:35:33 +00:00
matt
cf7ed4c9cc Convert to C89 function definitions 2012-03-20 18:50:30 +00:00
christos
c583007244 PR/43141: Tobias Nygren: Print an error on unknown interfaces. 2012-03-17 02:25:08 +00:00
christos
e101c08658 PR/42179: Christoph Badura: Be a little friendlier about missing args. 2012-03-17 02:13:44 +00:00
njoly
d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
christos
3ddbe03f5e PR/44961: Jukka Ruohonen: for sysctl's with built-in handlers, return OPNOTSUPP
if we don't have handlers instead of using the handler we have and silently
failing on attempts to write a node that cannot be written.
2012-03-11 23:33:00 +00:00
drochner
da4ea9e87f fix a path 2012-03-09 12:30:28 +00:00
tsutsui
50ccec61ff Stop zero'ing all possible superblock backup leftovers conservatively.
Instead, explicitly zap only possible first backups and FFS superblocks.

Fixes "Extreamly slow newfs_ext2fs on 60Gb USB stick" problem
reported by Aleksey Cheusov on tech-kern@.
2012-03-06 15:39:41 +00:00
wiz
f801d65453 Mention scan_ffs -b.
Based on a patch by Matthew Mondor <mm_lists@pulsar-zone.net> on
tech-userlevel.
Bump date.
2012-03-06 10:30:20 +00:00
jakllsch
68ceb36701 Prevent stack buffer overflow when copying too-large-CDB into request. 2012-02-21 02:22:54 +00:00
jakllsch
1355b3bb87 constify command data argument to scsi_command(). 2012-02-21 02:19:41 +00:00
wiz
ea95a8c187 Sort option descriptions a bit more. 2012-02-19 21:32:02 +00:00
christos
fd6f00f4bf PR/45735: Bug Hunting: The dump(8) manpage, as well as the program's `usage'-line,
needs improvement
2012-02-19 19:49:20 +00:00
perseant
ed08fe6512 Pass t_renamerace and t_rmdirrace tests.
Adapt dholland@'s fix to ufs_rename to fix PR kern/43582.  Address several
other MP locking issues discovered during the course of investigating the
same problem.

Removed extraneous vn_lock() calls on the Ifile, since the Ifile writes
are controlled by the segment lock.

Fix PR kern/45982 by deemphasizing the estimate of how much metadata
will fill the empty space on disk when the disk is nearly empty
(t_renamerace crates a lot of inode blocks on a tiny empty disk).
2012-02-16 02:47:54 +00:00
wiz
155b16958f Fix typo. 2012-02-14 11:05:32 +00:00
wiz
d2b212ea03 Remove unused variables.
From cppcheck via Henning Petersen in PR 46004.
2012-02-13 12:59:56 +00:00
christos
b678a11dc2 Only print errors when -A or required. Fix the error message to match others. 2012-02-12 20:54:07 +00:00
wiz
b3d989a54f Remove duplicate RS_LOCAL. From cppcheck via Henning Petersen in PR 46000. 2012-02-12 13:56:56 +00:00
tsutsui
d42cbdf611 Explicitly zap possible Ext2fs magic leftover to prevent
kernel vfs_mountroot() and bootloaders from mis-recognizing
the newfs(8)'ed file system as still Ext2fs.

The problem is reported and the fix is tested by Frank Wille
on current-users@.  Also approved by releng.
2012-02-07 14:14:45 +00:00
tls
7b0b7dedd9 Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.
2012-02-02 19:42:57 +00:00
perseant
2e80c2a7d9 When creating a very small filesystem, use well-known small segment,
block and fragment sizes by default instead of the ordinary 1M/8k/1k
default for larger filesystems.
2012-02-02 03:50:32 +00:00
perseant
8c0be006bf If invoked with -D and creating an image file, ensure that the image
file is filled to the given size.  This prevents false failures
with "lfs: ifile read: 22" in ATF tests.
2012-02-02 03:49:22 +00:00
nonaka
5295a64fde use FS_UFS[12]_MAGIC_SWAPPED instead of bswap32(FS_UFS[12]_MAGIC). 2012-01-29 00:58:13 +00:00
mbalmer
28c55e99d7 When ifconfig is invoked without any arguments, display the list of
all network interfaces (equivalent to ifconfig -a), instead of displaying
the usage.  (This is consistent with the behaviour on FreeBSD and OpenBSD.)
2012-01-28 15:01:44 +00:00
perseant
76c43fd1cf Use an even smaller segment size when creating a very small filesystem.
This allows the lfs_renamerace_dirs case of the t_renamerace test to
fail correctly, rather than with a bogus "file system full" error as it
has since rev 1.135 of sys/ufs/lfs/lfs.h.
2012-01-17 16:27:19 +00:00
wiz
bca510b70c Add -n to usage. 2012-01-17 08:22:09 +00:00