Commit Graph

188189 Commits

Author SHA1 Message Date
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
mlelstv
b076c4eba1 Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 23:13:13 +00:00
pooka
643ba90bf0 Globally define -Wno-pointer-sign, as it has become a pointless
exercise of "add it to every Makefile individually".

XXX: should autosynchronize with the rest of the kernel buildflags
in sys/conf/Makefile.kern.inc.
2010-02-16 20:42:44 +00:00
pooka
97fada1858 remove -D__NetBSD__ (it's done globally now) 2010-02-16 20:34:03 +00:00
wiz
0e14adec54 Remove trailing whitespace. 2010-02-16 19:59:31 +00:00
dyoung
a60f2abe1f PCI Configuration Mechanisms #1 and #2 are controlled by two to
three registers.  Let us think of the kernel operating the registers
in two steps:

1) Select: enable configuration cycles and select a range of
   configuration-space addresses.

2) Access: read or write a word in PCI configuration space.

To make the steps more explicit, extract some helper subroutines
from pci_conf_read(9) and pci_conf_write(9):

pci_conf_selector(tag, reg): from a pcitag_t and a register offset,
    create a word that enables configuration cycles and selects a
    configuration address range.

pci_conf_select(w): for `w' a word created by pci_conf_selector(),
    enable configuration cycles and select the address range indicated
    by `w'.

pci_conf_select(0): disable configuration cycles.

pci_conf_port(tag, reg): map a pcitag_t and a register offset to an I/O
    port where the configuration access should occur.

While I'm in here, change the panic(9) calls to panic("%s: ...",
__func__) instead of hard-coding a subroutine name.
2010-02-16 19:29:40 +00:00
rmind
2ef24fabcc kpreempt(9): add a note when kernel preemption is disabled/deferred.
Sprinkle cross-links, bump dates.
2010-02-16 19:21:30 +00:00
mlelstv
03a893b3fd Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 18:57:53 +00:00
skrll
bce51a654b Remove the dma24_ex method of dealing with BUS_DMA_24BIT and replace
with a uvm managed freelist of pages in the right range.
2010-02-16 16:56:29 +00:00
msaitoh
b601f7daf0 Add support for 82575, 82576 and 82580(ER).
- Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
  only one RX ring and with the legacy mode.
- Add support for 82576.
- Partial support for 82580.
- Partial support for the serdes systems.
2010-02-16 15:17:17 +00:00
msaitoh
ce91bef2c6 Add an entry for SAS controller. 2010-02-16 10:11:47 +00:00
msaitoh
ddce6a6e5c regen. 2010-02-16 10:10:26 +00:00