Commit Graph

188150 Commits

Author SHA1 Message Date
pooka
a798dc1e14 Change match to be based on the existence of the ugen device node
and signal the root hub interrupt only once we are succesfully able
to open the device node.  This makes it possible to insert a device
after the rump kernel was booted and have it succesfully attach
(does not make detach possible yet, though, as there are some
ugen and host kernel uhci/ohci/ehci evil crashies with that).

XXX: optimally, match would fail if there is a permanent error in
opening.  However, it is difficult to figure out the difference
between the device backing ugen not being present, a transient
error in opening and a permanent error in opening.  For example,
which of the latter two would EPERM be?  And, ugen returns ENXIO
if the device is not present, but how would be know that's really
the case and not some other ENXIO from elsewhere in the stack?
2010-02-18 15:25:13 +00:00
drochner
dda500d0d8 Disable mapping of virtual address 0 by user programs per default.
This blocks an easy exploit of kernel bugs leading to dereference
of a NULL pointer on some architectures (eg i386).
The check can be disabled in various ways:
-by CPP definitions in machine/types.h (portmaster's choice)
-by a kernel config option USER_VA0_DISABLED_DEFAULT=0
-at runtime by sysctl vm.user_va0_disabled (cannot be cleared
 at securelevel>0)
2010-02-18 14:57:01 +00:00
pgoyette
fe9cd1c415 Print correct temperature value, and properly display negative temperatures.
Resolves PR kern/36615
2010-02-18 14:10:15 +00:00
wiz
8f657e21de Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
pgoyette
fedb8afd44 Enhance DPRINTF to use AcpiFormatException as suggested in PR kern/40130 2010-02-18 13:52:33 +00:00
wiz
40effc38c9 Pull over some of Jason McIntyre's fixes for newfs_ext2fs.
Suggested by tsutsui.
2010-02-18 13:51:45 +00:00
wiz
380455a930 Fix pasto noted by tsutsui. 2010-02-18 13:49:19 +00:00
wiz
eedc241ad5 New sentence, new line. Add EXIT STATUS section and use .Ex.
Fix macro argument abuse.
Use Aq instead of \*[Lt]\*[Gt].
2010-02-18 13:14:51 +00:00
pooka
7775600816 Also, don't try to figure out the size of devices if size matters not. 2010-02-18 12:32:30 +00:00
pgoyette
f2b6b76565 If we're going to valdate things, at least do it correctly. 2010-02-18 12:30:53 +00:00
martin
c9c80e594c Since we call /usr and /var with absolute paths, lets do that for /tmp
as well.
2010-02-18 12:21:52 +00:00
pooka
88b1bf8a5e Allow NULL as size and file type pointers. 2010-02-18 12:21:28 +00:00
tron
10109091b2 Add support for "-L" option (longest line) as present in the GNU and
FreeBSD version of "wc".

No objections on "tech-userlevel" mailing list.
2010-02-18 10:43:50 +00:00
kiyohara
23849e1fa6 Remove unnecessary line-feed. 2010-02-18 07:24:16 +00:00
wiz
e386b4ea79 Use Dq for double quotes; remove trailing whitespace. 2010-02-18 06:57:17 +00:00
macallan
490ba2f1c7 Abort setup when we find no audio codec to avoid crashing later on with
ISDN-only cards.
Should fix PR41055
2010-02-18 02:21:38 +00:00
eeh
836736c39d Fix root filesystem support. 2010-02-18 01:14:00 +00:00
christos
55499e9fb3 Exclude root, since that is done in fsck_root. 2010-02-17 23:32:07 +00:00
christos
639f597520 Add -x <mountpoint> ``exclude'' option. 2010-02-17 23:30:21 +00:00
cnst
a64a3071ec grammar in kprintf.9 (s/or/and/ and add some commas); ok wiz, pgoyette 2010-02-17 22:04:14 +00:00
wiz
841db612d9 Various fixes from Jason McIntyre <jmc@kerhand.co.uk>. 2010-02-17 21:39:14 +00:00
pooka
d97a943f37 Support SCSIVERBOSE. 2010-02-17 20:44:34 +00:00
pooka
01ce72cef8 * support cd devices (@scsibus & @atapibus, per libumass)
* support cd9660
* add "probe" keyword, which just prints the dmesg in verbose form
2010-02-17 20:43:35 +00:00
pooka
80b0497c2e * allow one more request
* print warning if a request which might fail, fails
* report error from bulk transfers
2010-02-17 20:39:53 +00:00
bouyer
1d8e4d24e4 Make block fields one char wider; allows to sanely display quotas up to
99.9GB while still fitting 80 columns.
Something else needs to be found for the long term ...
2010-02-17 18:55:14 +00:00
christos
0f0ea55dc4 Fix build issue with our make system building libnvpair.so from libnvpair.c
and libnvpair.so from *.so by renaming libnvpair.c to lib_nvpair.c
2010-02-17 17:36:32 +00:00
christos
48bf0eec29 Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
	- initialize sp->goback and sp->goahead very early in tzload
	- replace all malloc calls with callocs, and remove the bogus
	  casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
martin
d41883434c add mount_tmpfs 2010-02-17 16:15:15 +00:00
martin
7171f90002 We can now boot from FFSv2, so offer it + even use it as a default. 2010-02-17 16:11:00 +00:00
martin
c82870bc88 eeh says we should not enable fsck_lfs on lfs partitions 2010-02-17 16:09:52 +00:00
christos
8752bdfe89 PR/42828: Richard Hansen: Don't evaluate ${ENV} if not interactive.
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03
2010-02-17 15:57:24 +00:00
pooka
d317936de6 umgah. meant fts, not fsu 2010-02-17 15:54:10 +00:00
pooka
046f5845a2 Bump the initial rootdir link count guess to a ludicrous value. 2010-02-17 15:50:54 +00:00
eeh
feea5ba263 Add support for ffsv2 and lfs. 2010-02-17 15:50:06 +00:00
eeh
55cbbbda21 Fix ffsv2 support. 2010-02-17 15:49:19 +00:00
pooka
73655f9fb0 Save "." attributes in readdir. This fixes the root link count
after readdir is called for the root dir the first time (yes,
there's still a window of wrong link count after the fs is mounted.
it's currently quite difficult to call sftp_readdir() from outside
the main loop).

Should fix "find /mnt" problem for a mountpoint with more than the
"guessed" amount of subdirectories, as reported by dyoung.
2010-02-17 15:47:36 +00:00
pooka
65dca8eead * add a rant about why MPSAFE isn't enabled even though puffs code is
* predict_false that we are mounting when calling statvfs
* KNF
2010-02-17 14:32:08 +00:00
skrll
27e0e1c809 Fix typo in previous. It's not a good idea to let uvm mess with kernel
text pages.
2010-02-17 14:16:53 +00:00
pooka
35257440bd Invert inverted comment and verbosify it. 2010-02-17 13:28:40 +00:00
skrll
6216966bd3 Add some comments. 2010-02-17 11:33:51 +00:00
skrll
66e7a27415 Semi-colons help. 2010-02-17 11:31:39 +00:00
skrll
def9f5d433 Whitespace. 2010-02-17 11:21:24 +00:00
skrll
fe12c9786e Add aliasing defines for PA2.0 cpus.
They will cause unnecessary non-equiv alias handling on PA1.x machines if
PA2.0 cpu support is compiled into the kernel.  GENERIC currently doesn't
have this support enabled.

The performance hit of this needs testing.
2010-02-17 11:14:10 +00:00
skrll
397f09772a Add a prototype for pmap_page_physload. 2010-02-17 10:03:30 +00:00
plunky
de7a8fb394 sort entries in structure
clarify init name type for CSR modules
2010-02-17 09:49:41 +00:00
kiyohara
3b90717a87 Fix type missmatch.
forgot to commit since change ia64/syscall.c,1.5.
2010-02-17 06:06:50 +00:00
snj
c4acb3fa95 Fix a thinko: the DHCP _client_ is doing the requesting.
Reported by Anonymous in PR misc/39162.
2010-02-17 01:17:36 +00:00
snj
29aa1b84fb Fix punctuation and update "SEE ALSO" section. From Bug Hunting in
PR misc/40293.
2010-02-17 00:49:21 +00:00
dyoung
c26d0a3ad4 Initialize the temporary pmf_qual_t in pmf_device_subtree_release()
to avoid a failed ds != NULL assertion, later.
2010-02-17 00:15:24 +00:00
mlelstv
7974872552 Three changes in a single commit.
- drop the notion of frags (LFS fragments) vs fsb (FFS fragments)
  The code uses a complicated unity function that just makes the
  code difficult to understand.

- support larger sector sizes. Fix disk address computations
  to use DEV_BSIZE in the kernel as required by device drivers
  and to use sector sizes in userland.

- Fix several locking bugs in lfs_bio.c and lfs_subr.c.
2010-02-16 23:20:30 +00:00