Commit Graph

177716 Commits

Author SHA1 Message Date
jym
5d7efd3c35 - add comments
- wrap long lines for easier reading
- make some debug messages a bit more relevant
2009-02-08 19:05:50 +00:00
reinoud
2ac9ba8c48 If mounting for read-write dont allow a session number to be specified since
its currently still misbehaving. If supported later, it would allow one or a
series of sessions on a sequential recordable media to be ignored as if they
never were created.

Also fix a small comment: its not the direct but the bootstrap disc strategy
that we close down.
2009-02-08 19:04:41 +00:00
pgoyette
66a822fbe7 The ADM1027 chip doesn't support i2c read_byte protocol, so in this
case we use send_byte followed by receive_byte.
2009-02-08 17:48:02 +00:00
pooka
8e52b87ec3 Don't try to fd_putfile() descriptors we didn't manage to fd_getfile().
Fixes local DoS panic described in kern/40570.
2009-02-08 16:38:12 +00:00
pooka
020ab015cd Add rumpnet_local to the setlists (at least most of the variants ;). 2009-02-08 16:30:48 +00:00
pooka
3f8c1c0f17 Add a PF_LOCAL rump kernel component. 2009-02-08 16:28:35 +00:00
pooka
38b67104c9 catchup 2009-02-08 16:18:09 +00:00
pgoyette
d94df08c58 Use pre-scripted i2c protocols rather than re-inventing our own. No
functional change intended.

While here, change some indentation to use tabs vs spaces.
2009-02-08 14:34:40 +00:00
jdc
940659ed15 Cosmetic clean up:
options<space><tab>
2009-02-08 13:05:50 +00:00
skrll
d5aae1338a s/posix_fadvise/__posix_fadvise50/ in last. 2009-02-08 11:58:25 +00:00
tsutsui
7ff508decb Fix a wrong indent in the previous. 2009-02-08 10:02:45 +00:00
pgoyette
c8996319e0 Avoid asking the controller to transfer zero bytes of data, since we have
no clue if this works or not.  This prevents the i2c quick_{read,write}
protocols from working, but the only place those protocols are used is in
the code that enumerates the i2c bus and that just doesn't make sense for
ki2c anyway.

While here, make sure that i2c send_{byte,word} operations will work even
if the caller provides the cmd (ie, register to modify) and the data in
separate args.  This is the normal calling sequence for iic_exec() routines
and will enable dbcool (4) driver to update device registers.

OK'd macallan@
2009-02-08 01:13:39 +00:00
abs
e468650cc4 Enable Xvfb build on vax and x68k to match every other port. 2009-02-08 00:50:07 +00:00
oster
2240ff3c50 Nuke #define MAXNSTRIPES which is no longer useful. 2009-02-07 20:41:30 +00:00
oster
ce32c4d01e Be consistent with wd.c and don't complain loudly if the underlying
device doesn't support flushing the cache.  Fixes an issue (reported
privately) where ST39120A drives are not capable of flushing the
cache, and RAIDFrame was incessantly complaining.
2009-02-07 20:36:49 +00:00
pooka
4c7be59b17 If fdvp is tvp, do nothing. Prevents local DoS panic described in
PR kern/38219... maybe.  This is hastily concocted fix for 5.0 and
I'm not sure if it has side-effects.
2009-02-07 19:42:57 +00:00
uebayasi
cede8f9855 Let 'gpt add' suggest a collect device name so that opendisk(3) called by
dkctl(8) succeeds.
2009-02-07 18:12:22 +00:00
uebayasi
0edd7181ba Make manual and usage consistent. No functional changes. 2009-02-07 17:21:44 +00:00
uebayasi
b9691b268f - Display cache, strategy, and list of wedges if no command is specified in
the command line.
- Sort list of wedges.

Posted on tech-userlevel a while ago, no objections then.
2009-02-07 17:13:32 +00:00
tsutsui
6a632bad63 Put misc notable changes pulled up to netbsd-5 after the branch date. 2009-02-07 16:43:45 +00:00
wiz
0247406d6a Bump date for previous. New sentence, new line. 2009-02-07 15:32:11 +00:00
skrll
8bfb786048 posix_fadvise needs help again. 2009-02-07 13:44:48 +00:00
mrg
9bd6af36c2 move COMPAT_50 into MONOLITHIC, as pointed out by enami@. 2009-02-07 09:58:10 +00:00
lukem
53e9163a95 sign-compare fix 2009-02-07 07:25:22 +00:00
agc
00be53a929 Remove argument names from function prototypes in header files. 2009-02-07 07:00:01 +00:00
agc
fd38df44a9 Be a bit more consistent with the naming scheme (and a bit less verbose). 2009-02-07 05:57:39 +00:00
agc
47eb47e6b3 The catch-all header file also includes version.h now, in case we want
to display the version number of the openpgpsdk library.
2009-02-07 05:37:57 +00:00
agc
6aef23c4e0 Re-order header file inclusion order to be alphabetic.
Print out the version number of the openpgpsdk library when showing the
version string.

Parse the existing ~/.gnupg/gpg.conf to get the default user id, if any.

Use the actual size of the arrays in snprintf(), rather than a size which
may or may not be accurate.

Get rid of an unused 8K array on the stack - it's not needed.
2009-02-07 05:36:51 +00:00
agc
02ebfd8cdc Minor cosmetic change - no functional difference. 2009-02-07 05:32:27 +00:00
agc
852e7a06c8 Be a bit less rigid when re-allocating memory - don't just keep doubling
the size we've allocated; instead, if the current size is more than 8 MiB,
then add 1 MiB on; current behaviour remains unchanged for re-allocations
less than 8 MiB.
2009-02-07 05:31:28 +00:00
agc
c62065c7b1 Check the characters we're given when trying to decide whether it's a
key id, or a user id/name.
2009-02-07 05:28:55 +00:00
agc
eab6d9dfa6 Only use O_BINARY if it's defined (rather than the vague WIN32 definition
test).

Minor cosmetic changes
2009-02-07 05:26:19 +00:00
pooka
9188159bb1 Make the clock interrupt tick based on absolute time instead of
relative time.  This prevents drifting.  Also, keep track of time
within userspace, so we do not have to make a syscall to get the
clock value.  This is approximately 7 times cheaper, but on the
negative side is limited to the clock interrupt frequency.
2009-02-07 01:50:29 +00:00
enami
e3b99073fb Previous code ususally works since compiler won't put gap between
those struct members but there is no reason to rely on that.
While here, I rewrite the loop using an usual idiom.  It shaves
both source and object code.
2009-02-06 23:56:26 +00:00
lukem
f0772e2d1f sign-compare fix 2009-02-06 23:47:44 +00:00
pooka
d90ea96094 wipe out last vestiges of rumpspl 2009-02-06 23:35:27 +00:00
enami
e1be06d405 Instead of missing NULL check in pipe_create, let the pipe_ctor to wait
on buffer allocation.  The other allocation is simply an optimization,
so leave it as is.
2009-02-06 23:04:57 +00:00
enami
60b229d2eb Use same expression to decide to use pool cache or not in both
kmem_alloc/free.
2009-02-06 22:58:49 +00:00
mschuett
499d95ff35 PR/40563: Takahiro Hayashi: syslogd(8) refers freed pointer on exiting 2009-02-06 21:09:46 +00:00
sketch
2157800b5b SUNOS is spelt __SunOS. Add missing prototypes. 2009-02-06 20:08:13 +00:00
pooka
b90ea1cecf Rip out the rwlock spl emulation code. It never did anything useful
except keep my feet warm by consuming an insane amount of cpu
cycles -- in rump our current "cpu" context is never interrupted
& we have MULTIPROCESSOR.

(itch i'm scratching: it made the networking stack 10-20% slower.
this is one of the places where fast code actually matters)
2009-02-06 20:01:41 +00:00
sketch
957effbd58 Needs errno.h 2009-02-06 19:53:23 +00:00
pooka
38ebe719b0 Add weak alias stubs for a few vfs routines used by the module code -
this allows us to link programs with only rumpkern and rumpnet again.
2009-02-06 19:49:13 +00:00
jakllsch
1db353a59c regen. 2009-02-06 19:40:31 +00:00
jakllsch
3b951f1af8 Add TI PCIxx12-series product IDs. 2009-02-06 19:36:35 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
jym
78f949082f Fix some whitespace and indentation. No functional change. 2009-02-06 18:34:19 +00:00
pooka
248ba1c364 Call uvm_page_unbusy() instead of manually yanking PG_BUSY out. 2009-02-06 18:29:19 +00:00
wiz
214cde7d25 Use more markup. Add comma in enumeration. Remove unintended arguments
from macro.
2009-02-06 14:44:44 +00:00
wiz
6853fcbb4e Mark up path with .Pa. 2009-02-06 14:42:20 +00:00