Peter Avalos [Sat, 24 Jan 2009 17:06:28 +0000 (12:06 -0500)]
Merge branch 'vendor/GDTOA'
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.
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.
Sascha Wildner [Fri, 23 Jan 2009 14:37:03 +0000 (15:37 +0100)]
Remove Asia/Katmandu upon 'make upgrade'.
Sascha Wildner [Thu, 22 Jan 2009 12:56:37 +0000 (13:56 +0100)]
Use .Fx.
Sascha Wildner [Thu, 22 Jan 2009 12:55:42 +0000 (13:55 +0100)]
Comment out function which we don't have.
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>
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
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
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
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>
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
Matthew Dillon [Tue, 20 Jan 2009 17:59:18 +0000 (09:59 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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
Hasso Tepper [Sat, 3 Jan 2009 00:58:57 +0000 (02:58 +0200)]
Remove GEMDOS support.
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
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
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.
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.
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>
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>
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>
Matthew Dillon [Sat, 17 Jan 2009 22:28:14 +0000 (14:28 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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>
Sascha Wildner [Sat, 17 Jan 2009 19:16:26 +0000 (20:16 +0100)]
Remove extra '+'.
Sepherosa Ziehau [Sat, 17 Jan 2009 09:28:02 +0000 (17:28 +0800)]
bce(4): fix module glue
Sascha Wildner [Fri, 16 Jan 2009 23:00:27 +0000 (00:00 +0100)]
Adjust for change 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.
Simon Schubert [Fri, 16 Jan 2009 21:57:33 +0000 (22:57 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
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
Matthew Dillon [Fri, 16 Jan 2009 21:01:03 +0000 (13:01 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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>
Simon Schubert [Fri, 16 Jan 2009 14:48:15 +0000 (15:48 +0100)]
boot0: enable packet mode by default
Simon Schubert [Fri, 16 Jan 2009 14:32:02 +0000 (15:32 +0100)]
mbr: de-C-commentize perfectly fine # assembler comments
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.
Simon Schubert [Fri, 16 Jan 2009 01:22:03 +0000 (02:22 +0100)]
mbr: convert to preprocessed source
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.
Sascha Wildner [Thu, 15 Jan 2009 15:40:30 +0000 (16:40 +0100)]
Remove /lib from the copy sources and sync internal table.
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.
Matthias Schmidt [Wed, 14 Jan 2009 14:29:21 +0000 (15:29 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
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@
Sepherosa Ziehau [Wed, 14 Jan 2009 14:11:04 +0000 (22:11 +0800)]
Add LWKT_TOKEN_INITIALIZER
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.
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
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@
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.
Matthias Schmidt [Fri, 9 Jan 2009 18:10:33 +0000 (19:10 +0100)]
Better handling of PFS within in HAMMER part of the installer.
Sascha Wildner [Tue, 13 Jan 2009 10:49:55 +0000 (11:49 +0100)]
Oops, acpi_cpu is part of acpi already.
Sascha Wildner [Tue, 13 Jan 2009 10:46:15 +0000 (11:46 +0100)]
Add acpi_{asus,cpu,thinkpad,toshiba,video} to LINT.
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
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>
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.
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
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
Simon Schubert [Mon, 12 Jan 2009 00:09:22 +0000 (01:09 +0100)]
Implement proper backtracking in internal nodes.
Simon Schubert [Sun, 11 Jan 2009 22:17:10 +0000 (23:17 +0100)]
Print right boundary for internal nodes.
Simon Schubert [Sun, 11 Jan 2009 17:44:47 +0000 (18:44 +0100)]
Install ppbus headers.
Peter Avalos [Sun, 11 Jan 2009 22:54:52 +0000 (17:54 -0500)]
Merge branch 'master' of /home/www-data/gitweb/dragonfly
Peter Avalos [Sun, 11 Jan 2009 20:42:21 +0000 (15:42 -0500)]
Update build for OpenSSL-0.9.8j upgrade.
Peter Avalos [Sun, 11 Jan 2009 20:04:47 +0000 (15:04 -0500)]
Merge branch 'vendor/OPENSSL'
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.
Peter Avalos [Sun, 11 Jan 2009 17:45:30 +0000 (12:45 -0500)]
Finish the move from renaming the openssl source directory.
Michael Neumann [Sun, 11 Jan 2009 17:43:33 +0000 (18:43 +0100)]
Mount USB stick root filesystem read/writable again.
Peter Avalos [Sun, 11 Jan 2009 17:42:56 +0000 (12:42 -0500)]
Merge branch 'vendor/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.
Peter Avalos [Sun, 11 Jan 2009 17:29:31 +0000 (12:29 -0500)]
Merge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 11 Jan 2009 17:13:24 +0000 (12:13 -0500)]
Remove old versions of OpenSSL.
Michael Neumann [Sat, 10 Jan 2009 22:09:36 +0000 (23:09 +0100)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Michael Neumann [Sat, 10 Jan 2009 22:06:50 +0000 (23:06 +0100)]
Make the USB stick image boot the root filesystem
read only, just like the boot CD does. Also use 15%
instead of 15MB more space. This leads to an image
which contains a 97% full filesystem.
Joe Talbott [Sat, 10 Jan 2009 19:50:16 +0000 (14:50 -0500)]
Update to use kprintf() rather than printf().
Joe Talbott [Sat, 10 Jan 2009 19:49:35 +0000 (14:49 -0500)]
Add missing include for stdlib.h needed for exit().
Joe Talbott [Sat, 10 Jan 2009 19:33:04 +0000 (14:33 -0500)]
Merge branch 'master' of git://venus/dragonfly
Joe Talbott [Sat, 10 Jan 2009 19:03:45 +0000 (14:03 -0500)]
Merge branch 'master' of git://venus/dragonfly
Joe Talbott [Sat, 10 Jan 2009 19:02:44 +0000 (14:02 -0500)]
Use kprintf() rather than printf().
Michael Neumann [Sat, 10 Jan 2009 16:34:57 +0000 (17:34 +0100)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Sat, 10 Jan 2009 18:25:54 +0000 (18:25 +0000)]
Do not write two lines for swap to /etc/fstab.
Reported-by: Konstantinos Pachnis <kpachnis@freemail.gr>
Peter Avalos [Sat, 10 Jan 2009 17:13:31 +0000 (12:13 -0500)]
keyadmin hasn't been used in nearly a decade. Buh Bye.
Michael Neumann [Sat, 10 Jan 2009 16:33:15 +0000 (17:33 +0100)]
Use 5MB more for the image file to not go beyond 100%
file system usage.
Simon Schubert [Sat, 10 Jan 2009 15:39:01 +0000 (16:39 +0100)]
Allow mirror override, restructure git commands to allow other branches.
Sascha Wildner [Sat, 10 Jan 2009 16:05:03 +0000 (16:05 +0000)]
Sync iir(4) with FreeBSD.
This fixes disk recognition with the Intel RAID Controller SRCU42L, and
perhaps a few more other things.
Tested-by: Konstantinos Pachnis <kpachnis@freemail.gr>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1128>
Michael Neumann [Sat, 10 Jan 2009 13:52:24 +0000 (14:52 +0100)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Michael Neumann [Sat, 10 Jan 2009 13:51:03 +0000 (14:51 +0100)]
Do not hard-code the repository paths, instead use
variables. This makes it easier to use a mirror.
Matthew Dillon [Sat, 10 Jan 2009 01:23:13 +0000 (17:23 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Sat, 10 Jan 2009 02:01:26 +0000 (02:01 +0000)]
Fix braino on my side.
Matthew Dillon [Sat, 10 Jan 2009 01:17:03 +0000 (17:17 -0800)]
Fix a bug with undo -d. Sometimes the filesystem returns a duplicate TID
causing undo -d to choose the wrong TID. It now searches backwards looking
for the second-to-last TID to diff against, ignoring any dups.
Reported-by: "Brad Frank" <brad.frank@gmail.com>
Matthew Dillon [Fri, 9 Jan 2009 21:53:39 +0000 (13:53 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel
Matthew Dillon [Fri, 9 Jan 2009 21:51:56 +0000 (13:51 -0800)]
Fix a system livelock when ^C'ing a program sleeping in the console
driver. ERESTART must be propagated back to userland so the signal can
be processed. Trying to loop on it livelocks the machine.
Reported-by: Hasso Tepper
Sascha Wildner [Fri, 9 Jan 2009 20:08:34 +0000 (20:08 +0000)]
Clean up a bit and mention the new image stuff.
Sascha Wildner [Fri, 9 Jan 2009 20:06:58 +0000 (20:06 +0000)]
Fix typo: should be ${ISOROOT}, not ${ISODIR}.
Michael Neumann [Fri, 9 Jan 2009 16:37:56 +0000 (17:37 +0100)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Fri, 9 Jan 2009 18:29:28 +0000 (18:29 +0000)]
Revert back to installing packages from a chroot.
Also, remove the -I option which prevented the package install scripts
from being run. This is important for the LiveDVD to properly build.
Michael Neumann [Fri, 9 Jan 2009 16:34:04 +0000 (17:34 +0100)]
Cleanup USB stick image generation.
* Use $ISOROOT/mnt instead of the global /mnt.
* Automatically determine the free vn-device.
* Automatically determine the image size.
Matthias Schmidt [Fri, 9 Jan 2009 11:38:43 +0000 (12:38 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Matthias Schmidt [Fri, 9 Jan 2009 11:35:25 +0000 (12:35 +0100)]
Add IPv6 support to dntpd
This commit allows dntpd to work with either IPv4 or IPv6 NTP servers. I added
two new command line switches (-4/-6) to force dntpd to use only v4/v6 addresses.
Thanks to sephe@ for some good hints.
Reviewed-by: sephe@
Michael Neumann [Fri, 9 Jan 2009 10:36:34 +0000 (11:36 +0100)]
Fix last commit
Uncomment line that was commented in while testing.
Michael Neumann [Fri, 9 Jan 2009 09:54:10 +0000 (10:54 +0100)]
Integrate USB stick image generation into nrelease.
To build the image use:
make img release
Notice that you might have to change some of these
variables below:
IMGFILE ?= ${ISODIR}/dfly.img
IMGMNT ?= /mnt # where the image is mounted
IMGSIZE ?= 450 # the size in MB of the image
IMGVN ?= vn0 # the vn device used for the image
IMGUSBDEV ?= /dev/da0 # USB device name, required for fstab
To write the image to USB disk, use:
dd if=${ISODIR}/dfly.img of=${IMGUSBDEV} bs=1m
Sascha Wildner [Thu, 8 Jan 2009 11:29:12 +0000 (12:29 +0100)]
Add some files which were removed from the system.
Sascha Wildner [Thu, 8 Jan 2009 00:39:10 +0000 (01:39 +0100)]
Adjust for recent changes.
Sascha Wildner [Thu, 8 Jan 2009 00:31:40 +0000 (01:31 +0100)]
Remove some unneeded .Pp's.
Sascha Wildner [Thu, 8 Jan 2009 00:21:08 +0000 (01:21 +0100)]
netconfig is not a function.