Commit Graph

10327 Commits

Author SHA1 Message Date
dholland b743f28223 Bail out early if none of the mounted volumes support quotas. Avoids a
null print in interactive use.
2012-08-13 23:08:58 +00:00
dholland e8ef0182c9 Minor cleanup: use bitfields instead of a flags word for private state
flags, remove now-unused qfname field.
2012-08-13 22:21:05 +00:00
martin ff5fcf4714 Cleanup temporary file 2012-08-13 18:22:25 +00:00
martin 1d5deaee0c Make "fix ptyfsoldnodes" more verbose 2012-08-13 15:17:16 +00:00
wiz 5c9a0052ca Sync usage with manpage. End it with a newline. 2012-08-13 12:37:18 +00:00
wiz a0b9ae45e4 Sort options in SYNOPSIS. New sentence, new line. Improve descriptions.
Use more markup. Sort option descriptions. Add arguments to option descriptions.
Punctuation nits.
2012-08-13 12:37:05 +00:00
pgoyette f283cd004e Add -4 and -6 options to rpd.lockd for consistent control over the
protocols to which it listens.  As discussed on tech-userlevel.
2012-08-13 12:22:21 +00:00
martin d08b85050c Add a ptyfsoldnodes item that checks/removes old /dev/{p,t}ty* nodes
if ptyfs is used.
2012-08-13 10:20:52 +00:00
wiz b8117286a3 Sort descriptions. Fix macro. Move example to new EXAMPLES section. Add EXIT STATUS section 2012-08-13 08:39:28 +00:00
christos eff766617d Let nfsd behave like all other programs: tries to use both inet4 and inet6
by default and both udp and tcp: -4 uses only inet4, -6 uses only inet6,
-t uses only tcp, -u uses only udp. For compatibility, we detect old option
usage, we warn, and DTRT.
2012-08-13 08:19:11 +00:00
rmind f95b2549d9 - npfctl show: add most of the missing cases.
- Few minor improvements to NPF man pages.
2012-08-13 01:18:31 +00:00
rmind 63f44833ba - Extend npftest: add ruleset inspection testing from the config generated
by npfctl debug functionality.  Auto-create npftest interfaces for this.
- NPF sessions: combine protocol and interface into a separate substructure,
  share between the entries and thus fix the handling of them.  Constify.
- npftest: add regression tests for NAT policies.
- npf_build_nat: simplify and fix bi-NAT regression.
- Bump yacc stack size for npfctl.
2012-08-12 03:35:13 +00:00
wiz ae90bf6a58 Bug fix for PR 46733:
> makemandb always reports the same number for "Total Number of new or
 > updated pages enountered" and "Total number of (hard or symbolic)
 > links found".

Patch from Abhinav Upadhyay.
2012-08-11 21:07:13 +00:00
joerg 9edf9a0457 Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
2012-08-10 12:10:27 +00:00
christos 2be2cb6bfb exclude programs for MKRUMP = no 2012-08-08 14:13:46 +00:00
msaitoh ef486fed67 Fix a bug that incorrect RA packet is sent if rtadvd.conf exists.
Fixes PR#46580 reported by Takahiro HAYASHI.
2012-08-08 04:05:26 +00:00
hannken a8055efc22 Initialize `fss_flags' before setting an individual bit.
Not a real problem as there is only one valid bit yet.

From Edgar Fuss via tech-kern@netbsd.org
2012-07-28 15:09:44 +00:00
rmind 4ad5029440 - npf_fetch_tcpopts: fix off-by-one when validating TCP option length
against the maximum allowed.
- npf_tcp_inwindow: be more liberal with npf_fetch_tcpopts().
- Few minor improvements to npftest.
2012-07-21 17:11:01 +00:00
manu 075ba0e590 - Fix same vnodes associated with multiple cookies
The scheme used to retreive known nodes on lookup was flawed, as it only
used parent and name. This produced a different cookie for the same file
if it was renamed, when looking up ../ or when dealing with multiple files
associated with the same name through link(2).

We therefore abandon the use of node name and introduce hashed lists of
inodes. This causes a huge rewrite of reclaim code, which do not attempt
to keep parents allocated until all their children are reclaimed

- Fix race conditions in reclaim
There are a few situations where we issue multiple FUSE operations for
a PUFFS operation. On reclaim, we therefore have to wait for all FUSE
operation to complete, not just the current exchanges. We do this by
introducing node reference count with node_ref() and node_rele().

- Detect data loss caused by FAF
VOP_PUTPAGES causes FAF writes where the kernel does not check the
operation result. At least issue a warning on error.

- Enjoy FAF shortcut on setattr
No need to wait for the result if the kernel does not want it. There is
however an exception for setattr that touch the size, we need to wait
for completion because we have other operations queued for after the
resize.

- Fix fchmod() on write-open file
fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.

- Remove node TTL handling for netbsd-5 for simplicity sake. The code
still builds on netbsd-5 but does not have the node TTL feature anymore.
It works fine with kernel support on netbsd-6.
2012-07-21 05:49:42 +00:00
rmind 083c690112 - npfctl_print_stats: beautification a la French style.
- npfctl_icmpcode: fix the build break.
2012-07-19 22:22:53 +00:00
spz 7cf84a83d6 teach npf ipv6-icmp
reviewed by rmind@
2012-07-19 21:52:29 +00:00
joerg 7219ead3a1 Add missing __dead. 2012-07-19 06:31:26 +00:00
spz b1a40de246 resource leak (Coverity issues 274383 and 274384) 2012-07-15 09:08:29 +00:00
rmind a3b239f6f3 - Rework NPF tables and fix support for IPv6. Implement tree table type
using radix / Patricia tree.  Universal IPv4/IPv6 comparator for ptree(3)
  was contributed by Matt Thomas.
- NPF tables: update regression tests, improve npfctl(8) error messages.
- Fix few bugs when using kernel modules and handle module autounloader.
- Few other fixes and misc cleanups.
- Bump the version.
2012-07-15 00:22:58 +00:00
christos 550109f835 MKCRYPTO_IDEA is no more 2012-07-14 04:03:44 +00:00
uwe 4b084fb4d9 Fix typo in a message. 2012-07-08 23:18:23 +00:00
wiz ac0c6a8e78 From Bug Hunting: Add vndcompress(1) to SEE ALSO, bump date.
While here:
New sentence, new line.
2012-07-08 22:49:55 +00:00
rmind 33b678d7e0 NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.
2012-07-01 23:21:06 +00:00
kefren 690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
rmind 4940c18bab Fix and update npf.conf(5), npfctl(8) and its usage message. 2012-06-27 23:05:28 +00:00
jdf 17ec07bc2d * Remove spurious period in name section
* remove spurious argument to Nm macro
Patch supplied by Bug Hunting.
2012-06-23 20:49:14 +00:00
rmind 53e5b8cc71 NPF:
- Rename some functions for consistency and de-inline them.
- Fix few invalid asserts (add regressoin test).
- Use pserialize(9) for ALG interface.
- Minor fixes, sprinkle many comments.
2012-06-22 13:43:17 +00:00
sjg 07f6254fe3 Add -Z to enable sparse files - for ffs at least.
Based on a patch from shesha at juniper.
2012-06-22 06:15:18 +00:00
christos 8565a6a499 remove dup O_NDELAY. 2012-06-20 01:39:34 +00:00
christos 0787d10414 - fix writev1() to pre-decrement count.
- always open ttys with O_NDELAY.
2012-06-19 13:44:35 +00:00
tron dd5f61399d Fix broken IPv6 support. My Mac OS X Lion NFS client now happily
talks to my NetBSD 6.0_BETA2 NFS server over IPv6.
2012-06-18 20:30:32 +00:00
christos dafeb4b2c4 don't call isatty() to the fd before opening it. 2012-06-18 19:17:42 +00:00
christos b416920400 remove error(1) output 2012-06-16 01:34:10 +00:00
christos 55cd49b90e make this compile again. 2012-06-16 01:31:33 +00:00
rmind 7a3e0c216a - Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.
2012-06-15 23:24:08 +00:00
hannken 58d3be794f File system snapshots are no longer experimental.
Forgot to chang this man page in Nov 2011.
2012-06-11 15:25:14 +00:00
christos 92dd06985f WARNS=4 2012-06-06 00:33:45 +00:00
christos a480a96956 Open and write to ttys using non-blocking I/O to prevent DoS when hardware
or software flow control prevents tty writes or when the tty line is too
slow to respond.
2012-06-05 19:33:17 +00:00
manu 1d0360b1c9 Add placeholder so that we can later add allbacks without breaking the ABI 2012-06-05 15:04:18 +00:00
riastradh b8c3b27f99 Kill the IN_RENAME in-core inode flag in ufs and ext2fs.
Now that rename works we need not to wave this sort of voodoo at it.

ok dholland
2012-06-04 20:13:47 +00:00
rmind 79afee64f7 npftest: add a module for TCP state tracking and add few test cases. 2012-06-04 00:28:34 +00:00
joerg 1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
jnemeth 5a5317f49b PR/46500 - Henning Petersen -- wrong permissions on create .seq files 2012-06-02 03:32:53 +00:00
jnemeth 220a7d2bb0 add _tss to uid and gid checks 2012-06-01 21:59:06 +00:00
wiz 1c095f6bdd Remove superfluous Pp 2012-05-30 22:00:44 +00:00
rmind fb07f475c0 npftest: add a stream processor, which prints out the TCP state information.
A tool for debugging connection tracking from tcpdump -w captured data.
2012-05-30 21:38:03 +00:00
rmind ac69c0c39c npfctl(8): add show-config command. Also, update syntax. 2012-05-30 21:30:07 +00:00
uebayasi 6b4d01fdae Rename wake(8) to wakeonlan(8). Approved by core@. 2012-05-26 01:58:17 +00:00
christos 99b3039fe6 improve error handling. 2012-05-15 01:22:50 +00:00
wiz 06b206851a Bump date for previous. 2012-05-12 21:42:38 +00:00
dholland faaf15b7e2 Remove traces of -D flag, which no longer does anything. 2012-05-12 19:47:26 +00:00
njoly 8b220255d1 Fix alignment display for temperature, fans and integer units. 2012-05-11 18:41:12 +00:00
joerg 52222de363 KNF 2012-05-10 15:36:09 +00:00
wiz d099c69274 PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.
2012-05-07 11:18:16 +00:00
wiz 66c3a8d39a The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).

Use patch from Abhinav Upadhyay in PR 46408 to fix this.
2012-05-04 23:50:26 +00:00
joerg 17770eb834 usage is dead. name_len should be read as unsigned byte. 2012-04-29 13:32:21 +00:00
dogcow d5de483ef7 As this code is used by tools, and thus needs to be portable,
eliminate all the mucking around for an undocumented, seemingly
unused field and use 0.
2012-04-27 20:58:54 +00:00
martin ac1de44af3 "errs" might be clobbered by longjmp, so declare it volatile. 2012-04-25 22:35:00 +00:00
christos f9d287c05c forgot the %s for the error 2012-04-25 18:07:45 +00:00
christos 1ce3b4a502 - don't declare victory when there are errors.
- better error messages.
2012-04-25 17:33:49 +00:00
wiz 7ee504a202 Sync with reality, From Abhinav Upadhyay in private mail. 2012-04-22 21:29:27 +00:00
wiz 1c81341419 Add HISTORY section. From Abhinav Upadhyay in private mail. 2012-04-22 21:27:07 +00:00
roy 258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
adam a92b391e5e Fix building tools 2012-04-20 13:28:27 +00:00
dholland 0a7a01f2e2 Fix build failure reported by bracket.
(shouldn't this size_t be ino_t?)
2012-04-19 19:48:14 +00:00
christos b825b96b8e WARNS=5 2012-04-19 17:28:25 +00:00
christos ad1d2050fc - fix compilation isses
- add some error checking
- avoid alloca
- add missing frees
2012-04-19 17:09:53 +00:00
wiz 78496082c1 New sentence, new line. 2012-04-19 16:00:25 +00:00
ttoth 0751a667c7 added chfs support for makefs 2012-04-19 15:36:06 +00:00
cegger 3f7c493abc print cpu family for AMD CPU families 0x12 - 0x15 2012-04-17 13:00:09 +00:00
wiz f41e473d4b Handle pages with slashes in their names better.
From Abhinav Upadhyay in private mail.
2012-04-15 15:56:52 +00:00
rmind 9ffbe6bd3d Add initial NPF regression tests integrated with RUMP framework (running the
kernel part of NPF in userland).  Other tests will be added once converted to
RUMP framework.  All tests are in the public domain.

Some Makefile fixes from christos@.
2012-04-14 21:57:29 +00:00
joerg 53baf6b85e Don't assign non-integral constants to integral variables. 2012-04-12 11:46:14 +00:00
wiz 1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
apb d0663c218f Add the result from sqlite3_errmsg() to some error messages.
Now we can get "apropos: Unable to query schema version: database is locked"
instead of just "apropos: Unable to query schema version".
2012-04-07 10:44:58 +00:00
christos 5727fadda2 use getfsspecname() 2012-04-07 04:52:20 +00:00
gson 4caffa5d5e When printing the list of valid console names, don't treat the consoles[]
array as NULL terminated, because it's not.
2012-04-06 10:10:11 +00:00
cegger 135e6a1977 report l3 cache information on AMD Family 10h and newer processors 2012-04-05 11:05:53 +00:00
christos bac18f3659 Pull FreeBSD fix from Andreas Tobbler:
- Write the ISO9660 descriptor after the apm partition entries.
- Fill the needed pmPartStatus flags. At least the OpenBIOS
  implementation relies on these flags.

This commit fixes the panic seen on OS-X when inserting a FreeBSD/ppc disc.
Additionally OpenBIOS recognizes the partition where the boot code is located.
This lets us load a FreeBSD/ppc PowerMac kernel inside qemu.
2012-04-02 19:01:21 +00:00
nisimura dfe17599fe Change Ethertype 0x80df symbolic name. According to the real
if_ether.h, dated back to 1991, Integrated Solution, Inc. used the
following definitions.

#define ETHERTYPE_WIPC          0x80DE  /* ISI: WIPC protocol */
#define ETHERTYPE_ISIBOOT       0x80DF  /* ISI: bootd enet protocol */
#define ETHERTYPE_ISIBOOT_OLD   0x0807  /* ISI: old bootd (NOT OFFICIAL!) */
#define ETHERTYPE_RFS           0x0813  /* ISI: RFS protocol (NOT OFFICIAL!) */

No functionality change is expected.
2012-04-02 09:01:30 +00:00
dholland 343b89fd86 The movers came, a long time ago. Closes PR 44860. 2012-04-01 00:29:20 +00:00
wiz 1bfb052ed2 - improve wording;
- replace references to resolver(5) with ones to resolv.conf(5);
- remove references to FreeBSD (which were copied 1:1 from their
  man page).

From patch by Bug Hunting.
2012-03-29 18:37:45 +00:00
christos 537334cc90 add aliases for the protocol format 2012-03-28 17:39:33 +00:00
christos cd4f9f6dc5 PR/41061: Steven Drake: mtree -d complains about extra symlinks 2012-03-25 16:07:04 +00:00
christos 22bbe71d05 Disengage ipf 2012-03-23 21:30:57 +00:00
wiz 3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
matt d6a05e11ac Use a little const for quotes strings. 2012-03-21 10:11:34 +00:00
wiz 5f1d89ea80 Use Lk. 2012-03-17 11:11:35 +00:00
njoly d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
joerg 66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
christos da8fd09e2d don't leak the branch target array. 2012-03-12 15:32:02 +00:00
christos 65aaee04ca - better printing of type/code flags/mask
- pass the instruction start pointer, instead of subtracting 1 to account for it
2012-03-10 22:55:28 +00:00
christos a2855f0d2c Add a small disassembler. 2012-03-10 22:21:50 +00:00
wiz d59179dffb Add missing word. 2012-03-10 19:38:16 +00:00
dsl 095ac4e735 Some FAT16 filesystems don't have 'hidden sectors' correctly set to
the offset of the filesystem on the disk.
Let '-b s1blk' be used to fix the value.
2012-03-10 18:42:18 +00:00