pavel
d8e5c31820
Clarify and correct the description of the -R (Record Route) flag.
...
Reviewed by jnemeth, whith help from him.
2006-03-21 22:54:46 +00:00
christos
aa1540d7a7
Coverity CID 2742: Avoid NULL deref.
2006-03-21 21:50:44 +00:00
christos
b771b70f76
Coverity CID 1601: Fix memory leak.
2006-03-21 21:43:03 +00:00
christos
22eda87ac9
Coverity CID 1603: Fix memory leak.
2006-03-21 21:41:00 +00:00
christos
0c9dfbbbdf
Coverity CID 1688: Fix memory leak.
2006-03-21 21:37:34 +00:00
christos
1f5c810a97
Coverity CID 782: Don't dereference NULL was not going to happen, but:
...
1. return error instead of the trashed errno.
2. don't return -1, but return ENAMETOOLONG.
3. eliminate unused code.
2006-03-21 21:34:01 +00:00
christos
7067dcb9a4
Always check the results of getmntopts() and free them.
2006-03-21 21:11:41 +00:00
pavel
c38d26c2d6
Bump date, requested by wiz.
2006-03-21 09:54:12 +00:00
pavel
104eb3fa9f
-I does work for unicast pings too (it sets the source address).
...
With some language help from dsl.
Reviewed by jnemeth.
2006-03-21 09:15:53 +00:00
christos
db80529cf2
Delete an obvious free(NULL) pointed out by erh.
2006-03-20 22:44:25 +00:00
christos
731d9b0c04
Coverity CID 2305: Fix memory leak.
2006-03-20 01:51:54 +00:00
christos
ef75a584c1
Coverity CID 2301: FIx memory leak.
2006-03-20 01:45:12 +00:00
christos
4b15f35af4
Coverity CID 2302: Free fat if fatal error to avoid leak.
2006-03-20 01:42:47 +00:00
christos
74f7dc651d
Coverity CID 2299: Fix memory leak.
2006-03-20 01:37:10 +00:00
christos
16f27d8161
Coverity CID 2298: Fix memory leak.
2006-03-20 01:34:16 +00:00
christos
3401a36160
Coverity CID 2074: Fix memory leak.
2006-03-20 01:30:34 +00:00
christos
635d729786
Coverity CID 1745: Fix memory leak.
2006-03-20 01:27:44 +00:00
christos
e5919d97fc
Coverity CID 1078: Add assertion check for NULL pointer.
2006-03-20 01:25:14 +00:00
christos
0794bfc81d
Coverity CID 2551: Don't use LIST_FOREACH() if you are going to free the
...
current element (bp) in the body of the loop; the foreach does bp = bp->next;
2006-03-20 01:20:55 +00:00
christos
db7722d2a7
Coverity CID 774: Don't increment a pointer *before* testing it for NULL!
2006-03-20 01:06:07 +00:00
christos
9871eb575d
Coverity CID's 1853, 1852, 1851: Plug memory leaks.
2006-03-20 01:00:34 +00:00
christos
25207a2398
Coverity CID 1203: Check return code of b64_ntop().
2006-03-20 00:53:39 +00:00
dan
1fcee3db59
close fp in several error paths, closing Coverity CIDs 1690, 1692.
...
"go" by go.
2006-03-19 01:57:11 +00:00
christos
55303a4a4b
Coverity CID 2307: Possible memory leak.
2006-03-18 20:25:28 +00:00
christos
f04c9de45b
Coverity CID 2306: Possible memory leak.
2006-03-18 20:23:51 +00:00
christos
5ac5bc844b
Coverity CID 1079: Possible NULL deref.
2006-03-18 20:21:50 +00:00
christos
704b63146c
Coverity CID 1080: Possible NULL deref.
2006-03-18 20:20:31 +00:00
christos
6672211d0f
Coverity CID 2432: Dereference before NULL check.
2006-03-18 19:55:49 +00:00
dsl
57c63d8912
Avoid indexing beyond the end of a malloced array.
...
Rework loop to be less confusing.
Coverty 519 made me read this code, but this isn't the 'bug' it found.
2006-03-18 12:48:35 +00:00
dsl
46b640e7c6
Coverty 521: fclose() temporary file used when editing label.
2006-03-18 11:38:59 +00:00
christos
6edcc275a1
Coverity CID 2297: Fix memory leak.
2006-03-18 09:51:08 +00:00
dsl
df7e187ccb
Appease Coverty CID 7449. Avoid close(-1) in error path.
2006-03-18 08:36:50 +00:00
perseant
16cb5d93b2
Make it compile again.
2006-03-17 19:24:08 +00:00
dsl
87f04837fb
Fix build breakage, split assignment and test for ease of reading.
2006-03-17 19:18:33 +00:00
christos
2044d4f590
Coverity CID 2671: Fix use of ifp after free.
2006-03-17 16:58:09 +00:00
hubertf
2b40d43066
Fix minor ressource leak
...
Coverity CID 1855
OK'd by thorpej
2006-03-17 16:14:48 +00:00
rumble
e948e1b17f
Check for allocation failures in malloc, calloc, realloc, asprintf, and
...
vasprintf and try to handle them.
2006-03-17 15:53:46 +00:00
rumble
e973f66640
Gracefully handle out of memory condition.
2006-03-17 14:50:44 +00:00
elad
6ec9e1c359
Proper bounds check, found by Coverity, CID 1468.
2006-03-17 13:58:27 +00:00
erh
e1806cf352
Fix Coverity issue 1579. Check retval from getmntopts(). Use freemntopts().
2006-03-17 06:51:00 +00:00
chris
4727225848
Fix case where argv wasn't returned or freed.
...
This fixes Coverity CID 2023.
While here also return NULL if the malloc fails.
2006-03-17 02:48:29 +00:00
elad
21831d5e1d
Fix an off-by-one found by Coverity, CID 1456.
...
I haven't looked, but I suggest security-officer@ looks into it to see if
this may be exploited passively?
2006-03-17 02:31:03 +00:00
hubertf
f500b89c3d
Free some allocated memory in the failure case when trying to
...
fetch the panic string.
Fixes Coverity CID 1856.
2006-03-17 01:45:51 +00:00
jnemeth
61f477b7e3
PR/31531: Takahiro Kambe: shutdown(8) quietly exit if execed from login shell
2006-03-07 22:19:55 +00:00
christos
421a9c133c
add the 3 opencrypto sysctls.
2006-03-06 00:51:48 +00:00
simonb
3204463045
We link against libl and liby, so depend on them too.
2006-02-25 11:57:52 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +00:00
christos
4738a03371
remove vinum reference.
2006-02-25 01:56:41 +00:00
christos
e241178d90
mark vinum as obsolete.
2006-02-25 01:55:00 +00:00
christos
1b49426ea4
remove vinum
2006-02-25 01:31:02 +00:00
wiz
1ad8067cb3
Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
...
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
jmcneill
8e45f8abca
Add the ability to control the splash screen.
...
wsconsctl -d -w splash.enable=<1|0> to toggle the splash screen, and
wsconsctl -d -w splash.progress=1 to update the splash animation
2006-02-18 19:35:11 +00:00
lukem
8c09644630
* The kernel's struct ccd_softc has extra structure members over the
...
userland version; provide another ccd global variable (ccd_softc_elemsize)
containing the kernel's size, and use that it ccdconfig(8) to convert the
kernel's ccd_softc into userland versions.
Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().
XXX: ccd could be converted from nlist to sysctl. "Someone else's yak shave".
2006-02-16 23:25:18 +00:00
dyoung
6c1041b8b7
So that we can build a full-featured fdisk cross-tool with -DBOOTSEL,
...
condition the definition of DEFAULT_BOOTxxx variables and SCAN_xxx
on defined(BOOTSEL), instead of defined(__i386__) || defined(__x86_64__).
While I'm here, only build get_diskname in the same conditions as
get_geometry is built, since only the latter calls the former.
2006-02-14 04:48:15 +00:00
chs
899d1b31b2
convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
...
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
christos
3d8d9aa461
define __POOL_EXPOSE.
2006-02-11 05:49:48 +00:00
christos
238f1027f9
detect integer overflow differently. previous change broke negative sysctl
...
values.
2006-02-08 18:13:56 +00:00
reinoud
7514b43102
Fix 3 more spelling errors and make it pass `spell -b'
2006-02-06 11:45:50 +00:00
christos
404831da9c
PR/17441: John F. Woods: integer sysctl does not accept numbers > 0x7fffffff
...
Use unsigned int in the range comparison, and use strerror() instead of
home brewed error strings.
2006-02-05 22:42:55 +00:00
jmmv
c799a9c4c0
Style fixes:
...
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
2006-02-05 18:11:46 +00:00
jmmv
2df378f966
Fix two pastos in the code to set 'samplerate'.
2006-02-05 17:45:06 +00:00
jmmv
8b589aee17
Add support to automatically repeat mouse button events in wsmouse(4) and
...
change wsconsctl(4) so that this is configurable.
This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)
No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
wiz
82924459cb
Use more markup, fix xref, serial comma, other misc. fixes.
2006-02-04 20:10:53 +00:00
wiz
e1a202b1cb
Bump date for security.*
2006-02-04 18:37:58 +00:00
wiz
298f5a67e2
New sentence, new line; sort SEE ALSO; other minor improvements
2006-02-04 18:35:49 +00:00
riz
288025ff2a
Bump date, use "file system" consistently, no hyphen in "soft
...
dependencies", and sort options under -o.
2006-02-03 22:50:21 +00:00
riz
efb16065b2
Note that softdep and async options can't be used together. From
...
Dheeraj S in PR#32211, wording and formatting changes by me.
2006-02-03 22:34:11 +00:00
snj
52d8744177
Fix two spelling errors and a typo. From Chris Tribo in PR misc/32715.
2006-02-03 08:28:39 +00:00
christos
1098ee8a76
expose a_num.
2006-02-02 23:42:00 +00:00
christos
ae7a5ee5fc
- pass lint
...
- check errors
- use EXIT_FOO consistently
- use the fattr.h functions, don't duplicate the code
2006-02-02 23:41:43 +00:00
elad
81ed970f39
- make use of the recently added mode_bits for security.setid_core.mode;
...
- document setid_core variables.
2006-02-02 18:00:07 +00:00
reinoud
0400433f3f
Note the support for harddisc partitions and vnd devices and notify users
...
of the problems that could arise with mapping images of UDF file systems
when using vnd with respect to the sector size.
2006-02-02 16:45:06 +00:00
xtraeme
c53b38d234
KNF
2006-02-02 16:25:46 +00:00
reinoud
85b5a27e76
Crosslink mount(8) with mount_udf(8)
2006-02-02 16:24:09 +00:00
elad
202872db03
add support for parsing file mode bits.
...
when printed, you'll see something like "0600 (rw-------)", like the
ls output. when reading input you can either specify octal mode (0600)
or chmod-like (u=rw).
ideas from atatat@ and kjk@; okay and lots of help from atatat@.
2006-02-02 16:23:25 +00:00
reinoud
21a48c8e8b
Remove false notion about harddisc partition and vnd support since it has
...
been added since.
2006-02-02 16:11:25 +00:00
xtraeme
3d5d61e01c
Fix NetBSD tag.
2006-02-02 15:48:24 +00:00
reinoud
09457a8a6e
Initial import of a UDF file system implementation for NetBSD.
...
Finally the logic glue and the set distribution lists modifications.
2006-02-02 15:26:32 +00:00
reinoud
c2f693f4f5
Initial import of a UDF file system implementation for NetBSD.
...
Add UDF file system mounter.
2006-02-02 15:21:29 +00:00
wiz
cc07c6e988
Use default option order (AaBbCc...).
2006-01-29 22:11:10 +00:00
dsl
c28e0ae4af
Byteswap the constant MBR_{BS_}MAGIC throughout, should genetate better code.
...
Except that non all architectures have that optimisation :-(
2006-01-29 12:55:16 +00:00
dsl
79bd2ddb02
Update/rewrite to match reality and in a muchmore succinct format.
2006-01-29 00:04:26 +00:00
is
d155cb6cd4
Print the INET netmask if it is non-contiguous.
2006-01-26 11:35:09 +00:00
christos
81a178c561
PR/32632: Yves-Emmanuel JUTARD: Improvment suggestion in 'route' display.
...
Add a new -S flag that prints a space for missing flags.
2006-01-25 16:29:10 +00:00
christos
b7f3395036
PR/32629: Yves-Emmanuel JUTARD: Type errors in sbin/route/route.c, another
...
u_char/char conflict.
2006-01-25 16:19:50 +00:00
christos
86b43a935f
PR/32628: Yves-Emmanuel JUTARD: Missing cast in sbin/ifconfig/ifconfig.c,
...
strcasecmp needs char * not u_int8_t *.
2006-01-25 16:08:49 +00:00
simonb
e37b3f410c
Use 64-bit arithmetic to calculate fragsperinodeblk, avoiding 32-bit
...
overflows for large values of "-i bytes-per-inode".
2006-01-21 12:32:14 +00:00
dsl
09d4a5d5c8
Izumi Tsutsui pointed out that we don't need vfslist.c (from ../mount)
...
if we are defining SMALL.
2006-01-21 11:59:53 +00:00
yamt
7273d6e313
whitespace.
2006-01-21 10:55:56 +00:00
dsl
3dd504cd3b
Set -DSMALL if SMALLPROG defined - ie building install ramdisk images.
...
Removes the code that uses rpc to query remote systems about nfs mounts.
The last references to the xdr routines escape - saving 64k+
2006-01-21 10:34:32 +00:00
dsl
a16ca1845f
Use the rpc code from sys/lib/libsa to determine the root file handle.
...
Saves the code from depending on the xdr functions.
Tested on i386 and IPv4, may need tweaking for IPv6 and using TCP for the
portmap/mount functions.
2006-01-21 10:32:23 +00:00
dsl
1e0f45064e
Add '-V' to usage output.
...
Correct a couple of comments.
2006-01-16 21:34:41 +00:00
dsl
afbe178ee2
Add a '-V verbose' option that controls the amount of info writen to stdout.
...
0: No output. Default for mount_mfs unless -N specified
1: Output size of partition and cylinder groups.
2: Follow with a progress-bar line of dots (scaled to finish at RH margin)
3: Include a single line of alternate suberblock addresses before progress
bar. Default for newfs.
4: Output lots of lines of alternate superblock numbers that scroll madly
up the screen.
If -N given, newfs/mount_mfs exits before displaying any progress bar.
Output constrained (almost always) to 1 column less than the terminal width.
2006-01-15 19:49:25 +00:00
elad
48c362c085
add some more to kern.
2006-01-14 11:52:20 +00:00
elad
0fd32b39ab
remove dup cnmagic.
2006-01-14 11:11:08 +00:00
elad
8ff7a54798
Sync and sort ddb, hw, kern, vm.
2006-01-14 10:33:11 +00:00
elad
3b0d736d23
oops - this should not have been commited. remove sugid_coredump line.
2006-01-13 21:10:34 +00:00
elad
6aa189f3fb
grrr... another space -> tab...
2006-01-13 18:45:47 +00:00
elad
7ddc0d80bd
space -> tab
2006-01-13 18:44:51 +00:00
elad
0e7647e2dd
Sync net.{inet,inet6,key}
2006-01-13 18:37:06 +00:00
elad
9144e38e70
document port option; prompted by wiz@ :)
2006-01-13 09:34:46 +00:00
wiz
ee0b10a017
Improve a sentence.
2006-01-12 21:49:11 +00:00
wiz
1808e48b1b
More markup, sort SEE ALSO, remove superfluous Pp.
2006-01-12 20:47:00 +00:00
wiz
c3bc80e6a8
Grammar fix.
2006-01-12 20:37:23 +00:00
wiz
2c45f40c22
Improve description of strategy command a bit.
...
Increase list width a bit for less unnecessary line breaks.
2006-01-12 20:28:29 +00:00
agc
740e4e64dd
Minor fix - correct a typo
2006-01-11 23:07:22 +00:00
dsl
3fbee23326
Don't look for old superblocks if newfs -N
2006-01-11 22:33:03 +00:00
dsl
00ded1a669
The 'cylinder group' size calculation was incorrect. If the cylinder groups
...
were full then not enough bits were left for the inode allocation map.
Always put a multiple of 8 fragments (and non-zero) inodes into the eqns
so that answer is correct.
Fix the sum that may discard the last cylinder group if it isn't large enough
to contain all its inodes.
Spotted during some other tests, eg:
$ newfs -s 109610 -n1 -f512 -b4096 -N -O2 -F ./z
CGSIZE miscalculated 4097 > 4096
$
2006-01-11 22:03:51 +00:00
dsl
08d4007d3e
Modify previous so that at most 79 (more likely 78) dots are printed, with
...
at most 1 dot per cylinder group.
This is much more useful for filesystems with very large numbers of cgs.
2006-01-11 12:17:42 +00:00
dsl
c2452a4af0
There really isn't any point reporting all the alternate superblocks,
...
big filesystems can have thousands of them - no one ever writes them down.
After the first line of numbers just output a '.' for each cylinder group.
Also limit the lines to 79 columns so broken terminal emulaters don't
double-space the output lines.
2006-01-09 20:59:25 +00:00
elad
9eed84a6ae
Allow multiple lines entries using '\' at the end of the line.
...
Simplified by martin@, thanks. :)
2006-01-05 20:16:20 +00:00
hubertf
3e91637cdf
The -b option is really on fsck_ffs, not fsck
...
Pointed out by Sebastian Schuetz on IRCnet #NetBSD
2006-01-05 11:22:47 +00:00
mjl
0a7b52fa50
Typo fix (to umount is not yet a verb). Via OpenBSD bugs mailing list.
2005-12-30 10:29:56 +00:00
tsutsui
1f5055228d
Add preliminary support for System V Boot File System.
...
Written by UCHIYAMA Yasushi <uch@netbsd>.
2005-12-29 14:53:45 +00:00
christos
5de69f0012
fix compilation on LP64 machines.
2005-12-28 06:03:15 +00:00
reinoud
d1e514c58e
Fix obvious typo in the man page of mount_cd9660:
...
-The behaviour is cotrollable by the
+The behaviour is controllable by the
2005-12-27 17:40:49 +00:00
jmmv
fbb8b4076f
Add an option (-s) to specify which sector to read to parse the partition
...
table. Useful if the disk has remapping drivers installed into it (such as
Ontrack Disk Manager).
Added as an option instead of automatic behavior to let the user scan any
of the two partition tables at will.
2005-12-27 15:37:56 +00:00
hubertf
cfc5c5528b
Xref newfs_msdos, noted by rabioli on Freenode #NetBSD
2005-12-27 14:49:28 +00:00
yamt
6171bf3a5b
add a functionality to get/switch bufq strategy.
...
based on a patch from Juan RP.
2005-12-26 10:38:52 +00:00
perry
0f0296d88a
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:45:08 +00:00
jmmv
ff68701afc
Point to the share/examples/fstab/fstab.ramdisk file for some more information.
2005-12-24 13:02:53 +00:00
yamt
0616e4b566
linkup: reparent() only when lost+found is created successfully.
2005-12-23 12:58:11 +00:00
yamt
a71fb9d9ab
add vm.inactivepct.
2005-12-21 12:21:06 +00:00
jmc
06b42f5e66
Redo previous rework to generate yacc/lex output again and remove generated
...
copies from the import as they don't compile clean across all archs.
2005-12-16 16:25:07 +00:00
jmc
32415dbb57
Don't yacc/lex here as dist includes generated copies already and depending
...
on timestamps it's possible for gcc2 on vax to get confused on which .h
to use.
2005-12-15 14:27:21 +00:00
dsl
24c43e28bb
Use PRIu64 to print ino_t (maybe there should be a PRIino_t somewhere....)
2005-12-13 10:56:16 +00:00
yamt
a83111c7d8
add vm.idlezero. noted by Hubert Feyrer.
2005-12-13 10:07:21 +00:00
wiz
fe79b0c9bd
Grammar improvement.
2005-12-12 22:29:37 +00:00
elad
a9505be892
Add and document a "query" keyword to veriexecctl. Usage:
...
/sbin/veriexecctl query /path/to/file
will print out filename, device, inode, evaluation status, entry flags,
fingerprint, and fingerprinting algorithm.
2005-12-12 21:47:58 +00:00
elad
f39afe3e47
Add and document a VERIEXEC_DELETE operation for Veriexec.
...
We can now delete an entry from the tables using
veriexecctl delete /path/to/file
or remove an entire table using
veriexecctl delete /mount_point
(any directory will work for the mount point it's on)
2005-12-10 02:10:00 +00:00
jmc
fa63539af8
Fix acorn builds
2005-12-07 04:38:32 +00:00
skrll
fa922b7d20
Remove lmcctl.
2005-12-06 09:39:50 +00:00
christos
38c03eb895
lmcctl has been superceded by lmcconfig.
2005-12-06 03:17:24 +00:00
christos
9fe740f63c
ndb is daddr_t which is 64 bits, by truncating it to j which is an int, it
...
can get negative causing segmentation faults. Check against this.
2005-12-05 23:59:43 +00:00
dbj
5a25538485
fix byteswap of log revision structure check, improve error printout
2005-11-29 08:47:22 +00:00
dbj
1aeda8c1bc
add newline termination on error message
2005-11-29 08:06:13 +00:00
dsl
3a2bad7a99
Include the size we are trying to create in the 'partition to small'
...
error message.
2005-11-28 22:35:06 +00:00
yamt
f00c1d8ace
bump date for the previous.
2005-11-27 13:12:32 +00:00
yamt
0ae701e533
add ddb.commandonenter.
2005-11-27 13:12:03 +00:00
elad
03e754fd4d
The securelevel does not affect whether Veriexec's tables can be modified;
...
this is now controlled by Veriexec's strict level.
2005-11-13 18:39:53 +00:00
dsl
c23511b386
Add a missing break!
...
Maybe 'mount_nfs -oport=<port>' has been broken since the IPv6 changes.
2005-11-12 20:30:21 +00:00
chs
3ea0c57c60
don't set fs_maxsymlinklen and fs_old_inodefmt twice,
...
we set them correctly the first time. fixes PR 26995.
2005-11-05 19:15:54 +00:00
dsl
409a3e040d
Fix alpha build - pointed out by Kurt Schreiner on port-alpha
2005-10-20 20:08:33 +00:00
dsl
65151c95f1
Rototil the way disklabel -r reads and writes labels.
...
In particular the 'read' part plays 'hunt the disklabel' in order to get a
label into a local buffer - from where it can be displayed/edited.
The 'write' part makes a separate scan of the disk looking for places to
write the label.
The main changes are:
- It can no longer write the first 8k of the mbr to the pbr (or v.v.)
- All labels on the disk (that it can find) get updated during a write
- With -A all the labels are displayed (inc. those deleted by -D)
- Addition of -D which will delete (by one's complimenting dk_magic{2}) and
existing labels before writing labels to the expected locations.
- -v gives some verbose output to stderr, -vv more etc
A better basis for processing incorrect endian labels, or labels from other
architectures.
2005-10-19 21:22:21 +00:00
xtraeme
eda099ea39
Mention "kern.bufq.strategies", bump date.
2005-10-15 23:05:45 +00:00
jmc
49c83b8ea2
Put back removed initializer. gcc on sh3 still doesn't get it correct...
2005-10-13 21:14:45 +00:00
chs
6c50e54c82
avoid the need for a bogus initializer.
2005-10-08 03:21:17 +00:00
uwe
39ab40b2aa
PRI* macros should not contain percent sign.
...
While here, conditionalise use of "lld" for PRId64 on HAVE_LONG_LONG.
2005-10-07 23:57:10 +00:00
dogcow
7babc7145c
Fix cross-compilation on FreeBSD 4.x (and other OSes) where PRId64 isn't
...
defined.
2005-10-07 01:04:08 +00:00
wiz
1638f02bd8
Add missing comma.
2005-10-06 11:17:38 +00:00
wiz
42c5a0b8fd
Make sentence more readable.
2005-10-05 13:58:49 +00:00
elad
8fc0d7a9c3
Introduce per-page fingerprints in Veriexec.
...
This closes a hole pointed out by Thor Lancelot Simon on tech-kern ~3
years ago.
The problem was with running binaries from remote storage, where our
kernel (and Veriexec) has no control over any changes to files.
An attacker could, after the fingerprint has been verified and
program loaded to memory, inject malicious code into the backing
store on the remote storage, followed by a forced flush, causing
a page-in of the malicious data from backing store, bypassing
integrity checks.
Initial implementation by Brett Lymn.
2005-10-05 13:48:48 +00:00
elad
8358410265
Document security level for sysctl and security.curtain.
...
Hi Hubert! :)
2005-10-03 22:22:10 +00:00
wiz
c60cfece75
Bump date for previous.
2005-10-03 19:17:49 +00:00
christos
c05266af8a
fix setmode error handling.
2005-10-01 20:23:54 +00:00
atatat
fca6393ad4
Add "cwd" and "root" symlinks to each process's directory. The cwd
...
link points to the process's current working directory, and the root
link points to the process's root directory. What else would you
expect?
For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.
2005-10-01 03:17:37 +00:00
rpaulo
e24e702bdb
.An -nosplit
2005-09-30 20:18:12 +00:00
jmmv
ea3755726f
Do not use stdbool.h; it breaks the build on ports using gcc 2.x (such as
...
vax). Ew. Pointed out by he@.
2005-09-30 14:25:07 +00:00
jmmv
34afcb6a5d
Add an EXAMPLES section. Requested by martti@ to clarify the purpose of
...
the field before the mount point.
2005-09-29 20:54:23 +00:00
jmmv
a42b78b9cc
Handle overflow errors in dehumanize_number. Noticed by chs@.
2005-09-26 09:49:22 +00:00
jmmv
dee202322b
Implement the getargs option. I knew the code in the kernel had to be of
...
some use...
2005-09-25 19:04:49 +00:00
jmmv
ff29f0196f
Fix some type mismatch issues (gid_t and uid_t are unsigned); pointed out
...
by chs@.
2005-09-25 18:55:51 +00:00
jmmv
63fb4d1c52
Kill reference to tmpfs(9). Noticed by "pancake".
2005-09-25 18:27:30 +00:00
jmmv
25d775ba47
Change two variables from size_t to long as they are used with long
...
values (strtol). Silences a warning from lint.
2005-09-25 08:15:30 +00:00
jmmv
c23e2abdd5
Ignore case of trailing unit specifiers in size measures to remove confusion.
2005-09-25 08:11:50 +00:00
jmmv
847bd3696d
Inherit owner, group and mode of the mount directory so that mounting a
...
tmpfs over, e.g., /tmp, is trivial.
2005-09-25 08:08:12 +00:00
elad
f9faf32a34
Use crypto/rmd160.h.
2005-09-25 04:16:22 +00:00
rpaulo
6f844bf524
Document kern.hardclock_ticks. Pointed out by Hubert.
2005-09-24 12:05:45 +00:00
wiz
e904ea2e97
Drop trailing whitespace.
2005-09-23 19:58:28 +00:00
jmmv
b0085cab71
Kill the tmpfs(9) manual page; it was just documenting internal details of
...
tmpfs' "API" and was already rotting.
Instead, merge all the relevant comments into the code. This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title. (Note that this was not a
requirement of the program.)
2005-09-23 15:36:15 +00:00
jmmv
2a3e5eeb7c
Apply the NFS exports list rototill patch:
...
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
file sys/nfs/nfs_export.c. The former was becoming large and its code
is always compiled, regardless of the build options. Using the latter,
the code is only compiled in when NFSSERVER is enabled. While doing this,
also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
path and a set of export entries. At the moment it can only clear the
exports list or append entries, one by one, but it is done in a way that
allows setting the whole set of entries atomically in the future (see the
comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
that it becomes file system agnostic. In fact, all this whole thing was
done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
exports initialization; done internally by the kernel when initializing
the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
subsystems can run arbitrary code upon receipt of specific VFS events.
At the moment, this only provides support for unmount and is used to
destroy NFS exports lists from the file systems being unmounted, though it
has room for extension.
Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
xtraeme
b11450ab76
Mention vfs.sync.*, bump date.
2005-09-21 19:08:44 +00:00
tsutsui
40d804cfae
Sync DK types and FS types with <sys/disklabel.h>.
...
XXX: More other stuff should be sync'ed?
2005-09-21 14:51:20 +00:00
dyoung
b1725a3d60
Commit a straggler: use the new SIOCG80211STATS/SIOCG80211ZSTATS
...
ABI.
2005-09-15 23:35:15 +00:00
christos
6d662c2dfa
make this compile again.
2005-09-13 04:40:25 +00:00
christos
100801ed72
rename lfs.h to lfs_user.h so that it does not conflict.
2005-09-13 04:14:17 +00:00
wiz
a76a5aebb5
Fix typo. From YOMURA Masanori in private mail.
2005-09-11 23:50:46 +00:00
wiz
837c877807
Sync usage with manpage.
2005-09-11 23:40:54 +00:00
wiz
3eabd35dba
Use .Fl. From YOMURA Masanori in private mail.
...
While here, sort options.
2005-09-11 23:40:43 +00:00
wiz
667d70cb77
Argument is address_family, not "address family". From YOMURA Masanori in private mail.
2005-09-11 23:37:14 +00:00
wiz
e35607e772
Argument is read-blocksize, not "read blocksize". From YOMURA Masanori in private mail.
2005-09-11 23:36:55 +00:00
xtraeme
d5b623c0b0
Specify the scan_ffs manpage, otherwise it will use scan_ffs.1.
2005-09-10 23:15:52 +00:00
wiz
e9134234a3
Fold scan_lfs.8 into scan_ffs.8. It's the same program, after all.
...
Ok'd by xtraeme.
2005-09-10 23:08:37 +00:00
jmmv
8e0a777ab1
wiz@ remembers that the preferred way to spell file-system in NetBSD is
...
file system.
2005-09-10 22:28:57 +00:00
jmmv
ec93365612
Initial addition of tmpfs, an efficient memory file-system. This project
...
was developed as part of Google's Summer of Code 2005 program. This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.
The file-system is still *experimental*. Therefore, it is disabled by
default in all kernels. However, as typically done, a commented-out
entry is added in them to ease its setup.
Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.
OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
wiz
1635c91622
Improve wording and comma usage.
2005-09-09 20:21:39 +00:00
drochner
36439c322f
namespace sanity: no need to include <sys/device.h>
2005-09-08 14:50:02 +00:00
rpaulo
dcc35c7ff8
Handle net.inet.tcp.debug, net.inet.tcp.debx, net.ns.spp.debug and
...
net.ns.spp.debx. Bump man page date.
2005-09-06 03:22:58 +00:00
dsl
857f572e1b
Make is worthwhile haveing #ifdef SMALL by making the Makefile set it when
...
SMALLPROG is defined (eg by src/distrib/commonMakefile.crunch).
Shrink SMALL version even more.
2005-09-05 20:56:41 +00:00
xtraeme
52f9067be9
Remove an extra conditional while searching for LFS superblocks,
...
it's not needed.
2005-09-02 17:48:40 +00:00
dyoung
fab0410101
If ioctl(,WDOGIOC_SMODE,) fails, kill the child process before
...
killing self, instead of the other way around.
Fixes a bug where the child process would use 100% CPU spinning
while it waited for its parent to arm a non-existent watchdog timer.
Now, the child process gets killed, as was intended.
2005-08-31 18:28:58 +00:00
dyoung
1c952b1b24
Cosmetic: KNF.
2005-08-31 18:21:39 +00:00
ginsbach
031f929a6c
Add full IPv6 syntax support when route is built with -DSMALL and -DINET6.
...
Fixes PR/23937. Adapted from supplied patch.
2005-08-31 02:58:30 +00:00
ginsbach
ba49deed2a
Clean up some minor nits:
...
+ style (KNF).
. don't cast NULL
. white space clean up
+ use consistent format for error messages.
+ plug memory leaks and avoid malloc(0).
+ verbose message should display even when routing table is empty
(flushroutes).
2005-08-30 19:01:25 +00:00
rpaulo
a49638942e
net.inet?.*.stats are viewable with netstat(1).
2005-08-28 16:18:04 +00:00
uwe
066571f357
Oops, brain fart. PRIu32 should be "u", not "d".
2005-08-27 23:34:52 +00:00
uwe
25503c6713
When building as host tool don't include "../../include/util.h".
...
opendisk() declared in that file is not used in this case anyway, and
<util.h> pulls in unwatned includes (e.g. <utmpx.h> doesn't exist on
FreeBSD 4.*).
2005-08-27 22:43:40 +00:00
uwe
d42d0f4fb3
Define PRIu32 in host environments that don't have it defined.
...
Define it to "d", as we are unlikely to support hosts where int is
smaller than 32 bits anyway :).
2005-08-27 22:38:02 +00:00
uwe
a71ee33abc
When building as host tool don't include "../../include/util.h".
...
getlabel{offset,sector} and opendisk functions declared in that file
are not used in this case anyway, and <util.h> pulls in unwatned
includes (e.g. <utmpx.h> doesn't exist on FreeBSD 4.*).
XXX: We can probably undo the #if !HAVE_NBTOOL_CONFIG_H kludge in
<util.h> now.
2005-08-27 22:21:14 +00:00
christos
8a2ba8f0f7
This should be LFS_MAXNAMLEN
2005-08-23 11:44:25 +00:00
tron
0989a73965
Use FFS_MAXNAMLEN instead of MAXNAMLEN.
2005-08-23 11:26:59 +00:00
tron
1dbccd015b
Use FFS_MAXNAMLEN instead of MAXNAMLEN.
2005-08-23 11:10:23 +00:00
yamt
653be60965
even with -F, don't overwrite p_size unless filesystem size is
...
specified by -s.
2005-08-22 09:19:19 +00:00
kent
2fd38e91a5
fix a compilation problem on LP64
2005-08-20 14:59:20 +00:00
christos
982d8230de
use d_fileno instead of d_ino for consistency
2005-08-19 06:44:06 +00:00
christos
c4ee9f6d2e
64 bit inode changes
2005-08-19 02:07:18 +00:00
ginsbach
6e420616a8
Make sure that a netmask socket address value prints appropriately when the
...
family is unset. Either the destination or interface address socket address
family value is used. This change prevents the following sort of output:
RTM_NEWADDR: address being added to iface: len 60, metric 0, flags:<UP>
sockaddrs: <NETMASK,IFA,BRD>
(0) 00.00.ff.00.00 127.0.0.1 127.0.0.1
With this change the last line becomes:
255.0.0.0 127.0.0.1 127.0.0.1
Also make sure that when using a generated inet netmask the address family
is set. With this change a generated netmask will print appropriately
when using the verbose (-v) option.
2005-08-15 19:28:08 +00:00
ginsbach
9992d68aff
Make sure the get command always exits non-zero on error. This makes things
...
like the following work as expected.
#!/bin/sh
if ! route -sn get default >/dev/null 2>&1; then
echo default gateway not set
exit 1
fi
echo default gateway set
Handle routing socket write(2) errors when they occur. This produces
better diagnostics by allowing for handling of the special route errno
values ESRCH, EBUSY, and ENOBUFS even with the quiet (-q) option or
when doing a get command.
2005-08-12 21:23:06 +00:00
ginsbach
9c8def382d
Trim the local domain name in routename() for INET6 lookups; similar to
...
INET lookups.
2005-08-12 16:29:06 +00:00
rpaulo
aaf548920f
Explained the '-h' option.
2005-08-11 20:56:57 +00:00
rpaulo
630caafc65
Added a new ifconfig flag, -h, allowing, in conjunction with -v, the display
...
of interface I/O bytes in human-format.
Reviewed by Christos Zoulas and Jason Thorpe.
2005-08-11 20:56:05 +00:00
he
8974f21b75
Make this build for __GNUC__ <= 2 (i.e. for vax). The cast to
...
caddr_t removes a const qualifier. Instead, cast the first element
of the subtraction to "struct sockaddr *" to work around the problem.
2005-08-10 11:48:17 +00:00
ginsbach
08af90d648
Accept protocol flags, i.e. -inet, -inet6, with the show command.
...
[From OpenBSD via DragonFly BSD]
2005-08-09 21:25:42 +00:00
ginsbach
2cff02da42
Fix the default case in sodump(). Printing the address of the "which"
...
string isn't really that useful. Instead print the string and the value
of sa_family.
2005-08-09 20:33:06 +00:00
ginsbach
3997584e62
More style nits (KNF); casts and sizeof's are not followed by a space.
2005-08-09 19:43:24 +00:00
he
488e14a7ad
Undefine the 17 macros commonly defined by <ufs/ffs/fs.h> and
...
<ufs/lfs/lfs.h> before including the second of them, and also after
including the second, to ensure the rest of the code doesn't depend
on their (ambigious) definition.
This fixes a build problem for vax; gcc 2.95.3's preprocessor
apparently doesn't like redefinition of macros.
Discussed with xtraeme.
2005-08-09 12:59:29 +00:00
xtraeme
4ef578d357
* Replace lseek() and read() calls with one single pread()
...
* Align cpg/sgs correctly.
2005-08-09 01:49:23 +00:00
wiz
f309f02fd0
Bump date for previous; use more markup.
2005-08-07 11:17:31 +00:00
blymn
b7550dc6d4
Add and document some convenience aliases for commonly required option
...
combinations.
2005-08-06 09:00:20 +00:00
jmmv
68e38c123b
Replace a dot with a colon, as a list of items follows it.
2005-08-05 13:32:06 +00:00
rpaulo
92c6f16501
Added net.bpf.peers and net.bpf.stats and bumped the date.
2005-08-04 20:10:24 +00:00
rpaulo
78d05017af
Inform the user that net.bpf.stats and net.bpf.peers are viewable with
...
netstat(1).
2005-08-04 19:44:18 +00:00
elad
42735a8747
Sync with reality.
...
- Verified Exec -> Veriexec
- pseudo-device is `veriexec'
- veriexec.conf -> signatures, and mention /etc/signatures as the default
location
- We use veriexec's strict level, not the system securelevel
- Mention the `direct' option
- Mention that the signatures file can have multiple options in a single
entry, comma-separated
- Mention that both `direct' and `indirect' access modes are implied
if no access modes are explicitly mention in the options
- Bump date
2005-08-02 18:06:14 +00:00
elad
6e4a854552
Support multiple entry types. Direct, indirect, and file can now be
...
combined in the signatures file using commas.
2005-08-02 16:14:10 +00:00
christos
b6a232217f
Pass lint and get/setprogname.
2005-07-31 20:19:40 +00:00
xtraeme
c99f08c80d
typo
2005-07-31 19:40:50 +00:00
xtraeme
016ad35975
Add scan_lfs(8), utility to find LFS partitions on disk, useful
...
to recover lost disklabels.
2005-07-31 19:26:06 +00:00
wiz
f3ce44eee2
Sort options. Various other fixes.
2005-07-24 21:07:52 +00:00
rpaulo
d49bebea61
Add examples for scroll.fastlines and scroll.slowlines.
...
Also, bump the man page date.
ok wiz@, hubertf@
2005-07-24 20:54:06 +00:00
ginsbach
89cdec0594
switch is not a function, so add a space; sort switch elements
...
alphabetically (KNF).
2005-07-20 21:12:40 +00:00
ginsbach
d313757b82
* Exit non-zero error code when flushroute() fails operating on the
...
routing socket, e.g. running route flush as non-root.
* When quiet (-q) don't append error string to a non-existent
diagnostic output (stdout). The error diagnostic is still written
to stderr. [from FreeBSD]
* Use warn(3) in place of perror(3).
2005-07-15 21:29:54 +00:00
he
36fc2f101b
Add const to a duplicate declaration of sd_state().
2005-07-05 22:21:38 +00:00
wiz
d0b93cc137
Mark up more paths with .Pa, and
...
break a line (<=80 chars per line).
2005-07-01 17:07:33 +00:00
snj
23b31bb2ee
Use more macros and sort xrefs.
2005-06-30 21:36:34 +00:00
christos
fdfc4891f9
Patch from Jeremy Reed to describe how MFS /dev works. Thanks!
2005-06-30 16:38:06 +00:00
drochner
5597e3b8c5
add some (long long) casts to printf() arguments to avoid
...
gcc warnings
2005-06-30 12:18:16 +00:00
he
fb84548b30
Allow this to build under -Wcast-qual -Werror by adding const to a few
...
variables/fields initialized to point to string constants.
2005-06-28 18:14:45 +00:00
christos
cc9c2b575d
- constify.
...
- don't dup extern declarations on each file because they end up being
inconsistent (yyerror).
2005-06-27 03:07:45 +00:00
christos
acdcf67bb0
constify.
2005-06-27 02:56:20 +00:00
christos
9be35a638f
more const.
2005-06-27 02:49:32 +00:00
christos
e0dd0ca293
constify
2005-06-27 02:48:28 +00:00
christos
e4b2253c50
add const.
2005-06-27 02:05:30 +00:00
christos
58874431a5
add const
2005-06-27 02:03:28 +00:00
christos
cb1c4f11bb
sprinkle const.
2005-06-27 01:55:52 +00:00
christos
64747563b4
sprinkle const
2005-06-27 01:37:32 +00:00
christos
c236bddb0f
sprinkle const.
2005-06-27 01:25:35 +00:00
christos
2c6eadc9ce
Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
...
programs that did not compile before.
2005-06-27 01:00:04 +00:00
christos
042582c125
more const.
2005-06-26 23:04:19 +00:00
christos
97880e96ed
constify.
2005-06-26 23:01:39 +00:00
christos
6499bd69c1
constify.
2005-06-26 22:45:50 +00:00
christos
79f5327ef7
This is the textbook example of why global variables are harmful. Fix multiple
...
shadowing warnings for variables with the same name used both in global and
local context. Really this needs either to rename all the global variables
something different (prefix them with gl_ or something) or even better get
rid of them altogether.
2005-06-26 22:36:55 +00:00
christos
a9274bf3fb
Don't abuse writing to const strings. We can pass const strings to this,
...
and we write to them. Allocate memory instead.
2005-06-26 21:43:33 +00:00
christos
dea4bd707c
const poisoning.
2005-06-26 21:28:15 +00:00
dyoung
256aff6693
Teach route(8) to print the messages generated by net80211.
2005-06-25 06:38:35 +00:00
hubertf
6912ea355e
it is iso8859, not 8869
2005-06-24 23:35:06 +00:00
wiz
4e5ff88a4c
Bump date for previous.
2005-06-24 11:39:11 +00:00
peter
fb059bb119
Note that flag -a is obsolete. Thanks to Darrin B. Jewell.
...
Should fix PR/26883 from Hauke Fath.
2005-06-24 11:28:54 +00:00
xtraeme
ddd459d409
Add missing '\n' into usage().
2005-06-23 17:25:31 +00:00
peter
d595622625
Add .An -nosplit to the beginning of the section.
...
Suggested by Thomas Klausner.
2005-06-23 12:01:48 +00:00
peter
96c9cff75c
Use .An name Aq email.
2005-06-23 11:00:47 +00:00
fvdl
a33a5a18b5
If HOSTPROG is empty, do not pull in libutil, since we do not need it in that
...
case, and several host platforms do not have libutil. Fixes the build of
these programs as host tools on platforms without libutil.
2005-06-23 00:54:47 +00:00
thorpej
65412a2710
Implement expansion of special "magic" strings in symlinks into
...
system-specific values. Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.
This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag. It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.
The following magic strings are supported by the implementation:
@machine value of MACHINE for the system
@machine_arch value of MACHINE_ARCH for the system
@hostname the system host name, as set with sethostname()
@domainname the system domain name, as set with setdomainname()
@kernel_ident the kernel config file name
@osrelease the releaes number of the OS
@ostype the name of the OS (always "NetBSD" for NetBSD)
Example usage:
mkdir /arch/i386/bin
mkdir /arch/sparc/bin
ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
dyoung
9063402978
Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
...
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
peter
a9b411c198
Change all .Xr config 8 to .Xr config 1, following the recent move of
...
config from usr.sbin -> usr.bin.
Reviewed by wiz.
2005-06-20 13:25:23 +00:00
wiz
a2074cd992
Quote Fr so options are sorted properly.
2005-06-19 17:24:20 +00:00
wiz
9a425d58bc
Remove superfluous .El; a slight wording change.
2005-06-19 16:01:38 +00:00
wiz
6aa388dc21
Incorporate my review comments.
2005-06-19 16:00:26 +00:00
lukem
5054440f25
be consistent in XXXGCC -Wuninitialized fixes ...
2005-06-18 01:33:16 +00:00
dsl
506fe1826c
Rip out the support for writing bootstrap code. installboot(8) contains
...
support for hp300, hp700 and vax, $MACHINE is never arm32.
Fix usage output to only contain progname() once - bug introduced in rev 1.89
2005-06-17 21:20:18 +00:00
jmc
96839ff18e
Mark an sh3 gcc unitialized variable w. XXGCC
2005-06-16 20:39:33 +00:00
christos
29a6465002
Add code to handle cp_id. From atatat.
2005-06-16 14:56:36 +00:00
dsl
37bbe98710
Remove the never changed 'bootxx' variable
2005-06-15 20:49:41 +00:00
dsl
efb521dba8
Rip out the references to the installation of more than one bootstrap file.
...
Only arm32 needs the -B stuff at all, all other ports use installboot(8).
2005-06-15 20:31:47 +00:00
dsl
f74e227614
Remove all the code that was under 'NUMBOOT > 1' nothing has set that for
...
a long time.
2005-06-15 20:19:03 +00:00
christos
e0db7c68ff
WARNS=4, misc cleanups.
...
- void casts
- remove unused notreached
- use a loop instead of code duplication
- use switches and #define constants
2005-06-15 20:03:03 +00:00
peter
d191390e9e
fix the date, use .An for names, correct the name (scanffs -> scan_ffs),
...
.Ox/.Nx for OpenBSD/NetBSD, mention appearance in NetBSD.
2005-06-15 19:02:54 +00:00
kleink
4a74bb7497
Use EXIT_{SUCCESS,FAILURE}.
2005-06-15 18:42:23 +00:00
kleink
32f2d508d6
No need to define SRCS here.
2005-06-15 18:39:46 +00:00
xtraeme
b67b8509c2
Add scan_ffs(8) from OpenBSD, it was modified to support FFSv2
...
for NetBSD (with different blocksizes). Utility to find
FFSv1 and FFSv2 partitions on disks, useful to recover lost
disklabels.
Reviewed by christos.
2005-06-15 18:06:19 +00:00
peter
c05a028e3d
Remove the SECURITY CONSIDERATIONS section which stated that the
...
implementation didn't used a good random generator, this is not true
anymore since arc4random(3) is used these days.
Pointed out by Jeff Ito in PR/30321
2005-06-14 14:02:12 +00:00
elad
db6ca056ee
Some refactoring and bugfixes:
...
- Report line numbers correctly.
- Don't perform a 2nd pass when there are were errors during 1st.
- Support multiple, comma-separated flags. This is mostly a reworking of
some parser internals preparing for planned features.
2005-06-13 15:18:44 +00:00
wiz
8dcbfbbb96
Bump date for previous.
2005-06-13 13:07:56 +00:00
elad
471eb59186
Remove bits about deprecated 'fingerprints' command.
2005-06-13 13:05:29 +00:00
dyoung
1726c417de
Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c
...
to main.c to avoid a name collision with lib/libc/gen/disklabel.c
when we build nbdisklabel. Still todo: commit host-tool build
infrastructure to src/tools/disklabel/.
2005-06-12 19:18:34 +00:00
dyoung
4580f13f42
Turn fdisk(8) into a host tool. Still todo: commit the host-tool
...
build infrastructure to src/tools/fdisk/.
2005-06-12 19:14:10 +00:00
dyoung
023801f122
For portability, use standard types: s/uint/unsigned int/,
...
s/ulong/unsigned long/, s/u_int8_t/uint8_t/.
2005-06-12 19:06:43 +00:00
christos
85a5de064c
Remove some const. This is better than using __UNCONST at the second
...
argument of swapctl.
2005-06-12 16:24:20 +00:00
dbj
36c3355e33
add code to handle inodes with extended attribute blocks
...
this is currently turned off with "#ifdef notyet" since the
kernel will not correctly clean up extended attribute blocks on truncation
Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2005-06-08 20:34:06 +00:00
perseant
4b8db8388e
Use the correct method to create a new inode, when we allocate lost+found.
...
Correct uninitialized variable issues in pass6.c and dir.c (PR#30411 and
PR#30394, respectively).
2005-06-08 19:09:55 +00:00
he
2e34fff7c9
Add an initialization to appease -Wuninitialized.
...
Marked with XXXGCC for sun2 (found while building for it).
Reviewed by lukem.
2005-06-07 09:10:33 +00:00
he
e82dc5dc94
Initialize metalbn in ufs_getlbns to appease -Wuninitialized.
...
Marked with XXXGCC for dreamcast (found while compiling for it).
Reviewed by lukem.
2005-06-07 09:08:07 +00:00
lukem
1ab5811713
Disable -Wuninitialized on dir.c (until PR 30394 is addressed)
...
and pass6.c (until PR 30411 is addressed)
2005-06-03 18:02:03 +00:00
elad
0f9ec14004
No need for this one, apparently. Reported by Hisashi T Fujinaka.
2005-06-03 16:12:07 +00:00
elad
055b86e224
Don't create duplicate tables for the same device.
2005-06-03 13:21:35 +00:00
snj
d3df836a71
Fix a typo in a comment.
2005-06-03 03:34:44 +00:00
dbj
3b7cb4bd57
ufs2 disk addresses in dp2->di_db[] must be swapped with bswap64, not bswap32
2005-06-03 01:10:50 +00:00
lukem
658ed3362c
appease gcc -Wuninitialized
2005-06-02 01:35:57 +00:00
lukem
2d447a3b0c
Avoid dereferencing/free()ing invalid pointers if the random device
...
cannot be opened.
Detected with gcc -Wuninitialized.
(The bug was fixed in rev 1.4 by rumble but reintroduced in rev 1.5 by tv !)
2005-06-02 01:31:30 +00:00
lukem
230e9bea1f
Use ai_nfs instead of the uninitialized ai when determining the NFSMNT_KERB
...
reverse IP address, and ensure ecode is set as well.
Detected with gcc -Wuninitialized.
(The bug was introduced in mount_nfs.c rev 1.25. Hi fvdl! :)
2005-06-02 01:24:45 +00:00
dbj
ab963542e1
for ufs2, assume FS_44INODEFMT
...
this is necessary for freebsd compatbility, since they do not initialize
the old field.
2005-06-02 01:23:19 +00:00
lukem
620037ae2b
Ensure verbose is initialized before using it.
...
Detected by gcc -Wuninitialized.
2005-06-02 01:16:06 +00:00
lukem
2b11c546a4
appease gcc -Wuninitialized
2005-06-02 01:02:21 +00:00
lukem
a0618cd165
appease gcc -Wuninitialized
2005-06-02 00:48:48 +00:00
lukem
700088dc7f
appease gcc -Wuninitialized
2005-06-02 00:38:41 +00:00
lukem
86716480cb
appease gcc -Wuninitialized
2005-06-02 00:15:02 +00:00
lukem
925bd672b3
Ensure that "setcache <mode>" doesn't use random data for "byte2"
...
("setcache <mode> save" DTRT).
Found by gcc -Wuninitialized.
Appease other -Wuninitialized warnings.
2005-06-02 00:13:10 +00:00
lukem
9a1b8a3b7b
appease gcc -Wuninitialized
2005-06-02 00:01:47 +00:00
lukem
2cd106ee37
Fix an uninitialized variable issue.
...
Found with gcc -Wuninitialized.
2005-06-02 00:00:46 +00:00
elad
9a23dc795f
Newline in end of usage.
2005-06-01 18:29:16 +00:00
elad
98425e4a9e
Warn when failing to load an entry; don't fail the whole process.
2005-05-30 18:02:31 +00:00
elad
0f2f650859
Don't access a NULL pointer.
2005-05-27 15:46:23 +00:00
wiz
85e66d6bf6
Macro improvement.
2005-05-25 10:01:34 +00:00
snj
1a2d0da769
Grammar fix, from Jeff Ito in PR bin/30320. While here, fix a typo
...
and use .Dq for quotes.
2005-05-25 00:02:49 +00:00
wiz
e45ea581c3
Bump date for previous. <> -> \*[Lt]\*[Gt].
2005-05-24 16:00:11 +00:00
elad
6755bac719
Add man-page bits about the 'count' node.
2005-05-24 15:47:46 +00:00
agc
d5a81777aa
Make this build on arm platforms by using the correct printf formats.
2005-05-24 06:51:49 +00:00
perseant
b1dbcbaa26
Check some error conditions that would otherwise cause fsck_lfs to dump core.
...
Pointed out by Pavel Cahyna in a follow-on to PR #29151 .
2005-05-23 22:17:20 +00:00
lukem
dfee67134f
Make fdisk(8) available on all platforms, since MS-DOS partitioning
...
is the de-facto standard for many removable media types.
2005-05-22 03:45:30 +00:00
skrll
ff8785b1da
Remove unused variables.
2005-05-21 09:25:21 +00:00
elad
18afb98204
Remove leftovers from Vexec.
2005-05-20 20:06:34 +00:00
elad
cd0c4134f1
Remove common code for returning supported fingerprints. This is done now
...
via sysctl(8) using kern.veriexec.algorithms.
Also add an entry for the 'algorithms' variable in sysctl.8 forgotten in
the last commit.
2005-05-20 19:52:52 +00:00
perseant
9bf7a991c5
Fail gracefully if we are asked to expand the buffer cache hash table size
...
when there is no memory available to do so. Use the uvnode's strategy
routine to retrieve data from the device, rather than always using pread().
Add a buffer header flag that specifies external management of the buffer's
data area.
All of this in support of a new cleaner, which is not included in this commit.
2005-05-20 18:59:36 +00:00
elad
5888b16eef
Some changes in veriexec.
...
New features:
- Add a veriexec_report() routine to make most reporting consistent and
remove some common code.
- Add 'strict' mode that controls how veriexec behaves.
- Add sysctl knobs:
o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
documentation in sysctl(3) for details.
o kern.veriexec.algorithms returns a string with a space separated
list of supported hashing algorithms in veriexec.
- Updated documentation in man pages for sysctl(3) and sysctl(8).
Bug fixes:
- veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
correctly.
- exec_script(): Don't pass 0 as flag when executing a script; use the
defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
enforcement work.
- Fix some printing formats and types..
2005-05-19 20:16:19 +00:00
ginsbach
4d1075a78b
Convert prefixlen() to ANSI function declaration. Missed by earlier
...
conversion.
2005-05-19 15:46:02 +00:00
ginsbach
0cb468118d
Due to a limitation in inet_addr(3) it was not possible to specify a
...
netmask value of 0xffffffff (INADDR_NONE). Fix by using inet_aton(3).
Note it was possible to specify the same mask as the dotted quad
255.255.255.255 because of a later call to gethostbyname(3).
[From FreeBSD]
2005-05-19 15:05:11 +00:00
grant
0f1a2ceee9
move to my now standard 3-clause BSD license (remove advertising clause)
2005-05-17 11:46:15 +00:00
dsl
9abd2f5605
Split getnfsargs() out into its own file, it drags in 70kB of rpc code.
...
I might manage to write a version that doesn't pull in all the crud.
(Which will give a load of space in the install floppy images)
2005-05-15 21:18:34 +00:00
ginsbach
d96d2a6f15
Adjust field width for route -n show similar to netstat -rn when displaying
...
INET6 route entries.
2005-05-13 14:58:47 +00:00
ginsbach
bb3f166314
Fix botched prior commit. Additional debugging error messages mistakenly
...
committed.
2005-05-13 01:59:47 +00:00
ginsbach
22f8a99e92
* Honor -net when using CIDR (net/mask) notation. This differs
...
from the default CIDR (host/mask) interpretation. As discussed on
tech-net.
* Use errx() in place of fprintf() and exit(). Make the error message
formats consistent.
2005-05-12 21:10:49 +00:00
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