dragonfly.git
5 years agorpc_svc_calls(3): Remove __svc_getcallercreds() documentation.
Sascha Wildner [Sat, 31 Jan 2009 22:13:20 +0000 (23:13 +0100)]
rpc_svc_calls(3): Remove __svc_getcallercreds() documentation.

FreeBSD removed the macro but forgot to adjust the manpage.

5 years agomake.conf: Bring back WARNS_WERROR to build with -Werror if WARNS is set.
Sascha Wildner [Sat, 31 Jan 2009 21:06:42 +0000 (22:06 +0100)]
make.conf: Bring back WARNS_WERROR to build with -Werror if WARNS is set.

In-discussion-with: pavalos

5 years agoTypo fixing round.
Sascha Wildner [Sat, 31 Jan 2009 18:41:02 +0000 (19:41 +0100)]
Typo fixing round.

5 years agoinstaller: Fix reading disk descriptions when booting verbose.
Sascha Wildner [Sat, 31 Jan 2009 13:05:39 +0000 (14:05 +0100)]
installer: Fix reading disk descriptions when booting verbose.

This fixes issue1256.

Reported-by: corecode
5 years agoinstaller: Remove .gitignore files.
Sascha Wildner [Sat, 31 Jan 2009 07:21:16 +0000 (08:21 +0100)]
installer: Remove .gitignore files.

5 years agomanpages: Split DIAGNOSTICS into EXIT STATUS and DIAGNOSTICS.
Sascha Wildner [Sat, 31 Jan 2009 09:17:02 +0000 (10:17 +0100)]
manpages: Split DIAGNOSTICS into EXIT STATUS and DIAGNOSTICS.

DIAGNOSTICS shall have information about diagnostic messages while
exit code information (.Ex macro) goes to EXIT STATUS.

Inspired-by: FreeBSD
5 years agopriv(9): We don't have prison_priv_check() yet so comment out some things.
Sascha Wildner [Sat, 31 Jan 2009 08:17:04 +0000 (09:17 +0100)]
priv(9): We don't have prison_priv_check() yet so comment out some things.

5 years agosyncache_socket(): fix abort path by calling pru_abort directly
Sepherosa Ziehau [Thu, 22 Jan 2009 09:13:20 +0000 (17:13 +0800)]
syncache_socket(): fix abort path by calling pru_abort directly

On syncache_socket() abort path, the inp's {fport,lport,faddr,laddr}
is either incomplete or half destroyed, which causes tcp_soport()
mapping the socket to a wrong CPU.  However, in syncache code, inp
is only accessed or created by its owner CPU, i.e. we are already on
the inp's owner CPU during the socket aborting.

Add soabort_oncpu(), which calls pru_abort directly.  Use it on
syncache_socket() abort path.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 30 Jan 2009 17:05:17 +0000 (09:05 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoFix a string parsing bug when trying to run hammer pfs-master on a
Matthew Dillon [Fri, 30 Jan 2009 16:46:38 +0000 (08:46 -0800)]
Fix a string parsing bug when trying to run hammer pfs-master on a
subdirectory of the root directory, e.g. "hammer pfs-master /fubar".

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
5 years agoPut the repo version in the ISO's volid.
Sascha Wildner [Fri, 30 Jan 2009 09:51:12 +0000 (10:51 +0100)]
Put the repo version in the ISO's volid.

5 years agonrelease: Use a separate workdir to keep PKGSRC_PATH clean.
Sascha Wildner [Fri, 30 Jan 2009 08:44:30 +0000 (09:44 +0100)]
nrelease: Use a separate workdir to keep PKGSRC_PATH clean.

5 years agoFix capital letter in the middle of a sentence.
Peter Avalos [Fri, 30 Jan 2009 03:06:11 +0000 (19:06 -0800)]
Fix capital letter in the middle of a sentence.

Submitted-by: Stathis Kamperis <ekamperi@gmail.com>
5 years agojail(8): Fix path in the example.
Sascha Wildner [Thu, 29 Jan 2009 21:58:11 +0000 (22:58 +0100)]
jail(8): Fix path in the example.

5 years agousbhid(3): Re-commit some fixes that were undone in the FreeBSD sync.
Sascha Wildner [Thu, 29 Jan 2009 18:57:06 +0000 (19:57 +0100)]
usbhid(3): Re-commit some fixes that were undone in the FreeBSD sync.

5 years agocvs: obey read only fs setting also for the val-tags file
Simon 'corecode' Schubert [Thu, 29 Jan 2009 18:21:03 +0000 (18:21 +0000)]
cvs: obey read only fs setting also for the val-tags file

5 years agonata: process interrupt even if busmaster active bit is set
Simon Schubert [Thu, 29 Jan 2009 09:34:03 +0000 (10:34 +0100)]
nata: process interrupt even if busmaster active bit is set

The nata driver previously assumed that an interrupt which has the
interrupt and active bits set in the busmaster status register is not a
valid/completed interrupt.  In these situations if would return without
acknowledging the irq, leading to an interrupt livelock situation.

This condition of INTERRUPT|ACTIVE occured on two different machines
both equipped with different versions of an ICH SATA controller, when
accessing an attached SATA ATAPI (DVD) drive by TSScorp (Samsung
OEM/bulk).  Specifically, natapicam seems to trigger this condition on
attach.  It seems that the drive is unhappy with the INQUIRY command
sent by natapicam.  Related artifacts appear when trying to access a
video DVD (possibly due to missing region/css key).

Under the hood it seems that the drive reports an error condition
(visible in the ALT/STATUS register), but does not clear the ACTIVE bit
of the busmaster status.  As a result the nata driver could be waiting
for the completion of the transfer, while the SATA busmaster would keep
the interrupt line asserted.

We work around this issue by following the precedent of other operating
systems and ignoring the ACTIVE bit if the INTERRUPT bit is set.
Specifically, we wait a little bit to accomodate for possibly faulty
hardware which might assert the irq before the transfer is completely
finished.  Nevertheless, we do not reject interrupt proecessing if the
INTERRUPT bit is set in the busmaster status register.

5 years agonrelease: Switch to building pkgsrc packages from source.
Sascha Wildner [Thu, 29 Jan 2009 06:22:24 +0000 (07:22 +0100)]
nrelease: Switch to building pkgsrc packages from source.

The pkgsrc tree that shall be used must be specified via PKGSRC_PATH.

So far the LiveCD build has been successfully tested. The LiveDVD might
still need some love, but I'm committing this now so work on the release
can begin.

Still on the TODO is using binary packages optionally.

Requested-by: dillon
5 years agoFix format order.
Sascha Wildner [Wed, 28 Jan 2009 19:47:34 +0000 (20:47 +0100)]
Fix format order.

Reported-by: corecode
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 27 Jan 2009 01:36:19 +0000 (17:36 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoHAMMER VFS - Add missing bqrelse() in last patch.
Matthew Dillon [Tue, 27 Jan 2009 01:35:34 +0000 (17:35 -0800)]
HAMMER VFS - Add missing bqrelse() in last patch.

This fixes a deadlock introduced by the last patch due to a missing
bqrelse() call.

5 years agoRevert "Update the atime when mmap'ing a file"
Simon Schubert [Fri, 23 Jan 2009 00:23:27 +0000 (01:23 +0100)]
Revert "Update the atime when mmap'ing a file"

This reverts commit 8e7ceff7f24f4bd5eae767c8c091e696d490dd58.

Better code committed in a6e41612e54fa7b0a616c8f8d14446bab206d030

5 years agohda: disable verbose output - too chatty even for bootverbose
Simon Schubert [Fri, 23 Jan 2009 00:22:25 +0000 (01:22 +0100)]
hda: disable verbose output - too chatty even for bootverbose

5 years agonata: revert 6e40a325 = don't use tsleep in ata_udelay
Simon Schubert [Thu, 22 Jan 2009 20:40:53 +0000 (21:40 +0100)]
nata: revert 6e40a325 = don't use tsleep in ata_udelay

ata_udelay might be called from softclock context due to a request
timeout.  However we must not tsleep in softclock.  This restores the
pre-6e40a325 behavior.

5 years agoHAMMER VFS - Reorganize the use of hammer_del_buffers(), fix rare deadlocks
Matthew Dillon [Mon, 26 Jan 2009 06:34:42 +0000 (22:34 -0800)]
HAMMER VFS - Reorganize the use of hammer_del_buffers(), fix rare deadlocks

The previous attempt at fixing a deadlock due to a hammer_buffer being
held cached across long-blocking procedures failed to catch all cases.
Implement a more complete and less invasive fix.  These buffers are
typically held in the hammer_cursor structure.

Instead of trying to release such cached data buffers proactively,
we instead allow hammer_del_buffers() to return a temporary failure when
called from the reservation code.  If hammer_del_buffers() is unable to
completely eradicate underlying buffers due to them being referenced via
the above cache entities the related hammer_reserve structure is simply
re-added to the delayed-release queue.

The related big-block are thus not reused until all such cached entites
have been dereferenced.  The relaxed requirements on the cached entities
removes the possibility of a deadlock in the invalidation code and also
simplifies hammer_io_inval()'s handling of the hammer_buffer<->buffer_cache
coupling case.

5 years agoHAMMER VFS - clean out cached data_buffer on unlock cursor to avoid deadlock
Matthew Dillon [Sun, 25 Jan 2009 21:11:14 +0000 (13:11 -0800)]
HAMMER VFS - clean out cached data_buffer on unlock cursor to avoid deadlock

Clean out any cached cursor->data_buffer when unlocking a cursor.  The
underlying buffer cache buffer could become stale and if we do not release
our hammer_buffer reference on it other threads may deadlock trying to
getblk() the buffer cache buffer in order to invalidate it.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 25 Jan 2009 07:19:42 +0000 (23:19 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoFix another process stuck-during-exit bug - stuck due to signal.
Matthew Dillon [Sun, 25 Jan 2009 07:13:46 +0000 (23:13 -0800)]
Fix another process stuck-during-exit bug - stuck due to signal.

Fix a bug where an exiting process becomes a zombie, entering the SZOMB
state, but then receives a stop signal before it can be reaped.  If this
occurs the process was incorrectly placed in SSTOP and then later made
SACTIVE again, preventing it from being reaped.

Symptoms were: process shows up in ps in a DEL state but does not show
up in kgdb's 'info thread' list.  Process is the zombie list and is still
a child of init, but it's state is SACTIVE instead of SZOMB and p_xstat
(last signal taken) is SIGSTOP or SIGTSTP.

5 years agoHAMMER VFS - Fix deadlock in rmdir
Matthew Dillon [Sun, 25 Jan 2009 07:08:46 +0000 (23:08 -0800)]
HAMMER VFS - Fix deadlock in rmdir

hammer_vop_rmdir() maintains a cursor at the directory entry being deleted,
and then calls hammer_ip_check_directory_empty() to check if the directory
is empty.  The check code creates a second, nested cursor.

Any locks on the first cursor must be released in order to allow the
function to block while scanning the second cursor to avoid possible
deadlocks.

5 years agoAutomatically install required missing pam configurations in upgrade.
Peter Avalos [Sat, 24 Jan 2009 21:21:20 +0000 (16:21 -0500)]
Automatically install required missing pam configurations in upgrade.

Additionally, warn users that the config files may be out-of-date.  99%
of the time, it's probably best for the user to just do the make install
in etc/pam.d to install the default configuration files.

Reviewed-by: dillon
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 24 Jan 2009 20:22:01 +0000 (12:22 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoHAMMER VFS - Remove the unused also_ip argument from the cursor API
Matthew Dillon [Sat, 24 Jan 2009 19:49:34 +0000 (11:49 -0800)]
HAMMER VFS - Remove the unused also_ip argument from the cursor API

5 years agoMerge branch 'vendor/GDTOA'
Peter Avalos [Sat, 24 Jan 2009 17:06:28 +0000 (12:06 -0500)]
Merge branch 'vendor/GDTOA'

5 years agoImport gdtoa-20081205.
Peter Avalos [Mon, 19 Jan 2009 17:28:24 +0000 (12:28 -0500)]
Import gdtoa-20081205.

Note: This will not be connected to the build until after the 2.2
release.

5 years agoloader(8): hw.usb.hack_defer_exploration's default value is 1.
Sascha Wildner [Sat, 24 Jan 2009 12:30:21 +0000 (13:30 +0100)]
loader(8): hw.usb.hack_defer_exploration's default value is 1.

5 years agoRemove Asia/Katmandu upon 'make upgrade'.
Sascha Wildner [Fri, 23 Jan 2009 14:37:03 +0000 (15:37 +0100)]
Remove Asia/Katmandu upon 'make upgrade'.

5 years agoUse .Fx.
Sascha Wildner [Thu, 22 Jan 2009 12:56:37 +0000 (13:56 +0100)]
Use .Fx.

5 years agoComment out function which we don't have.
Sascha Wildner [Thu, 22 Jan 2009 12:55:42 +0000 (13:55 +0100)]
Comment out function which we don't have.

5 years agolpr: don't rely on dirs having st_size > 0
Simon Schubert [Thu, 22 Jan 2009 10:19:21 +0000 (11:19 +0100)]
lpr: don't rely on dirs having st_size > 0

getq determines the initial size of its queue array based on the st_size
of the queue directory.  If the queue directory is on a HAMMER file
system, this size will be reported as 0.  However the following array
growing logic just doubles the array size, thus always staying at 0.

Use a sensible minimum array size of 20 items (~ 512/24).

Reported-and-fix-by: Patrick Georgi <patrick@georgi-clan.de>
5 years agoudf: Remove NULL dereference.
Sascha Wildner [Wed, 21 Jan 2009 21:25:12 +0000 (22:25 +0100)]
udf: Remove NULL dereference.

Even if the conditional wasn't wrong, it would be pointless, because
udfmp->hashtbl is already initialized by phashinit() in udf_mountfs().

Found-by: LLVM/Clang Static Analyzer
5 years agoBring in some fixes from tzdata2009a from elsie.
Sascha Wildner [Wed, 21 Jan 2009 19:15:34 +0000 (20:15 +0100)]
Bring in some fixes from tzdata2009a from elsie.

* strftime.c - c format warning fix

* zdump.c    - fix infinite loop caused by overflow/optimization interaction

5 years agoSync zoneinfo database with tzdata2009a from elsie.
Sascha Wildner [Wed, 21 Jan 2009 19:12:52 +0000 (20:12 +0100)]
Sync zoneinfo database with tzdata2009a from elsie.

asia:           8.24 -> 8.25
backward:       8.6  -> 8.7
europe:         8.18 -> 8.20
northamerica:   8.24 -> 8.26
zone.tab:       8.21 -> 8.26

From Arthur David Olson's comments:

* asia         - change Katmandu to Kathmandu

* backward     - provide Katmandu link

* europe       - correct Swiss rules

* northamerica - clearer definition of Cuban transitions (no binary change)
               - Resolute changes abbreviation (but not time) twice a year

* zone.tab     - Change Katmandu to Kathmandu
               - Change Resolute from Eastern Time to Eastern Standard Time

5 years agoIssue 1013 - Update atime on exec, fix bug in last commit.
Matthew Dillon [Wed, 21 Jan 2009 16:52:04 +0000 (08:52 -0800)]
Issue 1013 - Update atime on exec, fix bug in last commit.

The call from the mmap code assumed that 'handle' was a vnode.  It is not
necessarily a vnode.  Use 'vp' instead.

Reported-by: Sepherosa Ziehau <sepherosa@gmail.com>
5 years agoIssue 1013 - update atime on exec and mmap, add helper vop_markatime
Matthew Dillon [Wed, 21 Jan 2009 01:39:51 +0000 (17:39 -0800)]
Issue 1013 - update atime on exec and mmap, add helper vop_markatime

Add a new helper VOP which passively updates a vnode's atime.  Implement
the new VOP in HAMMER and UFS and create a default op which does nothing.
Call the new function from mmap() and exec().

Submitted-by: Dion Blazakis
Reported-by: Simon Schubert
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 20 Jan 2009 17:59:18 +0000 (09:59 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoHAMMER utility - Use a full path to /sbin/mount instead of relying on PATH
Matthew Dillon [Tue, 20 Jan 2009 17:58:48 +0000 (09:58 -0800)]
HAMMER utility - Use a full path to /sbin/mount instead of relying on PATH

5 years agoRemove GEMDOS support.
Hasso Tepper [Sat, 3 Jan 2009 00:58:57 +0000 (02:58 +0200)]
Remove GEMDOS support.

5 years agoRemove checks for BOOTSIG[23] from FAT32 bootblocks.
Hasso Tepper [Sat, 3 Jan 2009 00:51:38 +0000 (02:51 +0200)]
Remove checks for BOOTSIG[23] from FAT32 bootblocks.

There seems to be very little documentary evidence outside this
implementation to suggest a these checks are neccessary, and more
than one camera-formatted flash disk fails the check, but mounts
successfully on most other systems.

Obtained-from: FreeBSD

5 years agoDon't check pm_Heads nor pm_SecPerTrack.
Hasso Tepper [Fri, 2 Jan 2009 22:05:03 +0000 (00:05 +0200)]
Don't check pm_Heads nor pm_SecPerTrack.

These might be 0 and aren't used anyway. Makes some "god knows where
formatted" usb sticks work here.

Obtained-from: FreeBSD

5 years agoMake "route add 0.0.0.0/X <gw>" where X > 0 work again.
Hasso Tepper [Sun, 18 Jan 2009 13:21:45 +0000 (15:21 +0200)]
Make "route add 0.0.0.0/X <gw>" where X > 0 work again.

5 years agoHAMMER utility - Add ^C support, improve verbosity.
Matthew Dillon [Tue, 20 Jan 2009 01:06:53 +0000 (17:06 -0800)]
HAMMER utility - Add ^C support, improve verbosity.

The hammer utility will now write-out the cycle file when pruning or
reblocking is interrupted with ^C.

The hammer cleanup directive will now wait for children to exit before
exiting itself.

The hammer reblocking and pruning directives now generate more verbose
printf output.

5 years agoNATA disk sort / elevator algorithm adjustments.
Matthew Dillon [Tue, 20 Jan 2009 00:53:46 +0000 (16:53 -0800)]
NATA disk sort / elevator algorithm adjustments.

Move the sortq_lost counter from the request structure to the channel
structure to fix some edge conditions.  Limit the sort to a maximum of
16 elements before moving the freeze pointer.

This should improve the protection against large continuous linear reads
and writes which can delay unrelated I/O's for very long periods of time.

Reported-by: Hasso Tepper <sinknull@crater.dragonflybsd.org>,
     "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>

5 years agoHAMMER: adjustments to flush on umount
Matthew Dillon [Tue, 20 Jan 2009 00:50:18 +0000 (16:50 -0800)]
HAMMER: adjustments to flush on umount

Instead of waiting for up to 25 hammer sync sequences before giving up,
instead wait up to 25 seconds before giving up.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
5 years agoFix a bug in vinvalbuf(). vinvalbuf() is usually called when attempting
Matthew Dillon [Mon, 19 Jan 2009 17:38:27 +0000 (09:38 -0800)]
Fix a bug in vinvalbuf().  vinvalbuf() is usually called when attempting
to reclaim a vnode but can sometimes be called with V_SAVE when attempting
to make a vnode reclaimable.  In the latter case write races with other
threads can create new dirty buffers after the FSYNC returns.

Only assert that dirty buffers are not present if the vnode is undergoing
reclamation.

Reported-by: "Justin C. Sherrill" <justin@shiningsilence.com>
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 17 Jan 2009 22:28:14 +0000 (14:28 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoReorder an unlock to avoid a recursive vnode lock in the sys_mount() code.
Matthew Dillon [Sat, 17 Jan 2009 22:24:52 +0000 (14:24 -0800)]
Reorder an unlock to avoid a recursive vnode lock in the sys_mount() code.
This fixes a panic for double-mount_null cases.

Reported-by: Nicolas Thery <nthery@gmail.com>
Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
5 years agoRemove extra '+'.
Sascha Wildner [Sat, 17 Jan 2009 19:16:26 +0000 (20:16 +0100)]
Remove extra '+'.

5 years agobce(4): fix module glue
Sepherosa Ziehau [Sat, 17 Jan 2009 09:28:02 +0000 (17:28 +0800)]
bce(4): fix module glue

5 years agoAdjust for change to packet mode as default.
Sascha Wildner [Fri, 16 Jan 2009 23:00:27 +0000 (00:00 +0100)]
Adjust for change to packet mode as default.

5 years agoAdjust the installer for the switch to packet mode as default.
Sascha Wildner [Fri, 16 Jan 2009 22:07:21 +0000 (23:07 +0100)]
Adjust the installer for the switch to packet mode as default.

5 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Simon Schubert [Fri, 16 Jan 2009 21:57:33 +0000 (22:57 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

5 years agoboot0cfg: update + rephrase the man page for the new packet mode default
Simon Schubert [Fri, 16 Jan 2009 21:42:14 +0000 (22:42 +0100)]
boot0cfg: update + rephrase the man page for the new packet mode default

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 16 Jan 2009 21:01:03 +0000 (13:01 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAdd code similar to what was done in physio to use a bounce buffer
Matthew Dillon [Fri, 16 Jan 2009 20:57:44 +0000 (12:57 -0800)]
Add code similar to what was done in physio to use a bounce buffer
if user data supplied to the CAM pass-throug device is not 16-byte aligned.
The user data was previously unconditionally vmapbuf()'d and the unaligned
pointer passed through to the device layer, causing NATA to barf badly on
SATA devices.

This fixes numerous dvd burning issues on SATA-based DVD burners.

Reported-by: Hasso Tepper <hasso@estpak.ee>
5 years agoboot0: enable packet mode by default
Simon Schubert [Fri, 16 Jan 2009 14:48:15 +0000 (15:48 +0100)]
boot0: enable packet mode by default

5 years agombr: de-C-commentize perfectly fine # assembler comments
Simon Schubert [Fri, 16 Jan 2009 14:32:02 +0000 (15:32 +0100)]
mbr: de-C-commentize perfectly fine # assembler comments

5 years agombr: enable packet mode by default
Simon Schubert [Fri, 16 Jan 2009 01:25:16 +0000 (02:25 +0100)]
mbr: enable packet mode by default

Make mbr always use packet mode if supported.
Define AVOID_PACKET_MODE to only use packet mode if necessary.

5 years agombr: convert to preprocessed source
Simon Schubert [Fri, 16 Jan 2009 01:22:03 +0000 (02:22 +0100)]
mbr: convert to preprocessed source

5 years agoFix mounting order of partitions.
Sascha Wildner [Thu, 15 Jan 2009 18:29:09 +0000 (19:29 +0100)]
Fix mounting order of partitions.

If the user specified (e.g.) a /usr/bin partition before /usr, the installer
would end up mounting them in the incorrect order. To fix this, we sort the
partitions by mount point as they are created.

5 years agoRemove /lib from the copy sources and sync internal table.
Sascha Wildner [Thu, 15 Jan 2009 15:40:30 +0000 (16:40 +0100)]
Remove /lib from the copy sources and sync internal table.

5 years agoMake building ISOs with the installer the default.
Sascha Wildner [Thu, 15 Jan 2009 13:33:06 +0000 (14:33 +0100)]
Make building ISOs with the installer the default.

I think it's safe to assume that ISOs without the installer are only
built by accident. The 'installer' target is a no-op now.

5 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Matthias Schmidt [Wed, 14 Jan 2009 14:29:21 +0000 (15:29 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

5 years agoAdd a note about PFS in the subpartition dialog.
Matthias Schmidt [Wed, 14 Jan 2009 14:27:09 +0000 (15:27 +0100)]
Add a note about PFS in the subpartition dialog.

Native-speaker-review-by: justin@
5 years agoAdd LWKT_TOKEN_INITIALIZER
Sepherosa Ziehau [Wed, 14 Jan 2009 14:11:04 +0000 (22:11 +0800)]
Add LWKT_TOKEN_INITIALIZER

5 years agoFix a VMWare related bug in the installer
Matthias Schmidt [Wed, 14 Jan 2009 12:16:03 +0000 (13:16 +0100)]
Fix a VMWare related bug in the installer

Someone noticed that the installer generated a wrong ifconfig_<if> line
in /etc/rc.conf if used under VMWare and with the lnc(4) driver.  Strange
about that is, that this only happens with that particular driver.  My em(4)
interface under VMWare is detected properly and the rc.conf entry is
correct.

The value of the interface variable is corrupted somewhere between the
invocation of dhclient and the asprintf.  This commit saves the interface
name in string directly after the dhclient invocation which fixes the
problem described above.

This commit is more a work-around than a real fix.  If someone comes up with
a better fix, I'm happy to back this out and test the new one.  Until now, this
makes the network configuration in the installer with VMWare and lnc(4) work.

5 years agoClean up some parts of nrelease
Matthias Schmidt [Wed, 14 Jan 2009 09:16:16 +0000 (10:16 +0100)]
Clean up some parts of nrelease

* Remove the untrue message in /etc/issue
* Sort the sources.conf and remove some deprecated entries

5 years agoFix a bug in the installer.
Matthias Schmidt [Tue, 13 Jan 2009 17:51:54 +0000 (18:51 +0100)]
Fix a bug in the installer.

The installer tried to unmount all mount points in order (e.g. /var/tmp
should be unmounted before /var).  The code had a bug which prevent it from
doing it correctly.  It seems that nobody noticed the bug, because the default
file system layout does not suggest subdir mounts.  With the introduction of
PFS and subdir mounts (e.g. a /var/crash PFS), the bug showed up.

Simplify the code a bit and sort the mounted file systems in reverse
lexicographical order.

In-collab-with: mneumann@

5 years agonull mount PFS correctly
Matthias Schmidt [Tue, 13 Jan 2009 12:27:59 +0000 (13:27 +0100)]
null mount PFS correctly

If the user wants to configure the freshly installed system, all PFSs need
to be mounted.  Fix a bug which prevented the PFS from being null mounted.

5 years agoBetter handling of PFS within in HAMMER part of the installer.
Matthias Schmidt [Fri, 9 Jan 2009 18:10:33 +0000 (19:10 +0100)]
Better handling of PFS within in HAMMER part of the installer.

5 years agoOops, acpi_cpu is part of acpi already.
Sascha Wildner [Tue, 13 Jan 2009 10:49:55 +0000 (11:49 +0100)]
Oops, acpi_cpu is part of acpi already.

5 years agoAdd acpi_{asus,cpu,thinkpad,toshiba,video} to LINT.
Sascha Wildner [Tue, 13 Jan 2009 10:46:15 +0000 (11:46 +0100)]
Add acpi_{asus,cpu,thinkpad,toshiba,video} to LINT.

5 years agoAdd acpi_asus(4) module for adding Asus laptop support to ACPI.
Sascha Wildner [Tue, 13 Jan 2009 10:44:34 +0000 (11:44 +0100)]
Add acpi_asus(4) module for adding Asus laptop support to ACPI.

Submitted-by: Dmitry Komissaroff <aunoor@gmail.com>
Taken-from:   FreeBSD

5 years agoSet the auto-reflush flag if the flusher is unable to completely flush
Matthew Dillon [Mon, 12 Jan 2009 21:46:20 +0000 (13:46 -0800)]
Set the auto-reflush flag if the flusher is unable to completely flush
an inode due to dependencies or memory considerations.

This should hopefully solve reported 'vinvalbuf: dirty bufs' panics,
which occur when VOP_FSYNC() returns before the inode is completely
flushed.

Reported-by: "Justin C. Sherrill" <justin@shiningsilence.com>
5 years agoSync fingerd with FreeBSD:
Peter Avalos [Mon, 12 Jan 2009 01:46:47 +0000 (20:46 -0500)]
Sync fingerd with FreeBSD:

WARNS2 cleanup.

When the -p flag is specified, set an environment variable to the name
of the remote host (or rather, the name as mangled by realhostname_sa())
so that the process can use it to behave differently depending on the
origin on the request.  We use this to implement rudimentary visibility
control on our user information.

Remove register keyword.

ANSI function declarations.

Remove (void) casts.

5 years agoUse off_t for file positions in comsat.
Peter Avalos [Mon, 12 Jan 2009 01:27:15 +0000 (20:27 -0500)]
Use off_t for file positions in comsat.

While I'm here, sync the manual page.

Obtained-from: FreeBSD

5 years agoWARNS6 cleanup for cksum.
Peter Avalos [Mon, 12 Jan 2009 00:55:08 +0000 (19:55 -0500)]
WARNS6 cleanup for cksum.

Remove (void) casts.

Use off_t for offsets instead of an u_int32_t.

Clean up #includes.

Obtained-from: FreeBSD

5 years agoImplement proper backtracking in internal nodes.
Simon Schubert [Mon, 12 Jan 2009 00:09:22 +0000 (01:09 +0100)]
Implement proper backtracking in internal nodes.

5 years agoPrint right boundary for internal nodes.
Simon Schubert [Sun, 11 Jan 2009 22:17:10 +0000 (23:17 +0100)]
Print right boundary for internal nodes.

5 years agoInstall ppbus headers.
Simon Schubert [Sun, 11 Jan 2009 17:44:47 +0000 (18:44 +0100)]
Install ppbus headers.

5 years agoMerge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Sun, 11 Jan 2009 22:54:52 +0000 (17:54 -0500)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly

5 years agoUpdate build for OpenSSL-0.9.8j upgrade.
Peter Avalos [Sun, 11 Jan 2009 20:42:21 +0000 (15:42 -0500)]
Update build for OpenSSL-0.9.8j upgrade.

5 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 11 Jan 2009 20:04:47 +0000 (15:04 -0500)]
Merge branch 'vendor/OPENSSL'

5 years agoImport OpenSSL 0.9.8j.
Peter Avalos [Sun, 11 Jan 2009 19:56:29 +0000 (14:56 -0500)]
Import OpenSSL 0.9.8j.

Note that we're adding a stripped-down doc/ and utils/ since we need
these to build our manual pages.

5 years agoFinish the move from renaming the openssl source directory.
Peter Avalos [Sun, 11 Jan 2009 17:45:30 +0000 (12:45 -0500)]
Finish the move from renaming the openssl source directory.

5 years agoMount USB stick root filesystem read/writable again.
Michael Neumann [Sun, 11 Jan 2009 17:43:33 +0000 (18:43 +0100)]
Mount USB stick root filesystem read/writable again.

5 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 11 Jan 2009 17:42:56 +0000 (12:42 -0500)]
Merge branch 'vendor/OPENSSL'

5 years agoMove openssl-0.9/ to openssl/.
Peter Avalos [Sun, 11 Jan 2009 17:35:26 +0000 (12:35 -0500)]
Move openssl-0.9/ to openssl/.

Versioning the directories just really doesn't make sense, especially
now with git.

5 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 11 Jan 2009 17:29:31 +0000 (12:29 -0500)]
Merge branch 'vendor/OPENSSL'

5 years agoRemove old versions of OpenSSL.
Peter Avalos [Sun, 11 Jan 2009 17:13:24 +0000 (12:13 -0500)]
Remove old versions of OpenSSL.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Michael Neumann [Sat, 10 Jan 2009 22:09:36 +0000 (23:09 +0100)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly