dragonfly.git
4 years agokernconf.5: Add info on 64-bit kernels & improve markup
Thomas Nikolajsen [Mon, 28 Sep 2009 17:45:59 +0000 (19:45 +0200)]
kernconf.5: Add info on 64-bit kernels & improve markup

4 years agoln: Drop deprecated flag in man page example & sync usage() to man page
Thomas Nikolajsen [Sat, 26 Sep 2009 22:18:19 +0000 (00:18 +0200)]
ln: Drop deprecated flag in man page example & sync usage() to man page

 * `sysctl -w' is deprecated; drop `-w' in man page example

 * sync usage() to man page

 * break lines at end of sentence

4 years agovarsym: Update man page & sync usage()
Thomas Nikolajsen [Sun, 27 Sep 2009 11:17:43 +0000 (13:17 +0200)]
varsym: Update man page & sync usage()

 * fix synopsis: multiple variables can be handled

 * sort options

 * sync usage() to synopsis

 * improve markup

 * break line at end of sentence

4 years agoaibs: Add ASUSTeK AI Booster ACPI ATK0110 sensors
Thomas Nikolajsen [Sun, 27 Sep 2009 21:04:57 +0000 (23:04 +0200)]
aibs: Add ASUSTeK AI Booster ACPI ATK0110 sensors

Submitted-by: Constantine A. Murenin <cnst+dfly@bugmail.mojo.ru>
DragonFly bugs: <http://bugs.dragonflybsd.org/issue1529>

4 years agomount_hammer(8): Update man page & sync usage()
Thomas Nikolajsen [Sun, 27 Sep 2009 21:52:46 +0000 (23:52 +0200)]
mount_hammer(8): Update man page & sync usage()

 * fix synopsis: -u not optional in last form of synopsis

 * sort options

 * improve description of -o flag:
non HAMMER specific options are also supported

 * improve markup

 * break lines at end of sentence

 * sync usage() to synopsis

4 years agohammer.5: Add info on general items & new features
Thomas Nikolajsen [Mon, 28 Sep 2009 00:33:17 +0000 (02:33 +0200)]
hammer.5: Add info on general items & new features

 * add more info on maximum HAMMER file system size & minimum recommended

 * add info on nohistory chflags(1) flag

 * .. rebalance

 * .. prune-min

4 years agonewfs_hammer(8): Update man page and program messages
Thomas Nikolajsen [Mon, 28 Sep 2009 01:01:43 +0000 (03:01 +0200)]
newfs_hammer(8): Update man page and program messages

 * add `B' / `byte' in a few places

 * sort options

 * sync usage() to synopsis

 * improve markup

4 years agovnconfig.8: Describe autocloning & improve markup
Thomas Nikolajsen [Mon, 28 Sep 2009 12:22:30 +0000 (14:22 +0200)]
vnconfig.8: Describe autocloning & improve markup

4 years agovn.4: Describe autocloning & use standard description for kernel modules
Thomas Nikolajsen [Mon, 28 Sep 2009 17:20:55 +0000 (19:20 +0200)]
vn.4: Describe autocloning & use standard description for kernel modules

4 years agohammer(8): Update man page & sync usage()
Thomas Nikolajsen [Mon, 28 Sep 2009 13:20:49 +0000 (15:20 +0200)]
hammer(8): Update man page & sync usage()

 * adjust description to prune-min

 * add description of prune-min syntax
and use same syntax in error message, usage() & man page

 * add info on HAMMER version 2

 * remove stale note:
'PFS support is currently very new and experimental.'

 * sort options

 * sync usage() to synopsis

 * improve markup

 * break lines at end of sentence

4 years agoboot - Bring in real-mode fixes for BIOS calls
Matthew Dillon [Fri, 18 Sep 2009 19:18:55 +0000 (12:18 -0700)]
boot - Bring in real-mode fixes for BIOS calls

* Make BIOS calls in real mode now (I think), and no longer use the
  pmap hacks.

  Improves BIOS compatibility, particularly when booting from a USB
  mass storage device.

Taken-from: FreeBSD
Submitted-by: Jordan Gordeev <smtms@crater.dragonflybsd.org>
4 years agoHook mount_hpfs into the build. It builds and even works.
Sascha Wildner [Wed, 16 Sep 2009 15:05:30 +0000 (17:05 +0200)]
Hook mount_hpfs into the build. It builds and even works.

However, comment out all code related to the (undocumented) -W option.
It would be painful to convert it to libiconv and the current code
depends on /usr/libdata/msdosfs which is gone.

Tested-with-OS/2: polachok

4 years agoinstaller: Move the remaining installer related files out of /usr/local.
Sascha Wildner [Sat, 26 Sep 2009 19:06:27 +0000 (21:06 +0200)]
installer: Move the remaining installer related files out of /usr/local.

Reported-by: y0netan1
4 years agodevfs - Change make_dev_covering to use dev_ops
Alex Hornung [Fri, 25 Sep 2009 21:49:30 +0000 (22:49 +0100)]
devfs - Change make_dev_covering to use dev_ops

* Change make_dev_covering and all other related functions to use a
  backing dev_ops instead of a backing cdev.
  This allows for a more generic use of make_dev_covering, without the
  need of an explicit backing cdev.

* Also change make_autoclone_dev to use the new make_dev_covering to
  avoid maj/min collision between base clonable devices.

4 years agotty_pty - Use different dev_ops for unix98 ptys
Alex Hornung [Fri, 25 Sep 2009 21:45:55 +0000 (22:45 +0100)]
tty_pty - Use different dev_ops for unix98 ptys

* Use a different struct dev_ops for unix98 ptys, so a different major
  number is automatically allocated for them. This avoids maj/min collision
  between old-style bsd ptys and unix98 ptys.

4 years ago__sys__exit() -> __sys_exit()
Hasso Tepper [Fri, 25 Sep 2009 07:20:43 +0000 (10:20 +0300)]
__sys__exit() -> __sys_exit()

Reported-by: Jeremy C. Reed <reed at reedmedia.net>
4 years agoamd64: sync cpu/stdint.h with i386
Simon 'corecode' Schubert [Tue, 22 Sep 2009 00:18:48 +0000 (17:18 -0700)]
amd64: sync cpu/stdint.h with i386

4 years agoamd64: install intrinsic headers
Simon 'corecode' Schubert [Tue, 22 Sep 2009 00:17:57 +0000 (17:17 -0700)]
amd64: install intrinsic headers

4 years agodma: defer delivery if STARTTLS fails
Simon Schubert [Mon, 21 Sep 2009 13:37:30 +0000 (15:37 +0200)]
dma: defer delivery if STARTTLS fails

4 years agodma: treat connect status messages properly
Simon Schubert [Mon, 21 Sep 2009 11:28:37 +0000 (13:28 +0200)]
dma: treat connect status messages properly

4 years agodma: rework config parsing
Simon Schubert [Mon, 21 Sep 2009 11:16:07 +0000 (13:16 +0200)]
dma: rework config parsing

4 years agodisk - Also probe NetBSD slices for labels
Alex Hornung [Sun, 20 Sep 2009 19:59:48 +0000 (20:59 +0100)]
disk - Also probe NetBSD slices for labels

* Also probe NetBSD slice types (169 / 0xa9) for disklabels, as we also
  support them.

Reported-by: trevorjk
4 years agomd - when setdiskinfo, also set no of blocks
Alex Hornung [Sun, 20 Sep 2009 19:52:44 +0000 (20:52 +0100)]
md - when setdiskinfo, also set no of blocks

* Before calling disk_setdiskinfo, make sure that the number of blocks
  is also set or no probing will be triggered at that point.

* Also disable setdiskinfo on open, as it shouldn't be needed.

* Fix nomenclature md0c -> md0s0.

* This also fixes root mount from md disk image.

Reported By: Alexander Polakov
Dragonfly-bug: http://bugs.dragonflybsd.org/issue1522

4 years agodma: perform MX lookups
Simon Schubert [Sun, 20 Sep 2009 18:58:37 +0000 (20:58 +0200)]
dma: perform MX lookups

4 years agodma: allow empty sender in queue files
Simon Schubert [Sun, 20 Sep 2009 18:57:34 +0000 (20:57 +0200)]
dma: allow empty sender in queue files

Empty senders happen when a bounce gets queued, so we need to accept
such queue files.

4 years agodma: create spool files mode 660
Simon Schubert [Sun, 20 Sep 2009 18:56:32 +0000 (20:56 +0200)]
dma: create spool files mode 660

dma runs setgid mail, so we need to create files which are group
readable, otherwise we won't be able to read them later.

4 years agosh(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 20 Sep 2009 17:27:43 +0000 (19:27 +0200)]
sh(1): Raise WARNS to 6 and fix warnings.

4 years agolex(1): Raise WARNS to 2.
Sascha Wildner [Sun, 20 Sep 2009 15:27:54 +0000 (17:27 +0200)]
lex(1): Raise WARNS to 2.

4 years agotop(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 20 Sep 2009 15:18:22 +0000 (17:18 +0200)]
top(1): Raise WARNS to 6 and fix warnings.

4 years agowall(1)/syslogd(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 20 Sep 2009 14:53:31 +0000 (16:53 +0200)]
wall(1)/syslogd(8): Raise WARNS to 6 and fix warnings.

4 years agoSync vipw(8) with FreeBSD.
Sascha Wildner [Sun, 20 Sep 2009 14:18:37 +0000 (16:18 +0200)]
Sync vipw(8) with FreeBSD.

Mainly, use libutil for passwd manipulation.

4 years agobthcid(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sun, 20 Sep 2009 11:19:28 +0000 (13:19 +0200)]
bthcid(8): Raise WARNS to 6 and fix warnings.

4 years agoiscontrol.8: fix date
Sascha Wildner [Sat, 19 Sep 2009 18:53:34 +0000 (20:53 +0200)]
iscontrol.8: fix date

4 years agokiconv.3: We have no iconv(9) manual page.
Sascha Wildner [Sat, 19 Sep 2009 17:45:12 +0000 (19:45 +0200)]
kiconv.3: We have no iconv(9) manual page.

4 years agoancontrol(8): silence gcc44 warnings
Sascha Wildner [Sat, 19 Sep 2009 14:51:45 +0000 (16:51 +0200)]
ancontrol(8): silence gcc44 warnings

4 years agogcc44 warns: Put input() under YY_NO_INPUT and set that if it isn't used.
Sascha Wildner [Sat, 19 Sep 2009 14:48:10 +0000 (16:48 +0200)]
gcc44 warns: Put input() under YY_NO_INPUT and set that if it isn't used.

4 years agoSilence the remaining amd64 warnings for stuff that has WARNS set.
Sascha Wildner [Sat, 19 Sep 2009 06:42:19 +0000 (08:42 +0200)]
Silence the remaining amd64 warnings for stuff that has WARNS set.

4 years agoLower some WARNS in binutils to silence amd64 warnings.
Sascha Wildner [Sat, 19 Sep 2009 06:40:24 +0000 (08:40 +0200)]
Lower some WARNS in binutils to silence amd64 warnings.

4 years agoAdd libkiconv to the list of libraries which can be referenced with .Lb
Sascha Wildner [Fri, 18 Sep 2009 18:51:20 +0000 (20:51 +0200)]
Add libkiconv to the list of libraries which can be referenced with .Lb

Taken-from: FreeBSD

4 years agogetdevpath.3: Fix reference and sort.
Sascha Wildner [Fri, 18 Sep 2009 18:47:23 +0000 (20:47 +0200)]
getdevpath.3: Fix reference and sort.

4 years agokgdb(1): _KERNEL_STRUCTURES is defined globally, so don't redefine it here.
Sascha Wildner [Fri, 18 Sep 2009 18:41:50 +0000 (20:41 +0200)]
kgdb(1): _KERNEL_STRUCTURES is defined globally, so don't redefine it here.

4 years agoRemove /usr/pkg/xorg from paths.
Alexander Polakov [Fri, 18 Sep 2009 17:14:57 +0000 (21:14 +0400)]
Remove /usr/pkg/xorg from paths.

pkgsrc no longer installs anything there

4 years agogcc44 warnings: irr_raf_mask_onlink is 1 bit.
Sascha Wildner [Fri, 18 Sep 2009 13:03:54 +0000 (15:03 +0200)]
gcc44 warnings: irr_raf_mask_onlink is 1 bit.

4 years agogcc44 warnings: Remove unused functions.
Sascha Wildner [Fri, 18 Sep 2009 12:59:00 +0000 (14:59 +0200)]
gcc44 warnings: Remove unused functions.

4 years agogcc44 warnings: Remove deprecated #ident.
Sascha Wildner [Fri, 18 Sep 2009 12:56:48 +0000 (14:56 +0200)]
gcc44 warnings: Remove deprecated #ident.

4 years agoFix some 'unused variable' warnings.
Sascha Wildner [Thu, 17 Sep 2009 07:13:24 +0000 (09:13 +0200)]
Fix some 'unused variable' warnings.

4 years agopkg_radd/pkg_search: add support for BINPKG_BASE
Simon Schubert [Wed, 16 Sep 2009 23:35:22 +0000 (01:35 +0200)]
pkg_radd/pkg_search: add support for BINPKG_BASE

BINPKG_BASE allows the user to set the base of a package mirror
hierarchy, instead of having to select a specific set of packages which
might get stale.

4 years agodevfs: Remove some unneeded variables.
Sascha Wildner [Wed, 16 Sep 2009 14:57:20 +0000 (16:57 +0200)]
devfs: Remove some unneeded variables.

4 years agoiscsi_initiator(4): Remove an unneeded variable.
Sascha Wildner [Wed, 16 Sep 2009 14:56:09 +0000 (16:56 +0200)]
iscsi_initiator(4): Remove an unneeded variable.

4 years agodevfsctl(8): Some style cleanup.
Sascha Wildner [Wed, 16 Sep 2009 14:54:22 +0000 (16:54 +0200)]
devfsctl(8): Some style cleanup.

4 years agomergemaster.sh - Fix check for devfs
Alex Hornung [Wed, 16 Sep 2009 14:21:44 +0000 (15:21 +0100)]
mergemaster.sh - Fix check for devfs

* mergemaster.sh was checking for sysctl node vfs.devfs.generation,
  which does not exist on DragonFly. Change this check to vfs.devfs.

4 years agorc.d/diskless - Fix check for devfs
Alex Hornung [Wed, 16 Sep 2009 14:18:39 +0000 (15:18 +0100)]
rc.d/diskless - Fix check for devfs

* rc.d/diskless was checking for sysctl node vfs.devfs.generation, which
  does not exist on DragonFly. Change this check to vfs.devfs.

4 years agoukbd - Add USBD_CALLBACK_LAST back in
Matthew Dillon [Sun, 27 Sep 2009 19:58:53 +0000 (12:58 -0700)]
ukbd - Add USBD_CALLBACK_LAST back in

* The USBD_CALLBACK_LAST flag was mistakenly removed in the kbdmux
  commit.  Add it back in.

  This unbreaks usb keyboards when dropping into a mountroot prompt
  or dropping into ddb.

4 years agokbdmux - Fix wait flag. Fixes mountroot> and other issues.
Matthew Dillon [Sun, 27 Sep 2009 19:56:40 +0000 (12:56 -0700)]
kbdmux - Fix wait flag.  Fixes mountroot> and other issues.

* The wait flag was being ignored.  Fix it so it properly waits until
  a key is pressed.

  This broke the mountroot> prompt.

5 years agohammer.8: Mention that rebalance is part of cleanup.
Sascha Wildner [Tue, 22 Sep 2009 18:29:58 +0000 (20:29 +0200)]
hammer.8: Mention that rebalance is part of cleanup.

5 years agoKernel - Fix NOTE_EXIT.
Matthew Dillon [Tue, 22 Sep 2009 04:57:32 +0000 (21:57 -0700)]
Kernel - Fix NOTE_EXIT.

* NOTE_EXIT could crash the machine due to a knote being left on a
  process list and then zfree()'d.

Loosely-taken-from: FreeBSD

5 years agokernel - Fix kqueue and SIGIO operation on pipes
Matthew Dillon [Tue, 22 Sep 2009 06:17:14 +0000 (23:17 -0700)]
kernel - Fix kqueue and SIGIO operation on pipes

* pipe reads and writes were not notifying kqueue and SIGIO consumers
  due to an incorrect conditional which only tested for select/poll
  consumers.

5 years agoHAMMER - Add rebalancing to automatic cleanup sequence
Matthew Dillon [Sun, 20 Sep 2009 17:29:32 +0000 (10:29 -0700)]
HAMMER - Add rebalancing to automatic cleanup sequence

* The hammer cleanup directive now also rebalances the B-Tree.

5 years agoamd64: Fix for Xorg.
Jordan Gordeev [Thu, 17 Sep 2009 22:14:30 +0000 (01:14 +0300)]
amd64: Fix for Xorg.
Xorg can now access the video card.
Adapted from i386.

5 years agoAMD64 - Unbreak the acpi kld, which also seems to fix USB umass detection.
Matthew Dillon [Sat, 19 Sep 2009 01:29:47 +0000 (18:29 -0700)]
AMD64 - Unbreak the acpi kld, which also seems to fix USB umass detection.

* Misc minor fixups (mainly empty routines) taken from FreeBSD.
* ACPI module now loads for amd64.
* And this also seems to get usb mass storage devices working properly.

5 years agonrelease - Fix beastie bug w/ gui dvd HAMMER install
Matthew Dillon [Thu, 17 Sep 2009 21:43:39 +0000 (14:43 -0700)]
nrelease - Fix beastie bug w/ gui dvd HAMMER install

* Remove /boot prefix so direct /boot partitions (BOOT+HAMMER) can properly
  locate the include files.

  This fixes a HD boot loader issue after installing a BOOT+HAMMER system
  from the gui dvd, and works around a loader malloc panic related to
  not being able to find said include files.

5 years agoatc(6): Include <stdlib.h> to silence some warnings.
Sascha Wildner [Wed, 16 Sep 2009 10:45:01 +0000 (12:45 +0200)]
atc(6): Include <stdlib.h> to silence some warnings.

Reported-by: corecode
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1514>

5 years agokernel - fix bug when issuing synchronous pageouts via contigmalloc.
Matthew Dillon [Tue, 15 Sep 2009 19:16:00 +0000 (12:16 -0700)]
kernel - fix bug when issuing synchronous pageouts via contigmalloc.

* There are multiple mis-checks in this code but the only path that
  causes the bug is if contigmalloc is forced to page data out, and
  that generally only occurs due to the USB subsystem.

* The bug causes relpbuf() to be called with the wrong argument,
  ultimately causing the swap pbuf availability counter to hit 0 and
  stay there.

* Fixes a umass insertion failure (the usb thread was locking up).

5 years agorelease - Adjust Makefile.usr to extract DragonFly_RELEASE_2_4
Matthew Dillon [Tue, 15 Sep 2009 16:56:42 +0000 (09:56 -0700)]
release - Adjust Makefile.usr to extract DragonFly_RELEASE_2_4

5 years agoinstaller: Small fix for the /dev/serno changes.
Sascha Wildner [Tue, 15 Sep 2009 14:21:16 +0000 (16:21 +0200)]
installer: Small fix for the /dev/serno changes.

Protect against the case where a /dev/serno/ directory exists but
the disk we want to install to doesn't have a node in it.

5 years agoRELEASE 2.4 - Release Engineering on release branch adjust to 2.4 v2.4.0
Matthew Dillon [Tue, 15 Sep 2009 01:56:43 +0000 (18:56 -0700)]
RELEASE 2.4 - Release Engineering on release branch adjust to 2.4

5 years agonrelease - USB image - use a noatime mount.
Matthew Dillon [Tue, 15 Sep 2009 00:57:40 +0000 (17:57 -0700)]
nrelease - USB image - use a noatime mount.

* Mount the root for a USB disk key boot noatime to avoid unnecessary writes
  to the USB disk key.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 15 Sep 2009 00:56:44 +0000 (17:56 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agofdisk - Use heads = 255 on file images
Matthew Dillon [Tue, 15 Sep 2009 00:54:11 +0000 (17:54 -0700)]
fdisk - Use heads = 255 on file images

When operating on a file image use max values for sectors and heads in
order to match the case where the file might exceed the CHS limit.  By
convention the CHS fields are set to all 1's in this case.

If our sectors and heads are not set at max values then the all 1's case
will result in a geometry that overflows the originally specified sectors
and heads which can brick the BIOS.

5 years agoamd64: sync AMD64_GENERIC and platform/files with i386
Simon Schubert [Tue, 15 Sep 2009 00:34:51 +0000 (02:34 +0200)]
amd64: sync AMD64_GENERIC and platform/files with i386

Pull up most devices from GENERIC into AMD64_GENERIC.  I left out those
that don't compile, which are basically only isa-only network drivers.

Temporarilty use the generic crypto functions until assembler versions
are imported.

5 years agobuildkernel, nrelease: use AMD64_GENERIC as kernel default config
Simon Schubert [Mon, 14 Sep 2009 22:47:58 +0000 (00:47 +0200)]
buildkernel, nrelease: use AMD64_GENERIC as kernel default config

buildkernel and nrelease both defaulted to GENERIC as kernel.  This does
not work for amd64 builds, since GENERIC is i386.

Add a makeshift hack by selecting AMD64_GENERIC if we're buildin for/on
amd64.  This needs to go away and be solved in a more sensible way.

Ok: dillon@

5 years agoinstaller: More /dev/serno work.
Sascha Wildner [Mon, 14 Sep 2009 21:25:06 +0000 (23:25 +0200)]
installer: More /dev/serno work.

Take back the devtab(5) support in the installer.

mountroot didn't work for the UFS with serial numbers case since the
data for '/' is taken from fstab and that would have a devtab label
in it and we're not setting vfs.root.mountfrom explicitly for UFS.
We don't want to, either.

So just use /dev/serno/* nodes (which will work everywhere) always.

Suggested-by: dillon
5 years agogames - mille - remove #ifdef madness
Matthew Dillon [Mon, 14 Sep 2009 21:16:59 +0000 (14:16 -0700)]
games - mille - remove #ifdef madness

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agogames - misc - clean up compiler warnings
Matthew Dillon [Mon, 14 Sep 2009 21:14:07 +0000 (14:14 -0700)]
games - misc - clean up compiler warnings

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agogames - hunt - minor include fix for portability.
Matthew Dillon [Mon, 14 Sep 2009 21:10:57 +0000 (14:10 -0700)]
games - hunt - minor include fix for portability.

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agogames - backgammon - use defined names instead of magic numbers.
Matthew Dillon [Mon, 14 Sep 2009 21:08:50 +0000 (14:08 -0700)]
games - backgammon - use defined names instead of magic numbers.

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agogames - bs - remove redundant libmytinfo
Matthew Dillon [Mon, 14 Sep 2009 21:06:31 +0000 (14:06 -0700)]
games - bs - remove redundant libmytinfo

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agogames - atc - replace sgtty with termios, remove #ifdef madness, fix warnings.
Matthew Dillon [Mon, 14 Sep 2009 21:05:02 +0000 (14:05 -0700)]
games - atc - replace sgtty with termios, remove #ifdef madness, fix warnings.

Submitted-by: Ulrich Spoerlein <uqs@spoerlein.net>
5 years agoinstaller: Add serial number and /etc/devtab support.
Sascha Wildner [Mon, 14 Sep 2009 18:30:06 +0000 (20:30 +0200)]
installer: Add serial number and /etc/devtab support.

If a disk has a corresponding entry in /dev/serno with identical
major/minor, use that for all further references of the disk in the
installation process.

In the installed system, set up a /etc/devtab entry (with the labels
named disk0, disk1 etc. using the order of the disks appearing in
'sysctl kern.disks' output) and use this label for the system's
/etc/fstab entries.

/boot/loader.conf still has to use /dev/serno for its vfs.root.mountfrom
entry.

The dumpdev entry in /etc/rc.conf could use the devtab label but (as
of this commit) doesn't do so yet. This will be fixed at a later point.

If no /dev/serno is found, or if no corresponding entry in /dev/serno
is found for a specific disk, we use the traditional scheme.

While I'm here, perform some cleanup, namely remove some duplicate
functions.

Requested-by-and-in-discussion-with: dillon

5 years agoKernel - change sync_on_panic default to 0
Matthew Dillon [Mon, 14 Sep 2009 18:12:33 +0000 (11:12 -0700)]
Kernel - change sync_on_panic default to 0

No longer attempt to sync the buffer cache when a panic occurs.  This
has always been problematic, HAMMER will ignore the attempt anyway,
and now we are formalizing that we no longer try.

This also improves the chances of the system dumping and rebooting
after a panic vs freezing up.

5 years agoRevert "Increase the default TCP maximum segment size from 512 to 1460."
Simon 'corecode' Schubert [Mon, 14 Sep 2009 17:08:04 +0000 (19:08 +0200)]
Revert "Increase the default TCP maximum segment size from 512 to 1460."

This reverts commit d190343e53819e25316a2a890724404f8e48c78d.

It seems that there are systems (probably firewalls) in action which
enforce an MSS of 536.

Specifically, at research.microsoft.com, port 80, packets seem to be
simply dropped if they exceed a MSS of 536 bytes, and no ICMP
destinatino unreachable, need to fragment message is generated.

While this behavior might be questionable as well, we should not diverge
from established standards.

This default MSS value can be changed using the sysctl node
net.inet.tcp.mssdflt.

Mandated by RFC 879, RFC 1122.

5 years agoext2fs - A few bug fixes and syntax adjustments.
Matthew Dillon [Mon, 14 Sep 2009 05:12:25 +0000 (22:12 -0700)]
ext2fs - A few bug fixes and syntax adjustments.

* Primarily fix a brelse that needs to be placed before a vx_put instead
  of after.  And use bqrelse() instead of brelse() when retrieving an inode.

* Syntax adjustments.

* NOTE: Only part of the FreeBSD patch was applied.

Submitted-by: "Pedro F. Giffuni" <pfgshield-freebsd@yahoo.com> (GSOC project)
5 years agoAHCI - zero-pad ATAPI commands
Matthew Dillon [Mon, 14 Sep 2009 03:29:44 +0000 (20:29 -0700)]
AHCI - zero-pad ATAPI commands

* ATAPI commands sent via the SCSI layer which are less then 16 bytes
  are now zero-padded to 16 bytes.  The SATA protocol itself just sends
  the whole FIS, so no more or less data is being sent.  But extra bytes
  will not be sent as zero.

Discussed-with: "Alex Hornung" <ahornung@gmail.com>

5 years agoAHCI - No longer cycle the port during port initialization
Matthew Dillon [Mon, 14 Sep 2009 03:26:42 +0000 (20:26 -0700)]
AHCI - No longer cycle the port during port initialization

* Do not try to start the port during port initialization.  ST is not
  supposed to be set unless we detect a device on the port(?).

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 13 Sep 2009 23:36:03 +0000 (16:36 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoDEVFS - Fixed missed unlock when attempting to list a hidden directory
Matthew Dillon [Sun, 13 Sep 2009 23:35:26 +0000 (16:35 -0700)]
DEVFS - Fixed missed unlock when attempting to list a hidden directory

Reported-by: Sascha Wildner <swildner@crater.dragonflybsd.org>
5 years agoMakefile.inc1: don't build aicasm
Simon Schubert [Sun, 13 Sep 2009 22:55:42 +0000 (00:55 +0200)]
Makefile.inc1: don't build aicasm

aicasm is built by the kernel Makefile, so there is no need to do this
from Makefile.inc1.

5 years agomake upgrade: Remove a file that was existing with a dir name for a while.
Sascha Wildner [Sun, 13 Sep 2009 22:28:12 +0000 (00:28 +0200)]
make upgrade: Remove a file that was existing with a dir name for a while.

mtree couldn't create the directory because of that.

This can't be fixed with Makefile_upgrade.inc so we need a bit of
additional code for such cases.

5 years agoSync LiveDVD kernel configs with GENERIC.
Sascha Wildner [Sun, 13 Sep 2009 22:01:44 +0000 (00:01 +0200)]
Sync LiveDVD kernel configs with GENERIC.

5 years agomtree: No longer create /usr/libdata/msdosfs.
Sascha Wildner [Sun, 13 Sep 2009 22:01:10 +0000 (00:01 +0200)]
mtree: No longer create /usr/libdata/msdosfs.

5 years agomake upgrade: Take back destroy_dev(9), it still exists.
Sascha Wildner [Sun, 13 Sep 2009 22:00:27 +0000 (00:00 +0200)]
make upgrade: Take back destroy_dev(9), it still exists.

5 years agoSwitch pkg_radd and pkg_search to appropriate CPU type path, i386 or amd64.
Justin C. Sherrill [Sun, 13 Sep 2009 19:55:37 +0000 (12:55 -0700)]
Switch pkg_radd and pkg_search to appropriate CPU type path, i386 or amd64.

5 years agoDEVFS - Wait an extra 2 seconds before looking for the root mount
Matthew Dillon [Sun, 13 Sep 2009 18:00:17 +0000 (11:00 -0700)]
DEVFS - Wait an extra 2 seconds before looking for the root mount

* Some drivers pickup devices asynchronously in a manner which the
  intitial CAM probe does not cover.  Try to give these drivers a little
  extra time to pickup devices before mounting root.  This is a hack.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 13 Sep 2009 17:58:56 +0000 (10:58 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoDEVFS - Fix unprintables in serial numbers reported by the device
Matthew Dillon [Sun, 13 Sep 2009 17:57:37 +0000 (10:57 -0700)]
DEVFS - Fix unprintables in serial numbers reported by the device

* Some device serial numbers contain weird punctuation and unprintable
  characters.  Replace unprintables and other weird characters with
  underscores.

Testing-by: Sascha Wildner <swildner@crater.dragonflybsd.org>
5 years ago/etc/devtab: Fix wording in comments.
Sascha Wildner [Sun, 13 Sep 2009 17:24:11 +0000 (19:24 +0200)]
/etc/devtab: Fix wording in comments.

5 years agoAdjust/cleanup fstab.5 a bit.
Sascha Wildner [Sun, 13 Sep 2009 15:47:00 +0000 (17:47 +0200)]
Adjust/cleanup fstab.5 a bit.

5 years agoAdd a tentative devtab(5) manual page.
Sascha Wildner [Sun, 13 Sep 2009 15:45:39 +0000 (17:45 +0200)]
Add a tentative devtab(5) manual page.

5 years agoGENERIC - add device kbdmux
Alex Hornung [Sun, 13 Sep 2009 07:52:57 +0000 (08:52 +0100)]
GENERIC - add device kbdmux

* kbdmux should be part of the GENERIC kernel, as it solves a lot of
  multi-keyboard issues, if not all.

5 years agokbdmux - Add missing opt_kbd.h include
Alex Hornung [Sun, 13 Sep 2009 07:50:50 +0000 (08:50 +0100)]
kbdmux - Add missing opt_kbd.h include

* Add missing opt_kbd.h include so that whenever KBD_INSTALL_CDEV is set
  in the kernel config, kbdmux also gets it kbdX installed.

Reported-by: Sascha Wildner