]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoConstify format string pointer, otherwise this would trigger warning when
delphij [Tue, 8 Sep 2009 01:11:23 +0000 (01:11 +0000)]
Constify format string pointer, otherwise this would trigger warning when
higher warning level is enabled.

14 years agoA few enhancements I made while working on the Firewire target (sbp_targ).
sbruno [Mon, 7 Sep 2009 23:16:27 +0000 (23:16 +0000)]
A few enhancements I made while working on the Firewire target (sbp_targ).

Update the error handling in a couple of cases to exit gracefully if
certain mandatory conditions aren't met.

Reduce the maximum number of initiators to 8 for this example code.  While
1024 is more correct, this example code would act like it was stalled out
even though it was merely allocating the needed structures in init_ccbs()

Reviewed by: scottl@freebsd.org

14 years agoIf we have to use avl_find(), optimize a bit and use avl_insert() instead of
pjd [Mon, 7 Sep 2009 21:58:54 +0000 (21:58 +0000)]
If we have to use avl_find(), optimize a bit and use avl_insert() instead of
avl_add() (the latter is actually a wrapper around avl_find() + avl_insert()).

Fix similar case in the code that is currently commented out.

14 years agoWhen snapshot mount point is busy (for example we are still in it)
pjd [Mon, 7 Sep 2009 21:46:51 +0000 (21:46 +0000)]
When snapshot mount point is busy (for example we are still in it)
we will fail to unmount it, but it won't be removed from the tree,
so in that case there is no need to reinsert it.

This fixes a panic reproducable in the following steps:

# zfs create tank/foo
# zfs snapshot tank/foo@snap
# cd /tank/foo/.zfs/snapshot/snap
# umount /tank/foo
panic: avl_find() succeeded inside avl_add()

Reported by: trasz
MFC after: 3 days

14 years agoSome of the controllers sold as ServeRAID (IBM ServeRAID-MR10i,
trasz [Mon, 7 Sep 2009 20:57:01 +0000 (20:57 +0000)]
Some of the controllers sold as ServeRAID (IBM  ServeRAID-MR10i,
in particular) are actually mfi(4) devices.  Provide hints.

Submitted by: <pluknet at gmail.com>

14 years agoFix detection of file system being shared. After this change commands like:
pjd [Mon, 7 Sep 2009 20:10:33 +0000 (20:10 +0000)]
Fix detection of file system being shared. After this change commands like:

# zfs unshare -a
# zfs destroy foo/bar
# zfs rename foo/bar foo/baz

should properly remove exported file systems.

MFC after: 3 days

14 years agoEnable NFSv4 ACL support in ZFS.
trasz [Mon, 7 Sep 2009 19:43:13 +0000 (19:43 +0000)]
Enable NFSv4 ACL support in ZFS.

Reviewed by: pjd

14 years agoAdd regression tests for NFSv4 ACL granular permission enforcement.
trasz [Mon, 7 Sep 2009 19:40:22 +0000 (19:40 +0000)]
Add regression tests for NFSv4 ACL granular permission enforcement.

14 years agoDefer thread start until we set priority.
pjd [Mon, 7 Sep 2009 19:22:44 +0000 (19:22 +0000)]
Defer thread start until we set priority.

Reviewed by: kib
MFC after: 3 days

14 years agoDon't recheck ownership on update mount. This will eliminate LOR between
pjd [Mon, 7 Sep 2009 18:54:55 +0000 (18:54 +0000)]
Don't recheck ownership on update mount. This will eliminate LOR between
vfs_busy() and mount mutex. We check ownership in vfs_domount() anyway.

Noticed by: kib
Reviewed by: kib
MFC after: 1 week

14 years ago- Avoid holding mutex around M_WAITOK allocations.
pjd [Mon, 7 Sep 2009 18:23:26 +0000 (18:23 +0000)]
- Avoid holding mutex around M_WAITOK allocations.
- Add locking for mnt_opt field.

MFC after: 1 week

14 years agoBring the layout of package-split.py more in line with where we're going
kensmith [Mon, 7 Sep 2009 17:54:20 +0000 (17:54 +0000)]
Bring the layout of package-split.py more in line with where we're going
with packages on the release media.  It looks like we'll be putting just
the doc packages on the new "memory stick" image as well as disc1.  There
will be no other packages on the CDROM-sized media.  The DVD sized media
will include the doc packages plus whatever other packages we decide to
make part of the release.

This commit just brings the basic structure in line with being able to
do this.  We still need to discuss with various people exactly which
packages will be included on the DVD.

If the environement variable "PKG_DVD" is set a tree suitable for the
DVD media is generated.  Otherwise a tree suitable for the "memory stick"
and disc1 is generated.

MFC after: 3 days

14 years agoPrevent the line from wrapping.
trasz [Mon, 7 Sep 2009 16:56:41 +0000 (16:56 +0000)]
Prevent the line from wrapping.

14 years agoAdd regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed
trasz [Mon, 7 Sep 2009 16:26:03 +0000 (16:26 +0000)]
Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed
error messages.

14 years agoAdd NFSv4 support to setfacl(1).
trasz [Mon, 7 Sep 2009 16:19:32 +0000 (16:19 +0000)]
Add NFSv4 support to setfacl(1).

Reviewed by: rwatson

14 years agoremove extranous return
sam [Mon, 7 Sep 2009 16:18:16 +0000 (16:18 +0000)]
remove extranous return

Submitted by: phk
MFC after: 1 week

14 years agofix extraneous return that can cause a memory leak
sam [Mon, 7 Sep 2009 16:12:07 +0000 (16:12 +0000)]
fix extraneous return that can cause a memory leak

Submitted by: phk
MFC after: 1 week

14 years agocorrect typo that was a noop on 32-bit machines but a bug on 64-bit machines
sam [Mon, 7 Sep 2009 16:08:21 +0000 (16:08 +0000)]
correct typo that was a noop on 32-bit machines but a bug on 64-bit machines

Submitted by: phk

14 years agoWhen joining a multicast group, the inp_lookup_mcast_ifp call
syrinx [Mon, 7 Sep 2009 16:00:33 +0000 (16:00 +0000)]
When joining a multicast group, the inp_lookup_mcast_ifp call
does a KASSERT that the group address is multicast, so the
check if this is indeed true and eventually return a EINVAL if not,
should be done before calling inp_lookup_mcast_ifp. This fixes a kernel
crash when calling setsockopt (sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,...)
with invalid group address.

Reviewed by: bms
Approved by: bms

MFC after: 3 days

14 years agoUse printb() instead of rolling its own routine to display
hrs [Mon, 7 Sep 2009 15:52:15 +0000 (15:52 +0000)]
Use printb() instead of rolling its own routine to display
bits in options=<>.

Pointed out by: ume
MFC after: 3 days

14 years agoSuppress an options line when no bit is on.
ume [Mon, 7 Sep 2009 15:22:54 +0000 (15:22 +0000)]
Suppress an options line when no bit is on.

Reviewed by: hrs
MFC after: 3 days

14 years agoTeach zdb(8) how to obtain GEOM provider size.
pjd [Mon, 7 Sep 2009 14:44:04 +0000 (14:44 +0000)]
Teach zdb(8) how to obtain GEOM provider size.

PR: kern/133134
Reported by: Philipp Wuensche <cryx-freebsd@h3q.com>
MFC after: 3 days

14 years agoChanging provider size is not really supported by GEOM, but doing so when
pjd [Mon, 7 Sep 2009 14:16:50 +0000 (14:16 +0000)]
Changing provider size is not really supported by GEOM, but doing so when
provider is closed should be ok.

When administrator requests to change ZVOL size do it immediately if ZVOL
is closed or do it on last ZVOL close.

PR: kern/136942
Requested by: Bernard Buri <bsd@ask-us.at>
MFC after: 1 week

14 years agoIf a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
kib [Mon, 7 Sep 2009 12:10:41 +0000 (12:10 +0000)]
If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
never been inserted into the pfs_vncache list. Since pfs_vncache_free()
does not anticipate this case, it decrements pfs_vncache_entries
unconditionally; if the vnode was not in the list, pfs_vncache_entries
will no longer reflect the actual number of list entries. This may cause
size of the cache to exceed the configured maximum. It may also trigger
a panic during module unload or system shutdown.

Do not decrement pfs_vncache_entries for the vnode that was not in the
list.

Submitted by: tegge
Reviewed by: des
MFC after: 1 week

14 years agoinsmntque_stddtr() clears vp->v_data and resets vp->v_op to
kib [Mon, 7 Sep 2009 11:55:34 +0000 (11:55 +0000)]
insmntque_stddtr() clears vp->v_data and resets vp->v_op to
dead_vnodeops before calling vgone(). Revert r189706 and corresponding
part of the r186560.

Noted and reviewed by: tegge
Approved by: des (pseudofs part)
MFC after: 3 days

14 years agobzero() on-stack argument, so mutex_init() won't misinterpret that the
pjd [Mon, 7 Sep 2009 11:38:43 +0000 (11:38 +0000)]
bzero() on-stack argument, so mutex_init() won't misinterpret that the
lock is already initialized if we have some garbage on the stack.

PR: kern/135480
Reported by: Emil Mikulic <emikulic@gmail.com>
MFC after: 3 days

14 years agoImport a vendor fix for a list overrun.
attilio [Mon, 7 Sep 2009 09:30:37 +0000 (09:30 +0000)]
Import a vendor fix for a list overrun.
This has been considered as a security hole on some specialized ml,
but currently the secteam@ doesn't consider that way.

Reviewed by: emaste, des
Sponsored by: Sandvine Incorporated
MFC after: 3 days

14 years agoMake sure to use up-to-date libarchive header files from source tree when
pjd [Mon, 7 Sep 2009 06:37:44 +0000 (06:37 +0000)]
Make sure to use up-to-date libarchive header files from source tree when
compiling tar and not the ones from /usr/include/.

Reviewed by: kientzle
Approved by: kientzle

14 years agoTo save small bit of CPU time, hide part of SNTF register read latency
mav [Sun, 6 Sep 2009 21:22:24 +0000 (21:22 +0000)]
To save small bit of CPU time, hide part of SNTF register read latency
behind other reads.

14 years agoMFp4:
mav [Sun, 6 Sep 2009 19:33:13 +0000 (19:33 +0000)]
MFp4:
Remove msleep() timeout from g_io_schedule_up/down(). It works fine
without it, saving few percents of CPU on high request rates without
need to rearm callout twice per request.

14 years agoMFp4:
mav [Sun, 6 Sep 2009 19:06:50 +0000 (19:06 +0000)]
MFp4:
Remove duplicate qfrozen_cnt variable from struct cam_ed.
ccbq.queue.qfrozen_cnt should be used instead.

14 years agoSilent gcc? Yeah, you wish. What I ment was to silence gcc.
pjd [Sun, 6 Sep 2009 19:05:03 +0000 (19:05 +0000)]
Silent gcc? Yeah, you wish. What I ment was to silence gcc.

Spotted by: julian

14 years agoRemove unneeded CAM_SIM_MPSAFE check.
mav [Sun, 6 Sep 2009 18:59:46 +0000 (18:59 +0000)]
Remove unneeded CAM_SIM_MPSAFE check.

14 years agos/bus %d/scbus%d/ in some messages to correct terminology.
mav [Sun, 6 Sep 2009 18:56:08 +0000 (18:56 +0000)]
s/bus %d/scbus%d/ in some messages to correct terminology.

14 years agoMFp4:
mav [Sun, 6 Sep 2009 18:48:18 +0000 (18:48 +0000)]
MFp4:
Report scbusX in xpt_announce_periph() to less confuse users by two
different bus addressing schemes.

14 years agoAvoid extra swi_sched() call, if this SIM is already queued.
mav [Sun, 6 Sep 2009 18:40:48 +0000 (18:40 +0000)]
Avoid extra swi_sched() call, if this SIM is already queued.
It reduces overhead for coalesced command completions.

14 years agoInitialize state_valid and arraysize variable so gcc won't complain.
pjd [Sun, 6 Sep 2009 18:09:25 +0000 (18:09 +0000)]
Initialize state_valid and arraysize variable so gcc won't complain.

Reported by: bz

14 years agoRemove constraint, requiring request data to fulfill controller's alignment
mav [Sun, 6 Sep 2009 14:23:26 +0000 (14:23 +0000)]
Remove constraint, requiring request data to fulfill controller's alignment
requirements. It is busdma task, to manage proper alignment by loading
data to bounce buffers.

PR: kern/127316
Reviewed by: current@
Tested by: Ryan Rogers

14 years agoChange w_notrunning and w_stillcold from pointer to array so that sizeof
antoine [Sun, 6 Sep 2009 13:31:05 +0000 (13:31 +0000)]
Change w_notrunning and w_stillcold from pointer to array so that sizeof
returns what is expected.

PR: kern/138557
Discussed with: brucec@
MFC after: 1 month

14 years agoUpdate etc/mtree/Makefile:
antoine [Sun, 6 Sep 2009 13:26:51 +0000 (13:26 +0000)]
Update etc/mtree/Makefile:
  There is no longer BSD.{local,x11-4,x11}.dist mtree files.
  There is a BSD.sendmail.dist mtree file.

14 years agoChange 'dev.cpu.N.temperature', sysctl I (degC) to IK (Kelvin).
nork [Sun, 6 Sep 2009 12:01:29 +0000 (12:01 +0000)]
Change 'dev.cpu.N.temperature', sysctl I (degC) to IK (Kelvin).

Approved by: re (rwatson)
Reviewed by: rpaulo
Suggested by: ume
MFC After: 3 days

14 years agoThe clear_remove() and clear_inodedeps() call vn_start_write(NULL, &mp,
kib [Sun, 6 Sep 2009 11:46:51 +0000 (11:46 +0000)]
The clear_remove() and clear_inodedeps() call vn_start_write(NULL, &mp,
V_NOWAIT) on the non-busied mount point. Unmount might free ufs-specific
mp data, causing ffs_vgetf() to access freed memory.

Busy mountpoint before dropping softdep lk.

Noted and reviewed by: tegge
Tested by: pho
MFC after: 1 week

14 years agoIn fhopen, vfs_ref() the mount point while vnode is unlocked, to prevent
kib [Sun, 6 Sep 2009 11:44:46 +0000 (11:44 +0000)]
In fhopen, vfs_ref() the mount point while vnode is unlocked, to prevent
vn_start_write(NULL, &mp) from operating on potentially freed or reused
struct mount *.

Remove unmatched vfs_rel() in cleanup.

Noted and reviewed by: tegge
Tested by: pho
MFC after: 3 days

14 years agoMove ptmx into pty(4).
ed [Sun, 6 Sep 2009 10:27:45 +0000 (10:27 +0000)]
Move ptmx into pty(4).

Now that pty(4) is a loadable kernel module, I'd better move /dev/ptmx
in there as well. This means that pty(4) now provides almost all
pseudo-terminal compatibility code. This means it's very easy to test
whether applications use the proper library interfaces when allocating
pseudo-terminals (namely posix_openpt and openpty).

14 years agoRemove unneeded minor numbers from /dev/null and /dev/zero.
ed [Sun, 6 Sep 2009 09:59:02 +0000 (09:59 +0000)]
Remove unneeded minor numbers from /dev/null and /dev/zero.

14 years agoPerform cleanups to the TTY headers:
ed [Sun, 6 Sep 2009 09:39:40 +0000 (09:39 +0000)]
Perform cleanups to the TTY headers:

- Properly sort the ioctls in ioctl_compat.h. Also perform some
  whitespace fixes.
- Properly comment all the unused/compat ioctls in ttycom.h.

14 years agoImprove code a bit by eliminating goto and having one unlock per lock.
pjd [Sun, 6 Sep 2009 07:32:16 +0000 (07:32 +0000)]
Improve code a bit by eliminating goto and having one unlock per lock.

14 years agoCorrect typo in comment.
pjd [Sun, 6 Sep 2009 07:30:21 +0000 (07:30 +0000)]
Correct typo in comment.

14 years agoCorrect comment.
pjd [Sun, 6 Sep 2009 07:29:22 +0000 (07:29 +0000)]
Correct comment.

14 years agoSynchornize description in manual page with strerror() output.
pjd [Sun, 6 Sep 2009 07:22:09 +0000 (07:22 +0000)]
Synchornize description in manual page with strerror() output.

14 years agoAdd support for changing providers priority.
pjd [Sun, 6 Sep 2009 06:52:06 +0000 (06:52 +0000)]
Add support for changing providers priority.

Submitted by: Mel Flynn

14 years agoUpdate copyright years.
pjd [Sun, 6 Sep 2009 06:49:59 +0000 (06:49 +0000)]
Update copyright years.

14 years agoFor any given subcommand allow to specify multi-line usage (separated by \n).
pjd [Sun, 6 Sep 2009 06:48:50 +0000 (06:48 +0000)]
For any given subcommand allow to specify multi-line usage (separated by \n).

Submitted by: Mel Flynn

14 years agoThe addresses that are assigned to the loopback interface
qingli [Sat, 5 Sep 2009 20:24:37 +0000 (20:24 +0000)]
The addresses that are assigned to the loopback interface
should be part of the kernel routing table.

Reviewed by: bz
MFC after: immediately

14 years agoIn the NEXTADDR macro use SA_SIZE() rather than directly using
bz [Sat, 5 Sep 2009 16:51:51 +0000 (16:51 +0000)]
In the NEXTADDR macro use SA_SIZE() rather than directly using
sizeof(), as introduced in r186119, for advancing the current
position into the buffer.
See comment in net/route.h for a description of the difference.
This makes ndp -s work again.

Reviewed by: qingli
X-MFC after: now

14 years agoThis patch fixes an address scope violation. Considering the
qingli [Sat, 5 Sep 2009 16:50:55 +0000 (16:50 +0000)]
This patch fixes an address scope violation. Considering the
scenario where an anycast address is assigned on one interface,
and a global address with the same scope is assigned on another
interface. In other words, the interface owns the anycast
address has only the link-local address as one other address.
Without this patch, "ping6" the anycast address from another
station will observe the source address of the returned ICMP6
echo reply has the link-local address, not the global address
that exists on the other interface in the same node.

Reviewed by: bz
MFC after: immediately

14 years agoThis patch fixes the following issues:
qingli [Sat, 5 Sep 2009 16:43:16 +0000 (16:43 +0000)]
This patch fixes the following issues:
- Interface link-local address is not reachable within the
  node that owns the interface, this is due to the mismatch
  in address scope as the result of the installed interface
  address loopback route. Therefore for each interface
  address loopback route, the rt_gateway field (of AF_LINK
  type) will be used to track which interface a given
  address belongs to. This will aid the address source to
  use the proper interface for address scope/zone validation.
- The loopback address is not reachable. The root cause is
  the same as the above.
- Empty nd6 entries are created for the IPv6 loopback addresses
  only for validation reason. Doing so will eliminate as much
  of the special case (loopback addresses) handling code
  as possible, however, these empty nd6 entries should not
  be returned to the userland applications such as the
  "ndp" command.
Since both of the above issues contain common files, these
files are committed together.

Reviewed by: bz
MFC after: immediately

14 years agoImprove wording.
trasz [Sat, 5 Sep 2009 15:08:58 +0000 (15:08 +0000)]
Improve wording.

Discussed with: pjd, cperciva, rink, wkoszek and des, in order of appearance.

14 years agoHandle zero size for posix_memalign. Return NULL or unique address
kib [Sat, 5 Sep 2009 13:32:05 +0000 (13:32 +0000)]
Handle zero size for posix_memalign. Return NULL or unique address
according to the 'V' option.

PR: standards/138307
MFC after: 1 week

14 years agoThese checks against BUSY aren't needed: the newbus layer does this
imp [Sat, 5 Sep 2009 08:38:25 +0000 (08:38 +0000)]
These checks against BUSY aren't needed: the newbus layer does this
already with the appropriate locks held...  There's no need to do it
here, so just delete the checks.

14 years agoGo ahead and mention the CVS branch name as well as the svn branch name.
imp [Sat, 5 Sep 2009 08:09:35 +0000 (08:09 +0000)]
Go ahead and mention the CVS branch name as well as the svn branch name.

14 years agoNote migration of tunable from hw.bus.devctl_disable to
imp [Sat, 5 Sep 2009 08:08:14 +0000 (08:08 +0000)]
Note migration of tunable from hw.bus.devctl_disable to
hw.bus.devctl_queue.  The sysctl interface provides legacys upport for
the latter sysctl, but the tunable support was removed.

MFC after: 1 day

14 years agoIf an interface is brought up with no cable it will experience
jfv [Fri, 4 Sep 2009 22:45:07 +0000 (22:45 +0000)]
If an interface is brought up with no cable it will experience
watchdog resets, this is due to a missing check for link in the
new multiqueue start code.

MFC: 3 days

14 years agomust also plumb static wep keys to the local sta db in sta mode; not
sam [Fri, 4 Sep 2009 22:34:57 +0000 (22:34 +0000)]
must also plumb static wep keys to the local sta db in sta mode; not
sure when this became necessary and might be caused by some missing
code to do auto-configuration of DWDS usage

Noticed by: Felix Feng <unixwind@gmail.com>

14 years agoAdd NFSv4 ACL support to mv(1).
trasz [Fri, 4 Sep 2009 21:49:37 +0000 (21:49 +0000)]
Add NFSv4 ACL support to mv(1).

Reviewed by: rwatson

14 years agoFill the reverse RSS map with 0xff's so that the subsequent loop to
jhb [Fri, 4 Sep 2009 21:00:45 +0000 (21:00 +0000)]
Fill the reverse RSS map with 0xff's so that the subsequent loop to
calculate the values will work properly.

Reviewed by: np
MFC after: 1 month

14 years agoAdd NFSv4 ACL support to find(1).
trasz [Fri, 4 Sep 2009 20:01:16 +0000 (20:01 +0000)]
Add NFSv4 ACL support to find(1).

Reviewed by: rwatson

14 years agoRemove artificial MAX_IO_SIZE constant, equal to DFLTPHYS * 2. Use MAXPHYS
mav [Fri, 4 Sep 2009 19:20:46 +0000 (19:20 +0000)]
Remove artificial MAX_IO_SIZE constant, equal to DFLTPHYS * 2. Use MAXPHYS
instead. It is NULL change for GENERIC kernel, but allows 'fast' mode to
work on systems with increased MAXPHYS.

14 years agoAllow a jail's name to be the same as its jid (which is the default if no
jamie [Fri, 4 Sep 2009 19:00:48 +0000 (19:00 +0000)]
Allow a jail's name to be the same as its jid (which is the default if no
name is specified), but still disallow other numeric names.

Reviewed by: zec
Approved by: bz (mentor)
MFC after: 3 days

14 years agoremove stale references to RTF_CLONING and RTF_LLINFO
kmacy [Fri, 4 Sep 2009 18:52:26 +0000 (18:52 +0000)]
remove stale references to RTF_CLONING and RTF_LLINFO

MFC after: 3 days

14 years agoAdd to `camcontrol cmd` support for sending arbitrary ATA commands.
mav [Fri, 4 Sep 2009 18:21:40 +0000 (18:21 +0000)]
Add to `camcontrol cmd` support for sending arbitrary ATA commands.

It could be used for broad range of tasks, such as configuring drive
power management modes, caching, security and any other features and tasks,
not supported by existing drivers.

14 years agoAdd missing ';'.
kib [Fri, 4 Sep 2009 14:53:12 +0000 (14:53 +0000)]
Add missing ';'.

14 years agoAdd NFSv4 ACL support to getfacl(1).
trasz [Fri, 4 Sep 2009 10:22:29 +0000 (10:22 +0000)]
Add NFSv4 ACL support to getfacl(1).

Reviewed by: rwatson

14 years agoMake umass(4) pass device USB serial number to CAM, making it possible
trasz [Fri, 4 Sep 2009 09:57:03 +0000 (09:57 +0000)]
Make umass(4) pass device USB serial number to CAM, making it possible
to e.g. retrieve it using camcontrol(8).

Reviewed by: scottl, hps (earlier version)
Obtained from: Wheel Sp. z o.o. (http://www.wheel.pl)

14 years agoIf crypto operation is finished with EAGAIN, don't repeat operation from
pjd [Fri, 4 Sep 2009 09:48:18 +0000 (09:48 +0000)]
If crypto operation is finished with EAGAIN, don't repeat operation from
the return context, but from the original context.
Before repeating operation clear DONE flag and error.

Reviewed by: sam
Obtained from: Wheel Sp. z o.o. (http://www.wheel.pl)

14 years agoMake serial numbers of daX disks visible by GEOM.
pjd [Fri, 4 Sep 2009 09:40:59 +0000 (09:40 +0000)]
Make serial numbers of daX disks visible by GEOM.

No objections from: scottl
Obtained from: Wheel Sp. z o.o. (http://www.wheel.pl)

14 years agoSimplify g_disk_ident_adjust() function and allow any printable character
pjd [Fri, 4 Sep 2009 09:39:06 +0000 (09:39 +0000)]
Simplify g_disk_ident_adjust() function and allow any printable character
in serial number.

Discussed with: trasz
Obtained from: Wheel Sp. z o.o. (http://www.wheel.pl)

14 years agoRemove 'ad:' prefix from disk serial number. We don't want serial number
pjd [Fri, 4 Sep 2009 09:33:50 +0000 (09:33 +0000)]
Remove 'ad:' prefix from disk serial number. We don't want serial number
to change when we reconnect the disk in a way that it is accessible through
CAM for example.

Discussed with: trasz

14 years agoLet the armchair generals handle this one.
des [Fri, 4 Sep 2009 07:44:58 +0000 (07:44 +0000)]
Let the armchair generals handle this one.

14 years agoRemove single occurance of HAS_CTYPE ifdef, ctype functions
ache [Fri, 4 Sep 2009 07:44:27 +0000 (07:44 +0000)]
Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.

14 years ago1) Remove single occurance of HAS_CTYPE ifdef, ctype functions
ache [Fri, 4 Sep 2009 07:42:13 +0000 (07:42 +0000)]
1) Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.
2) Add (unsigned char) casts to more ctype macros.
3) Simplify menu input handling using ctype instead of range unguarded
hardcoded tricks.

14 years agowhitespace commit
julian [Fri, 4 Sep 2009 07:29:24 +0000 (07:29 +0000)]
whitespace commit

Submitted by: bde@

14 years agoAdd lv_LV
ache [Fri, 4 Sep 2009 06:26:40 +0000 (06:26 +0000)]
Add lv_LV

PR:             105100
Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

14 years agoAdd lv_LV
ache [Fri, 4 Sep 2009 06:19:37 +0000 (06:19 +0000)]
Add lv_LV

PR:             105100
Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

14 years agoAdd lv_LV
ache [Fri, 4 Sep 2009 05:54:45 +0000 (05:54 +0000)]
Add lv_LV

PR:             105100
Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

14 years agoBring i386 up to date with amd64 and others.
julian [Fri, 4 Sep 2009 05:40:06 +0000 (05:40 +0000)]
Bring i386 up to date with amd64 and others.
The macros for PCPU can be slightly simplified, which makes the
resulting tangle qa lot easier to understand when trying to read them.

MFC after: 4 weeks

14 years agofix a TX issue on big endian machines like powerpc or sparc64. Now
weongyo [Fri, 4 Sep 2009 05:28:09 +0000 (05:28 +0000)]
fix a TX issue on big endian machines like powerpc or sparc64.  Now
zyd(4) should work on all architectures.

Obtained from: OpenBSD

14 years agoDon't bother obtaining the ident if we are not going to print it.
pjd [Thu, 3 Sep 2009 22:19:09 +0000 (22:19 +0000)]
Don't bother obtaining the ident if we are not going to print it.

14 years agoStupid cut and paste error on a stats struct member, thanks
jfv [Thu, 3 Sep 2009 22:00:42 +0000 (22:00 +0000)]
Stupid cut and paste error on a stats struct member, thanks
to Ryan at Small Tree for finding this one.

14 years agoAdd ARP statistics to the kernel and netstat.
gnn [Thu, 3 Sep 2009 21:10:57 +0000 (21:10 +0000)]
Add ARP statistics to the kernel and netstat.

New counters now exist for:
requests sent
replies sent
requests received
replies received
packets received
total packets dropped due to no ARP entry
entrys timed out
Duplicate IPs seen

The new statistics are seen in the netstat command
when it is given the -s command line switch.

MFC after: 2 weeks
In collaboration with: bz

14 years agoRound maxio for ATI SB600 to 64K.
mav [Thu, 3 Sep 2009 19:02:17 +0000 (19:02 +0000)]
Round maxio for ATI SB600 to 64K.

Submitted by: scottl@

14 years agoAdd lv_LV
ache [Thu, 3 Sep 2009 17:37:23 +0000 (17:37 +0000)]
Add lv_LV

14 years agoActually, stable/8 is what was created...
imp [Thu, 3 Sep 2009 17:13:54 +0000 (17:13 +0000)]
Actually, stable/8 is what was created...

14 years agoAdd lv_LV, move lt_LT to common part
ache [Thu, 3 Sep 2009 17:12:45 +0000 (17:12 +0000)]
Add lv_LV, move lt_LT to common part

14 years agoTime for house-cleaning:
imp [Thu, 3 Sep 2009 17:04:42 +0000 (17:04 +0000)]
Time for house-cleaning:
o remove all entries before RELENG_7 was branched, as is tradition[*].
o Update examples...  nobody cares about 5.x upgrades.
o minor format tweaking in a few places.
o update copyright (although at best I hold an editors copyright these days).
o Remove giving people permission to buy me beer.  I don't do enough for
  this document for that anymore...

14 years agoAdd lv_LV, move lt_LT to common part
ache [Thu, 3 Sep 2009 16:53:11 +0000 (16:53 +0000)]
Add lv_LV, move lt_LT to common part

14 years agoDo the first step in removing lukemftpd from the base system. Disconnect
remko [Thu, 3 Sep 2009 16:34:20 +0000 (16:34 +0000)]
Do the first step in removing lukemftpd from the base system. Disconnect
it from the build.

If you are using the FTP daemon, please consider using the port ftp/tnftpd
which is the same FTP server, but newer and might have more/better
functionality.

This results in us providing only one ftp daemon by default.

Reviewed by: bz
Approved by: imp (mentor, implicit)
MFC after: 3 days
Silence from: obrien

14 years agoExpose the TF_REVERSE flag to the console driver.
ed [Thu, 3 Sep 2009 16:31:11 +0000 (16:31 +0000)]
Expose the TF_REVERSE flag to the console driver.

Right now libteken processes TF_REVERSE internally and returns the
toggled colors to the console driver. This isn't entirely correct. This
means that the bold flag is always processed by the foreground color,
while reversing should be done after the foreground color has been set
to a brighter version by the bold flag.

This is no problem with the syscons driver, because with VGA it only
supports 16 foreground and 8 background colors. My WIP console driver
reconfigures the graphics hardware to disable the blink functionality
and uses 16 foreground and 16 background colors. This means that this
driver will handle the TF_REVERSE flag a little different from what
syscons does right now.

14 years agocorrect timeout for doing NOL processing; need a ticks-relative value
sam [Thu, 3 Sep 2009 16:29:02 +0000 (16:29 +0000)]
correct timeout for doing NOL processing; need a ticks-relative value

Obtained from: Marvell
MFC after: 3 days

14 years agoAdd la_LN.ISO8859-13 and lv_LV
ache [Thu, 3 Sep 2009 16:25:25 +0000 (16:25 +0000)]
Add la_LN.ISO8859-13 and lv_LV