Commit Graph

4698 Commits

Author SHA1 Message Date
xtraeme
9ab6815f21 Remove intval from %union, it's unused... ok christos@. 2007-10-01 17:01:55 +00:00
ragge
b531488dbc __attribute -> __attribute__. 2007-09-16 18:42:02 +00:00
ragge
9949926272 __attribute -> __attribute__. 2007-09-15 14:35:33 +00:00
wiz
f4a91b1899 Fix Dd argument (use full month names).
Use more markup.
Comment out references to safte(4) and softraid(4), which don't exist in
NetBSD.
Remove trailing whitespace.
Use macros instead of characters for HTML output (replace ">", "<"
with \*[Gt], \*[Lt]).
Sort sections.
2007-09-09 16:13:19 +00:00
bouyer
23448a2818 Fix typo. 2007-09-09 13:30:55 +00:00
xtraeme
a0b933c5b2 CID 4498: print_entry() returning without freeing 'fp'.
Ok by rmind@.
2007-09-06 03:01:55 +00:00
tls
ae75a5cdbe This program is a host tool, so when we use newfangled C features like
PRIxyz we have to ensure it still builds on hosts with Old compilers.
Noticed while building a cross-toolchain on FreeBSD 4.
2007-09-04 00:34:58 +00:00
christos
7bf1a6f81d Avoid zero-divides from Anon Ymous 2007-08-22 16:30:28 +00:00
bouyer
bd627359dd Improved SATA support, from Jonathan A. Kollasch in PR bin/36772:
* use full 5-bit command queue depth that SATA supports
* decode SATA bits
2007-08-21 16:53:18 +00:00
pavel
5e809e89c6 Attempt at fixing build failures after proplib was converted to bool:
FALSE -> false, TRUE -> true, boolean_t -> bool, int -> bool when
appropriate, include stdbool.h . proplib.h no longer provides boolean_t,
so it is necessary to change to bool.

From Tom Spindler (dogcow@).
2007-08-17 17:59:15 +00:00
dyoung
4287175475 Don't nul-terminate the interface name in a sockaddr_dl that is
part of an ifa_msghdr returned by sysctl(3), because that could
overwrite the ifam_len field of the following ifa_msgher.  Instead,
copy the interface name out of the sockaddr_dl, and then nul-terminate.
Fixes the bug reported by Frank Kardel on current-users@.  Thanks
Frank for reporting, and for testing the fix.
2007-08-14 03:39:19 +00:00
oster
761dfd3017 Talk a bit more about how the size of a RAID set is determined, and
of RF_PROTECTED_SECTORS.  Requested by (and with comments from and
thanks to) Christoph (bad@).
2007-08-06 19:44:16 +00:00
yamt
3c955ef258 lengthen timeout. i saw a server for which 10s was not enough. 2007-08-05 22:09:12 +00:00
pooka
ba8a93da5b typographical fixes
from Matthew Wala in misc/36729
2007-08-04 10:45:36 +00:00
he
844b7f67f9 Re-phrase description of -A option, as per suggestion from Jukka Salmi
at netbsd-users@ and with a slight tweak by myself -- at the end the last
dump device will remain as the single active dump device.
Fix a nearby typo.
Bump date.
2007-08-02 18:53:46 +00:00
pooka
fee6f866be Don't re-explain vfs.generic.usermount & friends here. 2007-08-01 08:52:07 +00:00
pooka
16170d27f6 Explain that nosuid,nodev is also needed for non-privileged mounts. 2007-08-01 08:51:24 +00:00
rumble
331f3b4b63 Rescue the subjunctive. 2007-07-30 05:00:55 +00:00
christos
7f593965ea cast sizeof() to int for printf widths. 2007-07-17 23:56:01 +00:00
christos
27e0d2b78b kill MFSNAMELEN 2007-07-17 20:17:52 +00:00
christos
a6e0a40b9f kill MFSTYPENAME 2007-07-17 20:13:43 +00:00
christos
fede0a77fc kill MFSNAMELEN 2007-07-17 20:03:10 +00:00
pooka
91896524c2 Don't attempt to start megamaid if run with MNT_GETARGS. 2007-07-17 12:39:24 +00:00
pooka
63d872ecae Print MNT_GETARGS results in one line to make them display
properly with mount -vvvvvvvvvv
2007-07-16 17:12:03 +00:00
pooka
8f211a8a19 kernfs doesn't support getargs, so fail silently instead of making
a fuss about it.
2007-07-16 17:09:42 +00:00
pooka
704e075311 Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS.  Others worked with < 0,
but make them check against -1 too for consistency.  And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
dsl
7af7206539 Add additional 'sizeof args' parameter to mount(2). 2007-07-14 15:57:24 +00:00
jnemeth
2f4c83c097 PR/36626 - Jukka Salmi -- fails to compile if DEBUG is defined 2007-07-10 23:50:35 +00:00
bouyer
a59a9ef8db writeat() also expect offsets in DEV_BSIZE unit. This and the previous commit
should fix PR bin/35560. Thanks to Michael L. Hitch for pointing me at the
PR.
2007-07-08 16:54:40 +00:00
dsl
df1814f734 Use block minor (from device name) for block devices (not char minor).
Fixes PR bin/36614
2007-07-07 20:11:07 +00:00
bouyer
2d9d4664a8 readat() expects the offset in DEV_BSIZE units. This made resize_ffs find the
filesystem on a vnd partition for me. It did grow the filesystem, and after
a fsck -f on the partition to fix a few superblock inconsistencies, all
looks good.
2007-07-05 21:38:20 +00:00
dsl
4c11bfb2e9 Preserve the mbr 'driver serial number' when copying in the netbsd
mbr code.  Should leave windows vista bootable.
Print the dsn from the mbr, not each pbr.
2007-07-05 20:30:29 +00:00
pooka
01d79aae7e The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
2007-07-02 18:07:44 +00:00
pooka
703c0341d4 basesrc is no more 2007-07-02 16:56:37 +00:00
pooka
6ff8a42783 * narrow-angle const spray
* make config read return an error if it can't read the config file
2007-07-02 16:33:05 +00:00
rumble
e222f53360 When checking for an EFS filesystem just read in the whole superblock,
rather than jump to the hard-coded magic field offset.
2007-06-30 02:05:27 +00:00
rumble
8600ed2bd8 Make mount_efs.8 and svhlabel.8 reference one another. 2007-06-30 01:11:35 +00:00
rumble
dd5b82c6a6 Add missing include. 2007-06-30 00:54:09 +00:00
rumble
98a859360f Superblock magic numbers are #define'd, so use them. 2007-06-29 23:33:05 +00:00
rumble
6912898dc8 Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
2007-06-29 23:30:16 +00:00
rumble
688ef4d823 Nuke extra comma in Xrefs. 2007-06-25 00:41:50 +00:00
dyoung
e62dac44ae Produce more useful error messages. 2007-06-11 04:22:00 +00:00
dyoung
6f3106eba2 Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET
environment variables to override the sector number, and the
bytes-offset in the sector, where disklabel(8) writes a disklabel.

If disklabel(8) was compiled as a host tool, then the defaults
still come from the port's LABELOFFSET and LABELSECTOR #defines.
Otherwise, the defaults still come from the sysctls, kern.labelsector
and kern.labeloffset.

This change helps me create a bootable CompactFlash image with both
a Master Boot Record (MBR) and a BSD disklabel for the RouterBOARD
153.  The RB 153 is an evbmips board with a CompactFlash slot.  It
searches the MBR on a CompactFlash card for a partition containing
an ELF kernel.  When disklabel(8) is built for evbmips, it will
ordinarily overwrite an MBR with the BSD disklabel.
2007-06-05 21:48:46 +00:00
mishka
d7d886db87 Our VLAN implementation (as it correctly expected) is not allowed
to modify the whole VLAN tags, but it is permitted to change 12-bit
VLAN identificators only. Reflect this fact on the appropriate man
pages.

Antti Kantee and Mihai Chelaru from #netbsd-code were helpful in
better understanding of VLAN stuff. Thank you!
2007-06-05 11:15:15 +00:00
uwe
7a2d8df57b Document that reboot(8) passes any arguments to reboot(2) as bootstr. 2007-06-03 22:39:47 +00:00
ginsbach
3d6fea5a84 Add arguments to option descriptions for options that require arguments.
Document all of the NFS specific -o options.
2007-06-01 17:43:19 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
jnemeth
c0e06197a8 Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
2007-05-24 23:19:43 +00:00
wiz
a115c64dc7 Plural fix. 2007-05-20 22:27:46 +00:00
wiz
36f6e8095a Sort options. Bump date. 2007-05-19 14:23:25 +00:00