Commit Graph

4061 Commits

Author SHA1 Message Date
ginsbach a43fb90cb0 Fix macro NEXTADDR so that the names, like so_dst, are printed
rather than u.  The preprocessor doesn't do replacement within
strings, so the # string creation operator must be used.
2005-05-10 18:12:22 +00:00
martin 7b4b4385c1 Partly back out previous - do not free the linebuffer while still having
pointers into parts of it. Add a comment explaining why we prefer to
leak memory ;-)
Fixes PR bin/30174.
2005-05-10 06:49:10 +00:00
atatat 885dad801d If progress is disabled, don't clear the progress bar. 2005-05-10 00:39:04 +00:00
jmc 6e682c8cda Need -I. here as well so OBJDIR's work correctly in all cases 2005-05-06 21:51:21 +00:00
augustss 83ee25f9d4 Show an example of turning off auto repeat. 2005-05-03 13:26:25 +00:00
wiz f2944095c0 Fix a typo and add an s. 2005-05-03 11:57:11 +00:00
augustss e0b1c109ad Add an example for setting keyboard auto repeat rate. 2005-05-03 11:51:34 +00:00
yamt b954935865 bump date for the previous. 2005-05-02 15:37:06 +00:00
yamt 330cc0a11e split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx. 2005-05-02 15:34:31 +00:00
oster c10404e844 Cleanup the meter code a bit -- a bunch of stuff wasn't even being used.
Fix a few overflow issues.  (Thanks to beefy and pooka, among others)
2005-05-01 22:37:34 +00:00
lukem c0b68cb4cf Test USE_INET6 instead of MKINET6 for various apps.
Part of PR 30092 from Jukka Salmi.
2005-05-01 07:26:29 +00:00
christos ae0d3ab2e1 Remove stray " I" from message. 2005-04-30 20:29:56 +00:00
christos f77e3699c8 Dammit, get rid of the debugging abort() calls. It is no fun to have a broken
fsck program on a busted filesystem.
2005-04-30 20:24:32 +00:00
jmmv 8bdb487207 Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.
2005-04-30 16:38:21 +00:00
augustss ecf40361a8 Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
2005-04-29 16:51:33 +00:00
wiz e206009652 New sentence, new line; non-argument options before
options with arguments (in SYNOPSIS); use standard section headers;
describe example.
2005-04-25 11:47:37 +00:00
matt 0e46a38f38 Terminate variable argument list with NULL, not 0. 2005-04-25 01:33:03 +00:00
blymn 3c941b3ee9 Remove veriexec(4) man page. 2005-04-25 00:40:31 +00:00
blymn f83fbb398f Add bugs sub-heading to warn about whitespace in filenames. 2005-04-24 13:23:55 +00:00
blymn 05e15c389d Move veriexec(4) man page to correct place. 2005-04-24 13:14:50 +00:00
perseant a73b3b19ea Check parts of pass 5 even if only rolling forward. We can't check the true
segment holdings against the blocks held by the inodes, but we can still
check the cleanerinfo data against the segment table.
2005-04-23 20:21:03 +00:00
perseant 2f695b5476 Provide a resize_lfs(8), including kernel and cleaner support. The current
implementation requires the fs to be mounted while resizing.  Tested in both
directions, and everything appears to work happily, but ymmv.
2005-04-23 19:47:51 +00:00
wiz d95a3672e0 Grammar, wording, and punctuation improvements. Sort SEE ALSO. Remove some superfluous .Pp. 2005-04-22 14:44:09 +00:00
wiz 35bf4cd6e6 Add Xr to veriexec.4. 2005-04-22 14:37:10 +00:00
wiz bb1cbe5e1c Mention command names in SYNOPSIS; add gen_rmd160 to SEE ALSO;
improve formatting; bump date.
2005-04-22 14:35:13 +00:00
blymn de3e1bac97 Fix format type error in yyerror printf. 2005-04-21 13:37:44 +00:00
christos 7391aafa62 Minor cleanups, KNF, error handling consistency. 2005-04-21 12:45:12 +00:00
he 271cfff6d5 Make this compile again after the latest overhaul.
Use -I${.CURDIR} instead of -I. to support placement of objects elsewhere.
Make sure arguments to ctype functions are unsigned char by changing the
type of one function argument.
Fix "local declaration shadows global" warnings by renaming variables.
Fix printing of size_t variable to use %zu format instead of %u.
2005-04-21 11:21:58 +00:00
blymn 0b0178626c Add missing header file. 2005-04-21 00:27:35 +00:00
blymn 8387760ed1 Rototill of the verified exec functionality.
* We now use hash tables instead of a list to store the in kernel
    fingerprints.
  * Fingerprint methods handling has been made more flexible, it is now
    even simpler to add new methods.
  * the loader no longer passes in magic numbers representing the
    fingerprint method so veriexecctl is not longer kernel specific.
  * fingerprint methods can be tailored out using options in the kernel
    config file.
  * more fingerprint methods added - rmd160, sha256/384/512
  * veriexecctl can now report the fingerprint methods supported by the
    running kernel.
  * regularised the naming of some portions of veriexec.
2005-04-20 13:44:45 +00:00
wiz 29d2ffbe11 Sort SEE ALSO. 2005-04-19 11:04:34 +00:00
hannken 07417a9241 Fix copyright date for previous. 2005-04-19 08:10:43 +00:00
hannken 1f51c28099 Snapshot support for dump(8):
- New option `-x backup' takes the dump from a snapshot backed up by `backup'.
  The snapshot will be deleted on exit.

- New option `-X' as a synonym for `-x mountpoint' where `mountpoint' is the
  file system to be dumped.

Reviewed and Approved by: Manuel Bouyer <bouyer@netbsd.org>
2005-04-19 07:26:38 +00:00
tsutsui 0eb69997b3 Add a tweak to default value settings for a number of drive heads
and a number of sectors per track.

According to sys/fs/msdosfs/msdosfs_vfsops.c:msdosfs_mountfs(),
the kernel doesn't accept BPB with spt (sector per track) > 63
or hds (drive heads) > 255, so if values taken from disklabel
don't match these restrictions, use popular BIOS default values
(255/63) instead.
2005-04-16 14:40:36 +00:00
wiz 049635f546 Sync usage with man page. 2005-04-14 21:30:11 +00:00
wiz 21a2722f35 Quote a word that would otherwise be interpreted as macro;
increase width argument to .Bl so that all options fit.
2005-04-14 21:29:29 +00:00
wiz b4508f65fb Bump date for new -q; use Dq; capitalize NetBSD
in the usual way; new sentence, new line; some nits.
2005-04-14 21:26:11 +00:00
perseant 68db799864 Document "-f" (force check) flag. Implement and document "-q" (quiet). 2005-04-14 21:15:59 +00:00
perseant b0a56e6928 Take care preserving the integrity of the free list during roll forward.
Also, avoid freeing a deleted vnode twice when a file is remove during
roll forward.
2005-04-12 23:14:18 +00:00
martin 9edc493234 When creating an int hash value from pointer, go via intptr_t.
Fixes PR 29953.
2005-04-12 12:42:02 +00:00
wiz 5c35c1667a Improve formatting. 2005-04-12 11:50:29 +00:00
drochner e69243d0ea document the "security" command 2005-04-12 11:41:14 +00:00
drochner 48eac6e41a Implement a "security" command with subcommands to query the status of
the "security" extension and to "freeze" it. With the security extension
frozen, disk passwords cannot be set anymore, until the next hard reset.
Normally, this is the business of the BIOS, but older/buggy/embedded
BIOSes don't care. This leaves the (theoretical) possibility that a
malicious program in posession of superuser rights sets a disk password,
rendering the disk useless (or at least uneconomical to recover from).
Inspired by an article in the german "ct" magazine.
Being here, consolidate the implementations of IDENTIFY into one, and
fix an obvious alignment problem.
2005-04-12 11:40:46 +00:00
perseant 4c0e96afd6 Use the buffer cache improvements from fsck_lfs. Make it build again. 2005-04-12 01:06:39 +00:00
perseant 1d4cc6a17b Be more efficient with the hash tables for the buffer and vnode caches.
Note that roll-forward can add more inodes to the filesystem; don't overflow
the tables but reallocate them.
2005-04-11 23:19:24 +00:00
christos 8dba43fbdf Recognize more units and be more helpful when we enter bad units. 2005-04-07 21:27:44 +00:00
dsl 4118385742 Allow partition sizes to be input in GB 2005-04-07 20:23:13 +00:00
christos ad6c31cee3 PPR/29909: Manuel Bouyer: sysctl dumps core if kern.consdev returns unknown
device.  If we cannot determine the device name of the console, print the
console dev_t in hex.
2005-04-06 21:13:03 +00:00
perseant e6e33f374d Correct phase 0 message 2005-04-06 04:32:59 +00:00
perseant aafc65baa9 Note that fsck_lfs may not know beforehand whether a given block is a
superblock or a segment summary, and tries both.  These may be different
sizes.  Fix a broken assertion that they are the same size.

Fixes PR # 29151.
2005-04-06 02:38:17 +00:00
hubertf f3d4ac7cff Portuguese keyboards are supported to.
By Rui Paulo in PR 29884.
2005-04-05 12:17:17 +00:00
he 2d66b2737e Move the definition of simple_lock() and simple_unlock() to a common
header, since more of the LFS macros now use these functions.  Since
we're outside of the kernel, these are defined to be empty.
2005-04-01 23:45:59 +00:00
abs 446520f017 Fix typo 'and the go' -> 'and then go' 2005-04-01 20:40:17 +00:00
xtraeme a3d534b973 tabify 2005-03-31 15:55:57 +00:00
wiz 0f210657f7 Add -i to SYNOPSIS. 2005-03-31 11:43:14 +00:00
xtraeme 51a4a28d70 Add -i option, it's just the same than -f in lfs_cleanerd(8), ok'ed
thorpej@.
2005-03-31 03:07:38 +00:00
elric 1cdd98012f setprogname(3) needs to come before calls to err(3). 2005-03-30 20:59:34 +00:00
elric 6230b2ec40 Lock all memory. 2005-03-30 19:56:05 +00:00
elric 646d61aa58 one more malloc -> emalloc. 2005-03-30 17:17:51 +00:00
christos f8ce51d45f Centralize error checking for malloc,calloc,strdup. 2005-03-30 17:10:18 +00:00
elric 2dcfc0c616 Turn off core dumps. 2005-03-30 15:45:56 +00:00
hubertf 7f4783a74b Xref mscdlabel(8) - it may be useful. Bump date. 2005-03-29 01:24:10 +00:00
christos 7a221682eb make sysctl -n print the real console tty name and -nn print the numeric
value.
XXX: -n means don't print name, not numeric. We should stop overloading
it and use a different flag.
2005-03-28 04:03:13 +00:00
perseant 7f73a7b740 "#define lfs_devvp lfs_unlockvp" for readability, since that's what we
use it for in fsck_lfs/newfs_lfs.
2005-03-25 20:17:58 +00:00
perseant dcba0206d6 "#define lfs_devvp lfs_unlockvp" for readability, since that's what we
use it for in fsck_lfs/newfs_lfs.
2005-03-25 20:16:37 +00:00
perseant 3118a7b178 Make fsck_lfs optimize the inode free list, if it appears to have become
too disordered.  This should improve file creation speed on aged filesystems.
Include code to disorder the list for debugging purposes, though this is
of course not compiled in by default.
2005-03-25 20:14:43 +00:00
atatat 0f48b53686 If a "create" or "destroy" operation succeeds, mark the cached tree as
"stale" so that the next time we try to read or write to it, we can
purge (and refresh) it.

Addresses PR 29222.
2005-03-23 03:45:25 +00:00
yamt 89b983894d remove IFFBITS definition. now net/if.h has it.
PR/29748 from FUKAUMI Naoki.
2005-03-20 15:34:47 +00:00
yamt 5e26e86d45 add a reminder comment for x_ifconfig. 2005-03-20 14:24:13 +00:00
thorpej be8f682caf IFFBITS and IFCAPBITS are now defined in <net/if.h> 2005-03-20 02:51:47 +00:00
thorpej d14cc8f89c Remove an #ifdef that is no longer necessary. 2005-03-20 02:44:50 +00:00
thorpej f76f47a0df Don't build af_inet6.c if USE_INET6 is no. 2005-03-20 02:44:25 +00:00
thorpej e00adb14b6 Split the IPv4 support into its own file. 2005-03-20 02:43:50 +00:00
thorpej 20f1388354 Move a comment. 2005-03-20 01:10:51 +00:00
thorpej 26dbe00d59 Split IPv6 support out into its own file. 2005-03-20 01:09:16 +00:00
thorpej 4fd9a96b1d Split OSI support off into its own file. 2005-03-20 00:02:58 +00:00
thorpej e7c8ca2ae5 Split XNS support into its own file. 2005-03-19 23:46:03 +00:00
thorpej acdfacb1c3 Split off AppleTalk support into its own file. 2005-03-19 23:32:55 +00:00
atatat 160438234d Fix possible segmentation fault when retrieving descriptions. Thought
I committed this a while ago.  I guess the fact that no one filed a pr
meant no one else found it.  :)
2005-03-19 23:19:17 +00:00
thorpej c6266968d5 const'ify afswtch 2005-03-19 23:16:55 +00:00
thorpej 1a5470cfdd Split off 802.11 interface handling into its own file. 2005-03-19 23:13:42 +00:00
thorpej 519737e8ff Don't hare-code inet/inet6 in tunnel_status(), lookup the address family
name instead.
2005-03-19 22:57:06 +00:00
yamt 1ba14738a5 make this compilable with USE_INET6=no. 2005-03-19 18:16:06 +00:00
thorpej e6d38785ff Split tunnel support into its own file. 2005-03-19 17:32:26 +00:00
thorpej 21117c1aaf name -> ifname (avoid shadow decl with global name[]). 2005-03-19 17:31:48 +00:00
thorpej 1054956d85 Move extern decls to extern.h 2005-03-19 03:56:06 +00:00
thorpej 0fded9bea2 Split VLAN configuration bits out into a separate file. 2005-03-19 03:53:55 +00:00
perseant 9740d8d0b2 Buffer cache fixes: make sure we initialize all the hash lists, and allow
the cache to grow in size irrespective of how many buffers may be in the
locked queue, since we can't write those in any case.  Prevents fsck_lfs
from spinning when it has too much to write.
2005-03-19 00:43:17 +00:00
yamt 712c784484 update usage() for agr(4). pointed by Thomas Klausner. 2005-03-18 14:30:08 +00:00
wiz f2636e2d3d Link to vlan(4) too, suggested by yamt. 2005-03-18 14:18:06 +00:00
wiz 2fa6ad9b68 Bump date for agr; add agr(4) to SEE ALSO. 2005-03-18 12:43:56 +00:00
yamt 5240b887db add agr(4), a pseudo network device driver for link aggregation. 2005-03-18 11:11:50 +00:00
atatat 64dd54edba Use regexes instead of static lists of annoying numbers to recognize
sysctl nodes that have "helpers".  This is more concise, imho more
easy to understand, and has the added bonus of making it *possible* to
assign helpers to dynamically numbered nodes.
2005-03-18 04:52:24 +00:00
lukem 6ac207736c Fix core dump when doing
mount fileserver:/somepath
by not passing a NULL pointer to getfsfile(3).
(Bug was introduced in rev 1.74 as part of fix for PR 28644.)
2005-03-18 04:24:35 +00:00
xtraeme 83d6c074cb Bump the number of inodes to 1024 in the MFS case, needed to
create more devices in the ramdisk images, ok'ed by thorpej@.
2005-03-15 23:43:50 +00:00
atatat 6472d0c335 Make requestors of kern.file2 be referred to pstat (the same as
kern.file) and add EINVAL to the list of errno values which are
silently ignored when walking the tree.
2005-03-15 13:59:35 +00:00
christos 192c2eccf6 Add -lcrypt where -lcrypto is specified. 2005-03-09 03:11:22 +00:00
matt 57537259e8 Add ifconfig support for TCP Segment Offload 2005-03-06 00:13:36 +00:00
dsl 6d840cfd52 Simplify a_uid and a_gid, and fix a_mask to actually use its argument
(fortunately it is always called with 'optarg')
Saves a few bytes from mount_msdos in rescue_tiny.
2005-03-03 21:15:26 +00:00
wiz 0a22669b85 Bump date for previous. 2005-02-28 22:03:05 +00:00
oster 3202ca277a Add a few more lines about the 'Parity status:' output of 'raidctl -s'.
This should address PR#29540.
2005-02-28 20:37:14 +00:00
uwe 410c49bf05 Support backlight, brightness and contrast wsdisplay paramteres.
Useful for hpc* ports.
2005-02-27 15:26:16 +00:00
perseant 5d2f3e4908 Various minor LFS improvements:
* Extend the lfs library from fsck_lfs(8) so that it can be used with a
  not-yet-existent LFS.  Make newfs_lfs(8) use this library, so it can
  create LFSs whose Ifile is larger than one segment.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
  -n flag.
2005-02-26 05:45:54 +00:00
manu be15b99c92 Define SADB_X_EALG_AESCBC=SADB_X_EALG_AES, as we define SADB_X_EALG_AES
in <net/pfkeyv2.h> while ipsec-tools uses SADB_X_EALG_AESCBC in the code.
2005-02-24 13:45:08 +00:00
thorpej df9803ce96 Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.
2005-02-21 00:29:06 +00:00
christos 6cc7a7474f Skip empty lines, and free the line buffer so that we don't leak. 2005-02-19 20:50:26 +00:00
christos 5422e51834 PR/29457: Joachim Kuebart: pppoectl's config file does not allow # in passwords
Fixed, by passing FPARSELN_UNESCALL in parsing.
2005-02-19 18:26:09 +00:00
thorpej c5aea678b7 Additional cleanup pass. 2005-02-19 16:58:26 +00:00
thorpej 354f2a1004 Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
2005-02-19 16:55:02 +00:00
xtraeme 0b39b8da10 Kill __P(), use ANSI function declarations. 2005-02-17 15:17:44 +00:00
xtraeme f224c38b66 Kill __P(), use ANSI function declarations. 2005-02-17 15:00:33 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
ws d53c382dbf Add support for large files (>2GB).
Allow conversion of old filesystems to use this,
if they are already at revision 1.

There probably should be an option to turn revision 0 to revision 1.

Reviewed (in part) by Manuel (bouyer@).
2005-02-09 22:55:45 +00:00
xtraeme 831d2b827b Kill __P(), use ANSI function declarations. 2005-02-09 14:31:29 +00:00
xtraeme f0121f1f1b Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-09 14:21:37 +00:00
xtraeme 39707ce809 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-09 14:09:46 +00:00
xtraeme a8d83732cf Kill __P(), use ANSI function declarations, constify; WARNS=3. 2005-02-09 13:57:57 +00:00
xtraeme 0b95ea2d66 WARNS=3. 2005-02-09 06:26:13 +00:00
xtraeme f7f1785232 Kill __P(), use ANSI function declarations, constify; WARNS=3.
Reviewed by mrg@.
2005-02-09 05:51:38 +00:00
perry 5c9f370160 remove obsolete "register" declarations. 2005-02-06 06:13:47 +00:00
perry 251f7f5990 ANSIfy a function declaration, remove obsolete "register" declarations. 2005-02-06 06:13:12 +00:00
perry 72f1c263c6 ANSIfy a function declaration, remove obsolete "register" declaration. 2005-02-06 06:07:12 +00:00
xtraeme 60fef07963 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:55:44 +00:00
xtraeme 77bf707374 ll __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:54:35 +00:00
xtraeme 816b5578c8 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:47:18 +00:00
xtraeme 23bd8cd383 Kill __P(), use ANSI function declarations. 2005-02-05 14:44:46 +00:00
xtraeme 8a489f424f Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:35:25 +00:00
xtraeme b64027cd07 Kill __P(), use ANSI function declarations. 2005-02-05 14:33:50 +00:00
xtraeme e4e811215a Kill __P(); 2005-02-05 14:26:05 +00:00
xtraeme bd95a8e7af Kill __P(), use ANSI function declarations. 2005-02-05 14:23:24 +00:00
xtraeme 69cbd40c14 Kill __P(), use ANSI function declarations. 2005-02-05 14:05:23 +00:00
xtraeme 4ad9c5a867 Kill __P(). 2005-02-05 13:47:19 +00:00
xtraeme 9bab889d46 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 13:37:39 +00:00
xtraeme 48bd1327fa Finish previous (use ANSI function declarations) this time. 2005-02-05 13:17:54 +00:00
xtraeme 866012a7e2 Kill __P(), use ANSI function declarations. 2005-02-05 13:15:12 +00:00
xtraeme 921249f1c3 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 12:38:58 +00:00
wiz 0c1ed68c30 Give Dd the full month names as argument. 2005-02-01 13:38:53 +00:00
fredb 4627df7dfc Greg Oster just reminded me, I left out "vax". 2005-01-31 17:11:33 +00:00
fredb 680ae8dc03 Sync with raid(4) regarding the architectures that support booting directly
from RAID 1, using language supplied by Anders Dinson in PR bin/29158, with
some additions by myself.
2005-01-31 16:42:15 +00:00
he 66369741ef Move local variable declaration to variable declaration section at
top of function, and at least away from after active code within
a block.  Fixes build problem with gcc 2 (for vax).
2005-01-31 14:18:08 +00:00
joff 9ff2922f8d o Add missing SGI wskbd type
o Add new MATRIXKP wskbd type
2005-01-31 06:24:08 +00:00
erh fdd16c549b Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
2005-01-31 05:19:18 +00:00
erh 897e5cc524 PR #28644: Use realpath to make mount more forgiving of non-canonical
mount paths entered on the command line.
2005-01-31 02:32:35 +00:00
erh a432762d9a Fix PR#3205 for the -a case: when the list of mount points comes from the
kernel, always use "raw" mode (-R option) so unmounting odd mount points works.
Also, fix available options in SMALL mode to include -R, not -r.
2005-01-31 01:19:30 +00:00
yamt 389f0f7cb8 note that loopback mount is a bad idea. 2005-01-21 15:49:43 +00:00
wiz d68085a6b6 "-offset indent" is fine for option lists -- re-add it,
backing out previous. jmmv does not disagree.
2005-01-21 10:40:01 +00:00
xtraeme 76500fc2f9 WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
xtraeme 843cdb1983 Fix the cast for the getnameinfo() call in the status() function, which
should be "const struct" not "struct" for sockaddr.

WARNS=3
2005-01-20 16:16:10 +00:00
xtraeme 6b01b69054 Remove main() prototype; WARNS=3 2005-01-20 16:02:32 +00:00
xtraeme 784c275927 Remove main() prototype; WARNS=2 2005-01-20 16:01:02 +00:00