Commit Graph

4788 Commits

Author SHA1 Message Date
dyoung a34525837f Do not #include <sys/device.h> from userland. 2008-02-11 20:29:15 +00:00
elad 8f8e9e057c Xref security(8) from veriexec(4), veriexec(9), veriexecctl(8), and
veriexecgen(8).

Suggested by Matthew Mondor.
2008-02-10 19:32:23 +00:00
jmmv be1e5d770b Always test MKMODULAR with != "no". Requested by mrg@. 2008-02-10 08:21:25 +00:00
jmmv 97f434a8b4 Reverse MKMODULAR checks. 2008-02-09 22:32:38 +00:00
jmmv 8983cf2933 Recognize MKMODULAR and build the appropriate tool. 2008-02-09 19:33:00 +00:00
jmmv c2ae0da603 Descend into modstat if MKMODULAR is set. 2008-02-09 19:32:28 +00:00
dholland 2069154485 Mention utmpx/wtmpx as well as utmp/wtmp. Suggested by the patches in
PR bin/36551 by Greg A. Woods. Also, while I'm here, fix a miscapitalized
word.
2008-02-09 04:50:57 +00:00
dholland 322ddd589b Set off symbolic signal names (SIG...) with .Dv, and crossreference init(8).
From PR bin/36551 by Greg A. Woods. And while I'm here, fix a grammar nit.
2008-02-09 04:31:43 +00:00
dholland 317c569692 Add warn() in a couple places where it was missing, and clarify one of
the existing warnings slightly. Suggested by PR bin/36551 by Greg A. Woods.
2008-02-09 04:27:06 +00:00
dholland 311ef454d2 Improvements and clarifications to log messages and also to the man page.
Partially cherry-picked from or inspired by PR bin/36551 by Greg A. Woods,
plus some additional grammar/usage/clarity adjustments while I was passing
through. Any mistakes are mine.
2008-02-09 04:09:22 +00:00
mrg ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
ad e142a6464b Kill -r. Union makes for a poor nullfs. 2008-02-05 16:54:07 +00:00
christos 18d6bea575 PR/37932: Yakovetsky Vladimir: build distribution with USE_FORT fails
fix buffer overflow
2008-02-02 17:07:04 +00:00
xtraeme 3d60ce5de6 Add two examples to create and remove a RAID volume in a supported
controller... such as arcmsr(4) for now.
2008-02-02 03:21:47 +00:00
dyoung ae1c071d6f Patch /dev/drvctl and drvctl(8) to let us suspend/resume device
sub-trees, and to let us list the children of a device.

While I am here, add -p to the drvctl(8) usage message.
2008-01-27 01:38:33 +00:00
dsl 7ddd81a137 Add support for mbr code with ascii keycodes 2008-01-25 23:19:10 +00:00
dsl 683572a3a3 Note the existance of mbr_com0 and mbr_com0_9600. 2008-01-20 15:04:09 +00:00
tsutsui aa7cb7b8f0 - add a sanity check to avoid possible division by zero
- adjust sector numbers _after_ "Sanity check the data against all zeroes"

Should close PR bin/37656.
2008-01-20 06:39:31 +00:00
ad 40e9e0d144 Fix a dumb bug. 2008-01-19 01:18:47 +00:00
ad bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
ad 73e694f404 Don't use the block device to read crashdumps, if possible. 2008-01-15 14:26:41 +00:00
xtraeme aff55dbf6c New bioctl(8) first appeared on 5.0 not 4.1. 2008-01-11 17:11:42 +00:00
xtraeme e0fef4a42b Xref gcscpcib(4). 2008-01-09 14:35:54 +00:00
simonb d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
seanb fb884caea6 Shutdown sloop socket for read as it's never read on to
prevent mbufs from queueing in its recv buf.
PR:21459
2008-01-08 20:03:09 +00:00
xtraeme 481db08b0a Rewrite bioctl(8) and add support for the following features:
- Ability to add/remove hot-spare disks (previously only 'add' was accepted).
- Ability to add/remove pass-through disks.
- Ability to create/remove RAID volumes with optional size, stripe, level,
  member disks and others.
- Ability to start/stop consistency checks in a RAID volume.
- Ability to show only information about physical disks, volumes or both.

Rather than using multiple flags, the utility has been modified to use
the same mode than dkctl(8) (and maybe others), i.e:

$ ./bioctl
usage: bioctl device command [arg [...]]
Available commands:
  show [disks] | [volumes]
  alarm [enable] | [disable] | [silence] | [test]
  blink start | stop [channel:target[.lun]]
  hotspare add | remove channel:target.lun
  passthru add DISKID | remove channel:target.lun
  check start | stop VOLID
  create volume VOLID DISKIDs [SIZE] STRIPE RAID_LEVEL channel:target.lun
  remove volume VOLID channel:target.lun
$

I'll add support for other features soon.
2008-01-02 23:45:06 +00:00
xtraeme a5381ad0a5 Xref itesio(4). 2007-12-29 06:10:29 +00:00
ad 2b5d04688e Make it build with src/sys from the vmlocking2 branch. 2007-12-28 21:44:32 +00:00
riz 42a4e6ef13 As discussed on tech-userlevel, add NetBSD GPT partition types for
swap, ffs, lfs, raidframe, ccd and cgd.  gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
apb bb3a1dfc42 Remove note about the first track being reserved for the BIOS (it's
not), and replace it with a note about the first partition traditionally
beginning in the second track of the first cylinder.
2007-12-23 10:47:42 +00:00
apb ca6bb6217d Track zero is not strictly reserved for the BIOS, that's just a
convention, so don't make it an error in check_overlap().  Sector 0 is
reserved for the MBR, so make that an error in check_overlap().
2007-12-23 10:43:57 +00:00
apb 49b1fa58d7 Report the first active partition. 2007-12-23 08:58:34 +00:00
apb 29a92a49d4 If the partition is unused, then attempting to decode the PBR would
actually decode the MBR from sector 0 of the disk.  Don't do it if
v_flag < 3.
2007-12-23 08:14:28 +00:00
tsutsui 68fb2791e1 Use h2fs32() rather than fs2h32() on host to disk conversion. 2007-12-22 01:19:52 +00:00
tsutsui 37d769ed47 - use MINFREE defiend in <ufs/ext2fs/ext2fs.h>
- remove unnecessary casts
- unsigned -> unsigned int
- misc KNF
2007-12-22 01:15:49 +00:00
tsutsui 7bc26029c9 Remove unused macro. 2007-12-22 00:28:21 +00:00
dogcow 3a04c46a48 Your friendly neighborhood 64-bit architecture here to remind you that
strlen returns size_t, and printf's precision specifier uses int.
2007-12-19 05:48:33 +00:00
riz 0fac2edb7f Fix the usage strings for each command, and print them all for the
"global" usage.  It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
degroote 9fe6472fc5 Add support for the command list scan in ifconfig (this command permits to scan
access point in the neighbourhood).

Complete list of channel attributes and list of management information element
payload.

While here, use estrlcpy instead of strncpy.

From FreeBSD ifconfig and net80211
2007-12-16 13:49:21 +00:00
snj 5a1d0f0133 Sort xrefs. 2007-12-15 21:44:15 +00:00
apb 824c1f08d4 Update for the fact that MAKEDEV uses either tmpfs or mfs. 2007-12-15 21:33:49 +00:00
perry 441197bc3b de-__P, ansify prototypes 2007-12-15 20:36:11 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry 36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
perry 4d096031f0 replace instances of __attribute__((__packed__)) with __packed 2007-12-15 16:03:29 +00:00
christos 9e925a6665 - Use fattr.c functions instead of home brewed ones.
- Use new dehumanize number.
2007-12-14 17:37:22 +00:00
tsutsui ea9dd22af6 Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
and Linux e2fsprogs.
2007-12-14 13:19:35 +00:00
explorer 62c5ab302e Fix a minor typo: wd0h was repeated, change second instance to wd1h as is likely intended. 2007-12-14 07:24:01 +00:00
wiz 3a8a3f8310 Whitespace and HTML output fixes. 2007-12-13 22:06:45 +00:00
tsutsui f4f8fe5f57 Add Xref newfs_ext2fs(8). 2007-12-10 12:34:49 +00:00