Commit Graph

207955 Commits

Author SHA1 Message Date
joerg c09f2f1d25 If the default path doesn't result in a match, bail out early instead of
running into a segmentation fault. Based on patch by Abhinav Upadhyay.
2012-01-03 17:49:57 +00:00
pgoyette d5ff17bf98 Display current mount point, rather than previous one, when printing
the "replaying log to disk" message.

OK dholland@

Fixes PR kern/39609
2012-01-03 15:44:00 +00:00
reinoud 0e68596237 Set the total memory length to be ALL the space *before* the kernel. 2012-01-03 12:16:16 +00:00
reinoud afa1fedea0 Use M_WAITOK instead of M_NOWAIT for the stack allocations 2012-01-03 12:10:04 +00:00
reinoud cc21223919 Rename the debug printf's to use a thunk_ prefix to avoid confusion. 2012-01-03 12:05:00 +00:00
reinoud 8873d4afdb Fix logic that checks if its the kernel or a userland process that causes the
trap. Signal sending still needs to be addressed.
2012-01-03 10:53:46 +00:00
kiyohara f58fcf6acf Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
2012-01-03 07:36:02 +00:00
skrll 28d6e7ce06 Fix the CPU #ifdefs 2012-01-03 06:18:24 +00:00
skrll 7bf579b1ee Tidy up the M[FT]CPU_* hv-specific instructions some more.
Same code before and after change.
2012-01-03 06:11:21 +00:00
macallan 7a8eb8051b support anti-aliased fonts in 32bit colour
enable with options RADEONFB_DEPTH_32
2012-01-03 00:25:49 +00:00
liamjfoy e3d3462211 Remove dead variable 2012-01-02 22:17:11 +00:00
perseant f9b3466d45 * Remove PGO_RECLAIM during lfs_putpages()' call to genfs_putpages(),
to avoid a live lock in the latter when reclaiming a vnode with
  dirty pages.

* Add a new segment flag, SEGM_RECLAIM, to note when a segment is
  being written for vnode reclamation, and record which inode is being
  reclaimed, to aid in forensic debugging.

* Add a new segment flag, SEGM_SINGLE, so that opportunistic writes
  can write a single segment's worth of blocks and then stop, rather
  than writing all the way up to the cleaner's reserved number of
  segments.

* Add assert statements to check mutex ownership is the way it ought
  to be, mostly in lfs_putpages; fix problems uncovered by this.

* Don't clear VU_DIROP until the inode actually makes its way to disk,
  avoiding a problem where dirop inodes could become separated
  (uncovered by a modified version of the "ckckp" forensic regression
  test).

* Move the vfs_getopsbyname() call into lfs_writerd.  Prepare code to
  make lfs_writerd notice when there are no more LFSs, and exit losing
  the reference, so that, in theory, the module can be unloaded.  This
  code is not enabled, since it causes a crash on exit.

* Set IN_MODIFIED on inodes flushed by lfs_flush_dirops.  Really we
  only need to set IN_MODIFIED if we are going to write them again
  (e.g., to write pages); need to think about this more.

Finally, several changes to help avoid "no clean segments" panics:

* In lfs_bmapv, note when a vnode is loaded only to discover whether
  its blocks are live, so it can immediately be recycled.  Since the
  cleaner will try to choose ~empty segments over full ones, this
  prevents the cleaner from (1) filling the vnode cache with junk, and
  (2) squeezing any unwritten writes to disk and running the fs out of
  segments.

* Overestimate by half the amount of metadata that will be required
  to fill the clean segments.  This will make the disk appear smaller,
  but should help avoid a "no clean segments" panic.

* Rearrange lfs_writerd.  In particular, lfs_writerd now pays
  attention to the number of clean segments available, and holds off
  writing until there is room.
2012-01-02 22:10:44 +00:00
reinoud b9d601ff9f Remove tests that are dubious and should be (re)moved anyway. 2012-01-02 22:02:51 +00:00
reinoud 6e429eb748 Add UDF, NILFS and NFS to the standard file systems and boost the symbol table
size to accomodate for this.
2012-01-02 21:48:14 +00:00
perseant 72d61f7290 In lfs_cleanerd, check errno earlier, to avoid premature exit when the
real errno was EAGAIN.

When coalescing, check against NULL to avoid seg fault.
2012-01-02 21:35:17 +00:00
dholland b972515e63 Remove unnecessary cast to caddr_t. 2012-01-02 21:29:55 +00:00
dholland 677bc7fd8c stdlib.h, not malloc.h 2012-01-02 21:29:29 +00:00
wiz d6829e5b30 Bump date for previous. Move RCS Id to top of file. 2012-01-02 18:07:21 +00:00
wiz b3da5e68a9 Remove trailing whitespace. 2012-01-02 18:06:37 +00:00
wiz 067d9a870e Use more markup. New sentence, new line. Sort sections.
Bump date for previous.
2012-01-02 18:04:34 +00:00
wiz adca3c43ee New sentence, new line. Bump date for previous. 2012-01-02 18:02:00 +00:00
skrll fb2a616612 From OpenBSD...
Fix encoding of DIAG instructions in the MFCPU_T and MTCPU_T macros. MTCPU_T
was encoded as a read instruction, while MFCPU_T was encoded as a
read-through-TH instruction, although the only uses of it concern registers
read through CH.

(You are not supposed to understand this, this is a dark corner of undocumented
rotten PA-RISC bowels).

Cache SID hashing will now correctly be disabled on PCXS, PCXT and PCXT'
processors.

Proper encoding from the old PA-RISC mklinux sources; tested on 720 (PCXS)
and 715/75 (PCXT); ok kettenis@
2012-01-02 16:13:12 +00:00
dholland 27eed90c42 Clarify the behavior of exit(x) for out-of-range x. PR 45769 2012-01-02 15:55:29 +00:00
rkujawa 5ec5041c48 Correct the include path. 2012-01-02 15:41:51 +00:00
reinoud 7142b8ed9f Do release all l2 pages on destroy 2012-01-02 09:49:12 +00:00
wiz dafcaac4c0 Remove unnecessary quoting. From Abhinav Upadhyay. 2012-01-02 00:35:53 +00:00
wiz d62e358d67 Fix typo, from Abhinav Upadhyay. 2012-01-02 00:35:02 +00:00
jmcneill 31469ba145 fix range check for mmap 2012-01-02 00:20:30 +00:00
christos 952b88962c a typo and missing markup 2012-01-01 23:42:03 +00:00
riz 35e4abfb48 Fix typo in comment. 2012-01-01 23:26:22 +00:00
christos 35a585027b Improve returns description from Solar Designer. 2012-01-01 23:18:51 +00:00
reinoud d8d4ad078a Rewrite usermodes pmap to use indirect adressing significantly reducing pmap
memory usage. Typically a decimation. This is done using L1 and L2 mappings.
2012-01-01 21:40:22 +00:00
skrll e51a4c0759 When converting a floating value to an integer, properly raise the "invalid"
exception when the floating value is infinite or NaN or if the integral part
of the floating value exceeds the range of the integer type, as required by
the C99/IEEE754 standard.

Fixes Python 2.6 build on hppa.

From OpenBSD.
2012-01-01 20:04:36 +00:00
rkujawa a7bcbbf244 Note the fact that wsmoused will work only with some wsdisplay drivers. 2012-01-01 19:12:17 +00:00
phx e3c0375306 Handle devices with two network interfaces (e.g. a DSM-G600 with stge(4)
and ath(4)).
2012-01-01 18:25:03 +00:00
tteras 2713c54c73 From Rainer Weikusat <rweikusat@mobileactivedefense.com>: Fix one byte too
short memory allocation in isakmp_unity.c:splitnet_list_2str().
2012-01-01 17:31:42 +00:00
tteras 11e30c248c From Wolfgang Schmieder <wolfgang@die-schmieders.de>: Fix default NAT-T
port for listen { isakmp_natt } config directive.
2012-01-01 16:14:11 +00:00
tteras 40d768bf75 From Wolfgang Schmieder <wolfgang@die-schmieders.de>: Fix various typos in
comments and log messages. Fix default port used in copy_ph1addresses().
2012-01-01 15:57:31 +00:00
tteras dbe8969919 Fix myaddr_getsport() to return -1 if no suitable address is found. This is
used in pfkey.c:pk_recvacquire() to check if IKE negotiation should be
started or not.
2012-01-01 15:54:51 +00:00
tteras 838cfe4724 Fix the previous commit. 2012-01-01 15:44:06 +00:00
dholland 9d4234ad6c Add <sys/types.h> to <sys/quota.h> or the latter doesn't compile on
its own.
2012-01-01 15:41:16 +00:00
tteras b448c51c51 From Wolfgang Schmieder <wolfgang@die-schmieders.de>: Fix memory leaks from
configuration reading code, and clean up error handling.
2012-01-01 15:29:28 +00:00
phx c3ed2ca16a Add the description for the "mem:<address>" bootname. 2012-01-01 14:48:40 +00:00
phx 2be27e0188 Add Iomega StorCenter. 2012-01-01 14:16:41 +00:00
reinoud 6fb92c8edf Fix typo in comment 2012-01-01 13:52:51 +00:00
reinoud 768a37be48 According to the pmap manpage wired pages should not track RWM, so map them RW 2012-01-01 13:52:13 +00:00
wrstuden 2f786af8b7 Tweak white space so I get my annual commit. 2012-01-01 01:19:20 +00:00
riz c1792eb47d Welcome to 2012, Happy New Year!
Don't forget to adjust copyright date in new code.
2012-01-01 00:00:30 +00:00
christos 6aaa2a926a include stddef.h for offsetof 2011-12-31 22:42:25 +00:00
riz 99370de066 According to most other OSes and documentation sources, an MBR has
one "extended" partition and the partitions inside that are "logical"
partitions.  Make fdisk(8) man page follow suit.

Patch from Julian Fagir in PR#45695.
2011-12-31 22:18:56 +00:00