dragonfly.git
15 years agobusdma(9): Add bus_dmamap_load_mbuf_segment()
Sepherosa Ziehau [Sun, 18 Jan 2009 03:14:38 +0000 (11:14 +0800)]
busdma(9): Add bus_dmamap_load_mbuf_segment()

See the comment in sys/bus_dma.h for detailed information
about this function.

Let bus_dmamap_load_mbuf() call this function with busdma tag's
segments and nsegments.

Inspired-by: FreeBSD's bus_dmamap_load_mbuf_sg()
15 years agonfe(4): busdma(9) fixes
Sepherosa Ziehau [Sat, 17 Jan 2009 13:02:16 +0000 (21:02 +0800)]
nfe(4): busdma(9) fixes

On RX path:
- Unload busdma map iff the map has already been loaded
- Add missing bus_dmamap_sync()

On TX path:
- Reduce log verbosity
- Move buffer content's bus_dmamap_sync() to the proper place

Misc:
- Nuke unnecessary bus_dmamap_sync()

15 years agobusdma(9): More bounce page bug fixing
Sepherosa Ziehau [Sat, 17 Jan 2009 12:59:58 +0000 (20:59 +0800)]
busdma(9): More bounce page bug fixing

Turn on BUS_DMA_MIN_ALLOC_COMP, iff we do allocate bounce pages for
the busdma tag.

15 years agobusdma(9): Add tunable and read-only sysctl node for max # of bounce
Sepherosa Ziehau [Sat, 17 Jan 2009 11:24:28 +0000 (19:24 +0800)]
busdma(9): Add tunable and read-only sysctl node for max # of bounce
pages per bounce zone.

15 years agonfe(4): Always set high part of the address if the NIC supports
Sepherosa Ziehau [Sat, 17 Jan 2009 11:22:57 +0000 (19:22 +0800)]
nfe(4): Always set high part of the address if the NIC supports
40bits address space accessing.

15 years agonfe(4): busdma(9) correction
Sepherosa Ziehau [Sat, 17 Jan 2009 10:59:57 +0000 (18:59 +0800)]
nfe(4): busdma(9) correction

- Use bus_dmamem_coherent()
- Fix busdma(9) parameters

15 years agore(4): add missing BUS_DMA_WAITOK
Sepherosa Ziehau [Sat, 17 Jan 2009 10:34:50 +0000 (18:34 +0800)]
re(4): add missing BUS_DMA_WAITOK

15 years agobfe(4): Add missing BUS_DMA_WAITOK
Sepherosa Ziehau [Sat, 17 Jan 2009 10:35:38 +0000 (18:35 +0800)]
bfe(4): Add missing BUS_DMA_WAITOK

15 years agobfe(4): use bus_dmamem_coherent()
Sepherosa Ziehau [Sat, 17 Jan 2009 09:00:50 +0000 (17:00 +0800)]
bfe(4): use bus_dmamem_coherent()

15 years agoFactor out bus_dmamem_coherent() to allocate busdma memory.
Sepherosa Ziehau [Sat, 17 Jan 2009 08:19:09 +0000 (16:19 +0800)]
Factor out bus_dmamem_coherent() to allocate busdma memory.
Mainly to avoid code duplication in various drivers.

15 years agoChange bfe(4) according to recent busdma(9) bounce page fixes
Sepherosa Ziehau [Sat, 17 Jan 2009 06:26:50 +0000 (14:26 +0800)]
Change bfe(4) according to recent busdma(9) bounce page fixes

15 years agoBounce page work
Sepherosa Ziehau [Sat, 17 Jan 2009 05:21:29 +0000 (13:21 +0800)]
Bounce page work

For NICs which support jumbo frame but need to allocate one TX
descriptor per segment, it does not make sense to allocate more
than one bounce page for a single TX mbuf busdma map.  Add
BUS_DMA_ONEPAGE, so callers of busdma(9) functions could give
hint that only one bounce page is needed for a busdma map.

15 years agoBounce page fix
Sepherosa Ziehau [Sat, 17 Jan 2009 04:35:27 +0000 (12:35 +0800)]
Bounce page fix

- In bus_dma_tag_create(), make sure that:
  o  Alignment is power of 2
  o  Boundary is power of 2
  o  Max segment size is less than boundary
     Obtained-from: FreeBSD
- When counting the pages needed by maxsize, round up the maxsize to
  multiple page size first.
- For bounce zones, always round up its alignment and boundary to
  page size.
- Pass 'flags' to alloc_bounce_pages(), so we could assign 'mflags'
  to contigmalloc().

15 years agoBounce page fixes
Sepherosa Ziehau [Sat, 17 Jan 2009 02:14:38 +0000 (10:14 +0800)]
Bounce page fixes

- Free accumulated bounce pages in the bus dma map if we could not
  reserved enough bounce pages.
- In bus_dmamap_load_mbuf(), if _bus_dmamap_load_buffer() returns
  ENOMEM on non-first mbuf fragment, we adjust the error to EFBIG:
  o  There is at least one bounce page available, so we could expect
     that after mbuf defragmentation, enough bounce pages (normally
     one bounce page for non-jumbo frame) may be available.
  o  Most callers defragment the mbuf chain only if error is EFBIG.

15 years agoIncrease RE_TXDESC_SPARE to cooperate 9K jumbo frame.
Sepherosa Ziehau [Sat, 17 Jan 2009 01:58:26 +0000 (09:58 +0800)]
Increase RE_TXDESC_SPARE to cooperate 9K jumbo frame.

15 years agoAllocate at least one bounce page if the dma tag indicates bouncing
Sepherosa Ziehau [Fri, 16 Jan 2009 14:52:20 +0000 (22:52 +0800)]
Allocate at least one bounce page if the dma tag indicates bouncing
is needed.  Bug was found by forcing re(4) to bounce mbufs to lower
physical memory (re(4)'s TX and RX buffers use different bounce zones).

15 years agoSplit RX/TX bus dma tag. RX buffers should to be aligned on 8 bytes.
Sepherosa Ziehau [Fri, 16 Jan 2009 13:00:57 +0000 (21:00 +0800)]
Split RX/TX bus dma tag.   RX buffers should to be aligned on 8 bytes.

15 years agoCorrect busdma(9) parameters
Sepherosa Ziehau [Fri, 16 Jan 2009 12:35:06 +0000 (20:35 +0800)]
Correct busdma(9) parameters

15 years agoThere should be no 2 bytes alignment requirement
Sepherosa Ziehau [Fri, 16 Jan 2009 11:42:30 +0000 (19:42 +0800)]
There should be no 2 bytes alignment requirement

15 years agoAdd assertion to make sure that the segment index is in valid range.
Sepherosa Ziehau [Fri, 16 Jan 2009 11:41:23 +0000 (19:41 +0800)]
Add assertion to make sure that the segment index is in valid range.

15 years agoAdd assertion to make sure that bounce zone is in sane state.
Sepherosa Ziehau [Fri, 16 Jan 2009 11:16:39 +0000 (19:16 +0800)]
Add assertion to make sure that bounce zone is in sane state.

15 years agoFree the bounce pages allocated and reserved by the busdma map,
Sepherosa Ziehau [Thu, 15 Jan 2009 13:28:38 +0000 (21:28 +0800)]
Free the bounce pages allocated and reserved by the busdma map,
if _bus_dmamap_load_buffer() fails because of too many segments.

15 years ago- Use spinlock to protect bounce zone itself.
Sepherosa Ziehau [Thu, 15 Jan 2009 11:36:18 +0000 (19:36 +0800)]
- Use spinlock to protect bounce zone itself.
- Get MPLOCK and critical section for callback_waitinglist.

15 years agoUse lwkt_token to protect bounce_zone_list
Sepherosa Ziehau [Thu, 15 Jan 2009 10:40:05 +0000 (18:40 +0800)]
Use lwkt_token to protect bounce_zone_list

15 years agoMove bounce_map_waitinglist into bounce page zone
Sepherosa Ziehau [Wed, 14 Jan 2009 13:36:01 +0000 (21:36 +0800)]
Move bounce_map_waitinglist into bounce page zone

15 years ago_bus_dmamap_load_buffer2() -> _bus_dmamap_load_buffer()
Sepherosa Ziehau [Wed, 14 Jan 2009 13:21:24 +0000 (21:21 +0800)]
_bus_dmamap_load_buffer2() -> _bus_dmamap_load_buffer()

15 years agoUse _bus_dmamap_load_buffer2() in bus_dmamap_load_uio()
Sepherosa Ziehau [Wed, 14 Jan 2009 13:15:38 +0000 (21:15 +0800)]
Use _bus_dmamap_load_buffer2() in bus_dmamap_load_uio()

15 years agoCount # of boune page reservation failure
Sepherosa Ziehau [Tue, 13 Jan 2009 13:36:22 +0000 (21:36 +0800)]
Count # of boune page reservation failure

15 years agoUpdate if_oerrors if bfe_encap() failed and the mbuf was freed
Sepherosa Ziehau [Tue, 13 Jan 2009 13:35:38 +0000 (21:35 +0800)]
Update if_oerrors if bfe_encap() failed and the mbuf was freed

15 years agoAdd bounce page zone.
Sepherosa Ziehau [Tue, 13 Jan 2009 13:17:11 +0000 (21:17 +0800)]
Add bounce page zone.

It is used to group bounce pages with similar properties, i.e.
lowaddr, boundry and alignment.  A bounce page zone will be
reused, if a newly created dma tag has less strict requirements.

Obtained-from: FreeBSD

15 years agoRework bfe_encap()
Sepherosa Ziehau [Mon, 12 Jan 2009 15:08:52 +0000 (23:08 +0800)]
Rework bfe_encap()

15 years agoRework bfe_newbuf()
Sepherosa Ziehau [Sun, 11 Jan 2009 05:10:17 +0000 (13:10 +0800)]
Rework bfe_newbuf()

15 years agobfe_list_newbuf() -> bfe_newbuf()
Sepherosa Ziehau [Sun, 11 Jan 2009 03:19:34 +0000 (11:19 +0800)]
bfe_list_newbuf() -> bfe_newbuf()

15 years agoRemove unused bfe_softc fields
Sepherosa Ziehau [Sun, 11 Jan 2009 03:09:08 +0000 (11:09 +0800)]
Remove unused bfe_softc fields

15 years ago- Split RX/TX mbuf dma tag.
Sepherosa Ziehau [Sun, 11 Jan 2009 03:01:50 +0000 (11:01 +0800)]
- Split RX/TX mbuf dma tag.
- Create a tmp dma map for RX mbuf, which will be used when rework
  RX path.

15 years agoFix parameters passed to bus_dma_tag_create()
Sepherosa Ziehau [Sun, 11 Jan 2009 02:27:26 +0000 (10:27 +0800)]
Fix parameters passed to bus_dma_tag_create()

15 years agoFix warning about uninitialized variable (should be an error)
Sepherosa Ziehau [Wed, 7 Jan 2009 14:09:57 +0000 (22:09 +0800)]
Fix warning about uninitialized variable (should be an error)

15 years agoUse _bus_dmamap_load_buffer2() in bus_dmamap_load_mbuf()
Sepherosa Ziehau [Wed, 7 Jan 2009 14:06:58 +0000 (22:06 +0800)]
Use _bus_dmamap_load_buffer2() in bus_dmamap_load_mbuf()

15 years agoAdd BUS_DMA_NOWAIT support to _bus_dmamap_load_buffer2()
Sepherosa Ziehau [Wed, 7 Jan 2009 13:36:31 +0000 (21:36 +0800)]
Add BUS_DMA_NOWAIT support to _bus_dmamap_load_buffer2()

Obtained-from: FreeBSD

15 years agoFactor out _bus_dmamap_load_buffer2() from bus_dmamap_load().
Sepherosa Ziehau [Wed, 7 Jan 2009 11:37:06 +0000 (19:37 +0800)]
Factor out _bus_dmamap_load_buffer2() from bus_dmamap_load().
This is the first step toward replacing _bus_dmamap_load_buffer() with
_bus_dmamap_load_buffer2(), which has bounce page handling code.

15 years agoFix the number of needed bounce pages' calculation
Sepherosa Ziehau [Mon, 5 Jan 2009 13:02:05 +0000 (21:02 +0800)]
Fix the number of needed bounce pages' calculation

Obtained-from: FreeBSD

15 years ago- Make sure that alignment constraint is at least 1 (no alignment constraint).
Sepherosa Ziehau [Mon, 5 Jan 2009 12:07:09 +0000 (20:07 +0800)]
- Make sure that alignment constraint is at least 1 (no alignment constraint).
- Add commented out code, which inherits alignment constraint from parent
  dma tag. (need to fix some drivers, e.g. bfe(4), before uncomment it)

15 years agoFix dma tag boundry calculation.
Sepherosa Ziehau [Mon, 5 Jan 2009 11:53:12 +0000 (19:53 +0800)]
Fix dma tag boundry calculation.

Obtained-from: FreeBSD

15 years agoBring in BUS_DMA_COULD_BOUNCE flag from FreeBSD.
Sepherosa Ziehau [Mon, 5 Jan 2009 11:06:51 +0000 (19:06 +0800)]
Bring in BUS_DMA_COULD_BOUNCE flag from FreeBSD.
Currently it only means that the dma tag's low address is less than max
phisical memory.  However, this flag will be used when alignment constraint
is obeyed.

15 years agoAdjust some perl & tcl related things in various scripts & utilities.
Sascha Wildner [Tue, 17 Feb 2009 10:24:55 +0000 (11:24 +0100)]
Adjust some perl & tcl related things in various scripts & utilities.

* Change path in scripts to /usr/pkg/bin/perl.

* vi(1) is built with neither perl nor tcl support. Clean up the Makefile
  and remove dirs from /usr/share/vi.

15 years agoUnbreak kernel build and fix some warnings.
Sascha Wildner [Mon, 16 Feb 2009 03:58:55 +0000 (04:58 +0100)]
Unbreak kernel build and fix some warnings.

15 years agouio.h: Move definition of struct iovec to <sys/_iovec.h>.
Sascha Wildner [Mon, 16 Feb 2009 00:12:07 +0000 (01:12 +0100)]
uio.h: Move definition of struct iovec to <sys/_iovec.h>.

* Make iov_base a void * and fix a resulting warning in lpr(1).

* Include <sys/_iovec.h> in <sys/socket.h>.

Taken-from: FreeBSD

15 years ago_null.h: If g++ 4.1 or any later version is used, use __null for NULL.
Sascha Wildner [Sat, 31 Jan 2009 07:15:04 +0000 (08:15 +0100)]
_null.h: If g++ 4.1 or any later version is used, use __null for NULL.

This change makes the sentinel attribute work correctly in C++.

It's similar to a recent FreeBSD change:
http://lists.freebsd.org/pipermail/svn-src-all/2009-January/004266.html

We don't check __GNUG__ since it is __cplusplus && __GNUC__ and we check
__cplusplus already.

Approved-by: hasso
15 years agozic(8) & libc/stdtime: Reduce #ifdefs a bit.
Sascha Wildner [Sun, 15 Feb 2009 23:45:51 +0000 (00:45 +0100)]
zic(8) & libc/stdtime: Reduce #ifdefs a bit.

15 years agolibstand.3: add HAMMER and MS-DOS filesystems and improve mark-up
Thomas Nikolajsen [Sun, 15 Feb 2009 20:37:13 +0000 (21:37 +0100)]
libstand.3: add HAMMER and MS-DOS filesystems and improve mark-up

15 years agonrelease: kernel moved to boot, make kernel.BOOTP there
Thomas Nikolajsen [Sun, 15 Feb 2009 17:59:23 +0000 (18:59 +0100)]
nrelease: kernel moved to boot, make kernel.BOOTP there

15 years agoRelase Engineering - Update loader-bootp.conf for new "boot/" prefixed paths
Matthew Dillon [Sun, 15 Feb 2009 19:42:31 +0000 (11:42 -0800)]
Relase Engineering - Update loader-bootp.conf for new "boot/" prefixed paths

Update the default loader-bootp.conf and related manual pages to use
modern "boot/" prefixed paths.

15 years agotelnetd: filter potentially dangerous env vars passed from telnet client
Simon Schubert [Sun, 15 Feb 2009 15:26:54 +0000 (16:26 +0100)]
telnetd: filter potentially dangerous env vars passed from telnet client

This is the same as f813782276c9c93ba7fdca9011c120626dce86e4, just for
the other copy of telnetd, which is actually used per default.

15 years agopxe/tftpboot work - Allow multiple responses to broadcast query
Matthew Dillon [Sun, 15 Feb 2009 12:04:44 +0000 (04:04 -0800)]
pxe/tftpboot work - Allow multiple responses to broadcast query

The PXE boot loader may use a broadcast address to query for files via
TFTP, resulting in multiple responses.  Accept the first DATA response
and keep track of the last ERROR response if no DATA response is received.

The first DATA packet locks the server IP for the tftp transfer.

Bring in some structure options (__packed, etc) from FreeBSD plus a fix
to an address increment in the code.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 15 Feb 2009 07:50:46 +0000 (23:50 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoBoot loader fixes - fix recursive malloc()/free() errors, NULL freed fields
Matthew Dillon [Sun, 15 Feb 2009 07:45:22 +0000 (23:45 -0800)]
Boot loader fixes - fix recursive malloc()/free() errors, NULL freed fields

* Fix reported loader panics related to corrupt malloc areas.  The zip/gzip
  modules were using a static variable to hold malloc()ed space.  The
  field was getting tromped by recursion.

* Fix numerous cases where file structure fields are not NULL'd out upon
  release.

* Fix numerous cases where a double close might result in a double free.

* Fix a benign bug in libstand's realloc().

15 years agoFix libstand's filesystem close callback. The passed file pointer's
Matthew Dillon [Sun, 15 Feb 2009 03:01:21 +0000 (19:01 -0800)]
Fix libstand's filesystem close callback.  The passed file pointer's
f_fsdata field must be NULLed out.

15 years agotelnetd: filter potentially dangerous env vars passed from telnet client
Simon Schubert [Sat, 14 Feb 2009 12:00:50 +0000 (13:00 +0100)]
telnetd: filter potentially dangerous env vars passed from telnet client

Obtained-from:  NetBSD revision 1.6 date: 1995-10-18 06:44:26 +0100
Reported-by: Trevor Kendall <trevorjkendall@gmail.com>
15 years agoChange handbook links
Matthias Schmidt [Fri, 13 Feb 2009 18:33:57 +0000 (19:33 +0100)]
Change handbook links

Handbook is now on ikiwiki and no longer on the moinmoin wiki.
Remove to entries from the index.html which does not exists.

15 years agoSilence some -Wold-style-definition warnings.
Sascha Wildner [Sat, 14 Feb 2009 08:20:01 +0000 (09:20 +0100)]
Silence some -Wold-style-definition warnings.

15 years agoFix hang in dntpd startup when network down.
Nicolas Thery [Fri, 13 Feb 2009 23:20:32 +0000 (00:20 +0100)]
Fix hang in dntpd startup when network down.

Reported-By: Hasso Tepper <hasso@estpak.ee>
Dragonfly-Bug: <http://bugs.dragonflybsd.org/issue1243>
Fix-Suggested-By: Matthew Dillon <dillon@apollo.backplane.com>
15 years agoficl: unbreak testmain build
Thomas Nikolajsen [Fri, 13 Feb 2009 23:25:59 +0000 (00:25 +0100)]
ficl: unbreak testmain build

15 years agoMakefile.usr: add path to pkgsrc-all tar file
Thomas Nikolajsen [Wed, 11 Feb 2009 22:54:08 +0000 (23:54 +0100)]
Makefile.usr: add path to pkgsrc-all tar file

15 years agonrelease: clean up Makefile and sync man pages & Makefile.usr
Thomas Nikolajsen [Wed, 11 Feb 2009 22:02:08 +0000 (23:02 +0100)]
nrelease: clean up Makefile and sync man pages & Makefile.usr

 * nrelease/Makefile: fix a few typos,
   change name of `syssrcs` target to `srcs`, to reflect current use and
   remove traces of old installer_* targets.
 * etc/Makefile: update name of src-sys tar file from nrelease and
   add targets for newly added src-all and pkgsrc-all tar files.
 * release.7: update to current method: only binary package downloaded is cvsup
   and add description of a few more variables.
 * development.7: add short description of /usr/Makefile.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 11 Feb 2009 20:15:16 +0000 (12:15 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoChange pkg_radd to postfix DragonFly-x.x.x onto the path. This will work in
Matthew Dillon [Wed, 11 Feb 2009 20:12:34 +0000 (12:12 -0800)]
Change pkg_radd to postfix DragonFly-x.x.x onto the path.  This will work in
conjunction with the new pkgbox redirect CGI which no longer post-pends
the OS path, and softlinks in the packages/ sub-directory to point to the
correct quarterly release.

15 years agovnconfig: Print better msg when neither regular file nor -S is specified.
Sascha Wildner [Wed, 11 Feb 2009 20:09:39 +0000 (21:09 +0100)]
vnconfig: Print better msg when neither regular file nor -S is specified.

If no regular file is specified, vn(4) by default will use swap for backing
store. If swap size is missing also, print a smart warning instead of the
cryptic: "Numerical argument out of domain".

Submitted-by: Stathis Kamperis <ekamperi@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1279>

15 years agohammer boot2: reset file offset each time we're looking up a new inode
Simon Schubert [Wed, 11 Feb 2009 10:25:45 +0000 (11:25 +0100)]
hammer boot2: reset file offset each time we're looking up a new inode

The boot2/ufs code used the implicit assumption that the file offset
gets reset each time a new inode is looked up.  We have to follow this
behavior, or else reads will always start from the last offset of the
last file.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 11 Feb 2009 10:02:08 +0000 (02:02 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoFix long-standing bug in boot1 code - can read junk from fake partition table
Matthew Dillon [Wed, 11 Feb 2009 09:53:52 +0000 (01:53 -0800)]
Fix long-standing bug in boot1 code - can read junk from fake partition table

boot1 reads the MBR to locate the BSD partition type (0xA5).  However, to
reduce the size of the boot1 code the 32 bit LBA for the MBR was being
loaded via the fake partition table at label 'part4', which was assumed to
contain a LBA of 0.  Unfortunately this portion of the boot1 code is not
usually written by the disklabel program and may contain garbage.

For the last few years we have worked around the issue by zeroing out
the label area before installing a new label.  We still have to do this
to avoid disklabel32/disklabel64 confusion, but with this fix forgetting
to zero the area should not cause a properly installed disklabel to fail
to boot properly.

To fix the problem, add the necessary instructions to generate a 32 bit
LBA of 0 directly for reading the MBR.  They barely fit.

15 years agoMention the variables added by 3b25fbd435d9ee6d47af7128014528e2fadfb5e5
YONETANI Tomokazu [Wed, 11 Feb 2009 01:06:38 +0000 (10:06 +0900)]
Mention the variables added by 3b25fbd435d9ee6d47af7128014528e2fadfb5e5
which affects the name and the location of the kernel/modules.

15 years agoSync several manpages in section 9 with reality and clean up a bit.
Sascha Wildner [Tue, 10 Feb 2009 23:04:37 +0000 (00:04 +0100)]
Sync several manpages in section 9 with reality and clean up a bit.

DEV_MODULE(9):
    - adjust example

devtoname(9):
    - dev_t is cdev_t now

make_dev(9):
    - dev_t is cdev_t now
    - make_dev() takes dev_ops as its first argument
    - obtain a reference to cdev_t, so we can destroy it later
    - don't forget to call dev_ops_remove() during shutdown

vcount(9):

    - document count_udev(9)

Submitted-by: Stathis Kamperis <ekamperi@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1269>

15 years agoSet the default DESTDIR to /var/vkernel when the platform is vkernel.
YONETANI Tomokazu [Tue, 10 Feb 2009 12:40:11 +0000 (21:40 +0900)]
Set the default DESTDIR to /var/vkernel when the platform is vkernel.

This saves some keystrokes as long as you use the standard installation
location for vkernel(as shown in vkernel(7)).

15 years agoAdd two variables to adjust where to install kernel and modules.
YONETANI Tomokazu [Tue, 10 Feb 2009 12:35:13 +0000 (21:35 +0900)]
Add two variables to adjust where to install kernel and modules.

DESTLABEL common suffix added to kernel and modules directory.  for
example, `make DESTLABEL=test installkernel' installs them
as /boot/kernel.test and /boot/modules.test, respectively.

DESTKERNDIR where to install kernel and modules, /boot by default.

Add /sys/conf/kern.path.mk to define default paths for kernel and modules.
Also move KMOD* definitions to /sys/conf/kmod.mk where it really belongs.

Submitted-by: Stefan Johannesdal <stefan.johannesdal@gmail.com>
with a slight modification by me.

15 years agonrelease: Exclude distfiles as well when we tar pkgsrc.
Sascha Wildner [Tue, 10 Feb 2009 11:35:36 +0000 (12:35 +0100)]
nrelease: Exclude distfiles as well when we tar pkgsrc.

15 years agoRelease Engineering: Enhance gui PFI to auto-detect xorg or curses
Matthew Dillon [Tue, 10 Feb 2009 01:25:32 +0000 (17:25 -0800)]
Release Engineering: Enhance gui PFI to auto-detect xorg or curses

Add an "auto" feature for pfi_frontend and change the default to "auto".
Adjust the gui/usr/local/bin/installer script to accept "auto" and set
pfi_frontend to "xorg" or "curses" based on the existance of the DISPLAY
variable.

15 years agozoneinfo & zic(8): Sync with tzcode2009b & tzdata2009b from elsie.
Sascha Wildner [Mon, 9 Feb 2009 19:30:11 +0000 (20:30 +0100)]
zoneinfo & zic(8): Sync with tzcode2009b & tzdata2009b from elsie.

* zic.c: Fix fencepost error.

* leapseconds: Updated to reflect no mid-2009 leap second.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Mon, 9 Feb 2009 18:48:23 +0000 (10:48 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoHAMMER VFS: Correct a ref count leak in the recent I/O invalidation work
Matthew Dillon [Mon, 9 Feb 2009 18:46:13 +0000 (10:46 -0800)]
HAMMER VFS: Correct a ref count leak in the recent I/O invalidation work

Correct a ref count leak in the recent I/O invalidation work.  This could
lead to permanently referenced hammer_buffers and prevent reservations
from terminating.

Reported-by: Michael Neumann <mneumann@ntecs.de>
15 years agoinstaller: Correct typo in a comment.
Sascha Wildner [Mon, 9 Feb 2009 18:40:02 +0000 (19:40 +0100)]
installer: Correct typo in a comment.

15 years agoRelease Engineering: nrelease work, more didbootstrap, include pkgsrcs, and more
Matthew Dillon [Mon, 9 Feb 2009 17:31:57 +0000 (09:31 -0800)]
Release Engineering: nrelease work, more didbootstrap, include pkgsrcs, and more

* Include full sources on the DVD release (tar cz'd) - 90M

* Include the full pkgsrc tree on both the CD and DVD release (tar cz'd) - 26M

* More cleanups

* Hack fixed for .didbootstrap.  clean target combinations were not resolving
  the .if tests in the expected way.

15 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Mon, 9 Feb 2009 06:03:56 +0000 (22:03 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

15 years agoRelease Engineering: nrelease and GUI build adjustments
Matthew Dillon [Mon, 9 Feb 2009 06:00:39 +0000 (22:00 -0800)]
Release Engineering: nrelease and GUI build adjustments

* Add a 'restartpkgs' target to the nrelease Makefile

* If /usr/src is not owned by root properly chown cpdup'd files to root.

* Quiet superfluous errors during certain tests

* Gui build: Do not automatically start X.  Provide instructions instead.
  Otherwise the DVD can take forever to boot.  Remove related hacks.

* Gui build: Change the default shell to csh.

15 years agoRelease Engineering: nrelease build fixes - adjust MFS sizes and .zshrc
Matthew Dillon [Mon, 9 Feb 2009 02:15:04 +0000 (18:15 -0800)]
Release Engineering: nrelease build fixes - adjust MFS sizes and .zshrc

* Increase the MFS size for /var in the gui build from 16M to 128M.
  The package db doesn't fit in 16M.

* Remove the '*' in the 'du' alias in the gui .zshrc

15 years agoubsa(4): Move HARDWARE section below DESCRIPTION.
Sascha Wildner [Mon, 9 Feb 2009 01:43:29 +0000 (02:43 +0100)]
ubsa(4): Move HARDWARE section below DESCRIPTION.

15 years agorc.d/nfsclient: delete obsolete flag for rpc.umntall(8)
Thomas Nikolajsen [Thu, 5 Feb 2009 18:07:33 +0000 (19:07 +0100)]
rc.d/nfsclient: delete obsolete flag for rpc.umntall(8)

15 years agoinstaller: change `atacontrol' to `natacontrol'
Thomas Nikolajsen [Sun, 8 Feb 2009 22:31:12 +0000 (23:31 +0100)]
installer: change `atacontrol' to `natacontrol'

`atacontrol' doesn't work with default kernel, GENERIC,
as it uses `device nata'.

15 years agoAdjust the ${ISODIR}/.didbootstrap logic a little, add needed licenses.
Matthew Dillon [Sun, 8 Feb 2009 20:15:52 +0000 (12:15 -0800)]
Adjust the ${ISODIR}/.didbootstrap logic a little, add needed licenses.

Adjust the bootstrap logic a bit and add the following licenses to
the release build's mk.conf so the gui packages all build:  The
openmotif-license and the vim-license.

15 years agoAdd new option to pkg_search
Matthias Schmidt [Sun, 8 Feb 2009 13:01:44 +0000 (14:01 +0100)]
Add new option to pkg_search

-d will download the pkg_summary(5) file for you.  If it is already installed,
it get's overwritten.  This is useful for users using only binary packages.
After a release -d will give you the new list of packages available for that
release.

15 years agoShift link for 2.2
Matthias Schmidt [Sun, 8 Feb 2009 12:04:04 +0000 (13:04 +0100)]
Shift link for 2.2

We already have packages for 2.2 on pkgbox and the mirrors.

15 years agonrelease: Restrict swap size to 8GB for now.
Sascha Wildner [Sun, 8 Feb 2009 15:27:46 +0000 (16:27 +0100)]
nrelease: Restrict swap size to 8GB for now.

15 years agoMerge commit 'chlamydia/master'
Thomas Nikolajsen [Sun, 8 Feb 2009 15:17:47 +0000 (16:17 +0100)]
Merge commit 'chlamydia/master'

15 years agovnconfig: Fix printing of inode
Thomas Nikolajsen [Sun, 8 Feb 2009 14:54:26 +0000 (15:54 +0100)]
vnconfig: Fix printing of inode

15 years agouuids.5: Fix error and improve wording
Thomas Nikolajsen [Sun, 8 Feb 2009 14:41:59 +0000 (15:41 +0100)]
uuids.5: Fix error and improve wording

 * UUID is 128 bit; not 64 bit

15 years agojscan: Fix SYNOPSIS and sync usage()
Thomas Nikolajsen [Sun, 8 Feb 2009 14:36:07 +0000 (15:36 +0100)]
jscan: Fix SYNOPSIS and sync usage()

15 years agodiskinfo: Add description of flags, fix SYNOPSIS and sync usage()
Thomas Nikolajsen [Sun, 8 Feb 2009 14:09:18 +0000 (15:09 +0100)]
diskinfo: Add description of flags, fix SYNOPSIS and sync usage()

15 years agoccdconfig: Improve markup & sync usage()
Thomas Nikolajsen [Sun, 8 Feb 2009 14:04:37 +0000 (15:04 +0100)]
ccdconfig: Improve markup & sync usage()

 * Fix SYNOPSIS: problems in `...' use
 * Sync usage() to SYNOPSIS
 * Add reference to disklabel64(8)
 * Add markup
 * Break long command lines in examples
 * Start sentence on new line

15 years agostrfile.8: Add missing `C' flag to SYNOPSIS.
Thomas Nikolajsen [Sun, 8 Feb 2009 14:03:35 +0000 (15:03 +0100)]
strfile.8: Add missing `C' flag to SYNOPSIS.

15 years agonrelease: Add /tmp to the list of nohistory directories.
Sascha Wildner [Sun, 8 Feb 2009 14:43:33 +0000 (15:43 +0100)]
nrelease: Add /tmp to the list of nohistory directories.

15 years agosh.1: Fix markup.
Thomas Nikolajsen [Sun, 8 Feb 2009 14:01:40 +0000 (15:01 +0100)]
sh.1: Fix markup.

A few ``...'' wasn't marked as arguments.