]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoFree the correct buffer in an error case.
Scott Long [Tue, 8 Sep 2009 16:09:28 +0000 (16:09 +0000)]
Free the correct buffer in an error case.

Submitted by: phk

15 years agoWe don't export individual snapshots, so mnt_export field in snapshot's
Pawel Jakub Dawidek [Tue, 8 Sep 2009 15:57:03 +0000 (15:57 +0000)]
We don't export individual snapshots, so mnt_export field in snapshot's
mount point is NULL. That's why when we try to access snapshots over NFS
use mnt_export field from the parent file system.

MFC after: 1 week

15 years agoAdd C/c/f/p/v switches plus a bunch of minor fixes and cleanups.
Roman Divacky [Tue, 8 Sep 2009 15:55:13 +0000 (15:55 +0000)]
Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.

Obtained from: NetBSD
Approved by: des (maintainer)
Approved by: ed (mentor, implicit)

15 years agoWhen we automatically mount snapshot we want to return vnode of the mount point
Pawel Jakub Dawidek [Tue, 8 Sep 2009 15:51:40 +0000 (15:51 +0000)]
When we automatically mount snapshot we want to return vnode of the mount point
from the lookup and not covered vnode. This is one of the fixes for using .zfs/
over NFS.

MFC after: 1 week

15 years agoOn FreeBSD we don't have to look for snapshot's mount point,
Pawel Jakub Dawidek [Tue, 8 Sep 2009 15:42:55 +0000 (15:42 +0000)]
On FreeBSD we don't have to look for snapshot's mount point,
because fhtovp method is already called with proper mount point.

MFC after: 1 week

15 years agoCall ZFS_EXIT() after locking the vnode.
Pawel Jakub Dawidek [Tue, 8 Sep 2009 15:37:01 +0000 (15:37 +0000)]
Call ZFS_EXIT() after locking the vnode.

MFC after: 1 week

15 years agoAdd necessary include
Poul-Henning Kamp [Tue, 8 Sep 2009 15:18:25 +0000 (15:18 +0000)]
Add necessary include

15 years agoHaving thrown the cat out of the house, add a necessary include.
Poul-Henning Kamp [Tue, 8 Sep 2009 13:24:36 +0000 (13:24 +0000)]
Having thrown the cat out of the house, add a necessary include.

15 years agoRevert previous commit and add myself to the list of people who should
Poul-Henning Kamp [Tue, 8 Sep 2009 13:19:05 +0000 (13:19 +0000)]
Revert previous commit and add myself to the list of people who should
know better than to commit with a cat in the area.

15 years agoAdd necessary include.
Poul-Henning Kamp [Tue, 8 Sep 2009 13:16:55 +0000 (13:16 +0000)]
Add necessary include.

15 years agoMove multi-include protection back up to the top of the file and
Poul-Henning Kamp [Tue, 8 Sep 2009 12:59:56 +0000 (12:59 +0000)]
Move multi-include protection back up to the top of the file and
name after the physical file rather than the aliased name.

15 years agoMove the duplicate definition of struct sockaddr_storage to its own
Poul-Henning Kamp [Tue, 8 Sep 2009 10:39:38 +0000 (10:39 +0000)]
Move the duplicate definition of struct sockaddr_storage to its own
include file, and include this where the previous duplicate definitions were.

Static program checkers like FlexeLint rightfully take a dim view of
duplicate definitions, even if they currently are identical.

15 years agoLock Giant around vn_open_cred().
Konstantin Belousov [Tue, 8 Sep 2009 09:17:34 +0000 (09:17 +0000)]
Lock Giant around vn_open_cred().
Remove innocent unnecessary call to NDFREE().

Reported by: marcel
Reviewed and tested by: pjd
MFC after: 3 days

15 years agoFix reference count leak for a case where snapshot's mount point is updated.
Pawel Jakub Dawidek [Tue, 8 Sep 2009 08:54:15 +0000 (08:54 +0000)]
Fix reference count leak for a case where snapshot's mount point is updated.
Such situation is not supported.

This problem was triggered by something like this:

# zpool create tank da0
# zfs snapshot tank@snap
# cd /tank/.zfs/snapshot/snap  (this will mount the snapshot)
# cd
# mount -u nosuid /tank/.zfs/snapshot/snap  (refcount leak)
# zpool export tank
cannot export 'tank': pool is busy

MFC after: 1 week

15 years agoDo not check proper request alignment here in geom_dev in production.
Alexander Motin [Tue, 8 Sep 2009 05:46:38 +0000 (05:46 +0000)]
Do not check proper request alignment here in geom_dev in production.
It will be checked any way later by g_io_check() in g_io_schedule_down().
It is only needed here to not trigger panic from additional check, when
INVARIANTS enabled. So cover it with #ifdef INVARIANTS. It saves two
64bit divisions per request.

15 years agoFiz /usr/bin/unzip: A bug deep in libarchive's read-ahead logic
Tim Kientzle [Tue, 8 Sep 2009 05:02:41 +0000 (05:02 +0000)]
Fiz /usr/bin/unzip: A bug deep in libarchive's read-ahead logic
(incorrect handling of zero-length reads before the copy buffer is
allocated) is masked by the iso9660 taster.  Tar and cpio both enable
that taster so were protected from the bug; unzip is susceptible.

This both fixes the bug and updates the test harness to exercise
this case.

Submitted by: Ed Schouten diagnosed the bug and drafted a patch
MFC after: 7 days

15 years agoUpdate tests to match r195873, which corrected how hardlinked files
Tim Kientzle [Tue, 8 Sep 2009 04:52:12 +0000 (04:52 +0000)]
Update tests to match r195873, which corrected how hardlinked files
on iso9660 images were returned.  While I'm poking around, update
some comments around this area to try to clarify what's going on and
what still remains to be improved.

15 years agoConstify format string pointer, otherwise this would trigger warning when
Xin LI [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.

15 years agoA few enhancements I made while working on the Firewire target (sbp_targ).
Sean Bruno [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

15 years agoIf we have to use avl_find(), optimize a bit and use avl_insert() instead of
Pawel Jakub Dawidek [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.

15 years agoWhen snapshot mount point is busy (for example we are still in it)
Pawel Jakub Dawidek [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

15 years agoSome of the controllers sold as ServeRAID (IBM ServeRAID-MR10i,
Edward Tomasz Napierala [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>

15 years agoFix detection of file system being shared. After this change commands like:
Pawel Jakub Dawidek [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

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

Reviewed by: pjd

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

15 years agoDefer thread start until we set priority.
Pawel Jakub Dawidek [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

15 years agoDon't recheck ownership on update mount. This will eliminate LOR between
Pawel Jakub Dawidek [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

15 years ago- Avoid holding mutex around M_WAITOK allocations.
Pawel Jakub Dawidek [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

15 years agoBring the layout of package-split.py more in line with where we're going
Ken Smith [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

15 years agoPrevent the line from wrapping.
Edward Tomasz Napierala [Mon, 7 Sep 2009 16:56:41 +0000 (16:56 +0000)]
Prevent the line from wrapping.

15 years agoAdd regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed
Edward Tomasz Napierala [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.

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

Reviewed by: rwatson

15 years agoremove extranous return
Sam Leffler [Mon, 7 Sep 2009 16:18:16 +0000 (16:18 +0000)]
remove extranous return

Submitted by: phk
MFC after: 1 week

15 years agofix extraneous return that can cause a memory leak
Sam Leffler [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

15 years agocorrect typo that was a noop on 32-bit machines but a bug on 64-bit machines
Sam Leffler [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

15 years agoWhen joining a multicast group, the inp_lookup_mcast_ifp call
Shteryana Shopova [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

15 years agoUse printb() instead of rolling its own routine to display
Hiroki Sato [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

15 years agoSuppress an options line when no bit is on.
Hajimu UMEMOTO [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

15 years agoTeach zdb(8) how to obtain GEOM provider size.
Pawel Jakub Dawidek [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

15 years agoChanging provider size is not really supported by GEOM, but doing so when
Pawel Jakub Dawidek [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

15 years agoIf a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
Konstantin Belousov [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

15 years agoinsmntque_stddtr() clears vp->v_data and resets vp->v_op to
Konstantin Belousov [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

15 years agobzero() on-stack argument, so mutex_init() won't misinterpret that the
Pawel Jakub Dawidek [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

15 years agoImport a vendor fix for a list overrun.
Attilio Rao [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

15 years agoMake sure to use up-to-date libarchive header files from source tree when
Pawel Jakub Dawidek [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

15 years agoTo save small bit of CPU time, hide part of SNTF register read latency
Alexander Motin [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.

15 years agoMFp4:
Alexander Motin [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.

15 years agoMFp4:
Alexander Motin [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.

15 years agoSilent gcc? Yeah, you wish. What I ment was to silence gcc.
Pawel Jakub Dawidek [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

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

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

15 years agoMFp4:
Alexander Motin [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.

15 years agoAvoid extra swi_sched() call, if this SIM is already queued.
Alexander Motin [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.

15 years agoInitialize state_valid and arraysize variable so gcc won't complain.
Pawel Jakub Dawidek [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

15 years agoRemove constraint, requiring request data to fulfill controller's alignment
Alexander Motin [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

15 years agoChange w_notrunning and w_stillcold from pointer to array so that sizeof
Antoine Brodin [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

15 years agoUpdate etc/mtree/Makefile:
Antoine Brodin [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.

15 years agoChange 'dev.cpu.N.temperature', sysctl I (degC) to IK (Kelvin).
Norikatsu Shigemura [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

15 years agoThe clear_remove() and clear_inodedeps() call vn_start_write(NULL, &mp,
Konstantin Belousov [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

15 years agoIn fhopen, vfs_ref() the mount point while vnode is unlocked, to prevent
Konstantin Belousov [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

15 years agoMove ptmx into pty(4).
Ed Schouten [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).

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

15 years agoPerform cleanups to the TTY headers:
Ed Schouten [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.

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

15 years agoCorrect typo in comment.
Pawel Jakub Dawidek [Sun, 6 Sep 2009 07:30:21 +0000 (07:30 +0000)]
Correct typo in comment.

15 years agoCorrect comment.
Pawel Jakub Dawidek [Sun, 6 Sep 2009 07:29:22 +0000 (07:29 +0000)]
Correct comment.

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

15 years agoAdd support for changing providers priority.
Pawel Jakub Dawidek [Sun, 6 Sep 2009 06:52:06 +0000 (06:52 +0000)]
Add support for changing providers priority.

Submitted by: Mel Flynn

15 years agoUpdate copyright years.
Pawel Jakub Dawidek [Sun, 6 Sep 2009 06:49:59 +0000 (06:49 +0000)]
Update copyright years.

15 years agoFor any given subcommand allow to specify multi-line usage (separated by \n).
Pawel Jakub Dawidek [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

15 years agoThe addresses that are assigned to the loopback interface
Qing Li [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

15 years agoIn the NEXTADDR macro use SA_SIZE() rather than directly using
Bjoern A. Zeeb [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

15 years agoThis patch fixes an address scope violation. Considering the
Qing Li [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

15 years agoThis patch fixes the following issues:
Qing Li [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

15 years agoImprove wording.
Edward Tomasz Napierala [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.

15 years agoHandle zero size for posix_memalign. Return NULL or unique address
Konstantin Belousov [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

15 years agoThese checks against BUSY aren't needed: the newbus layer does this
Warner Losh [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.

15 years agoGo ahead and mention the CVS branch name as well as the svn branch name.
Warner Losh [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.

15 years agoNote migration of tunable from hw.bus.devctl_disable to
Warner Losh [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

15 years agoIf an interface is brought up with no cable it will experience
Jack F Vogel [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

15 years agomust also plumb static wep keys to the local sta db in sta mode; not
Sam Leffler [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>

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

Reviewed by: rwatson

15 years agoFill the reverse RSS map with 0xff's so that the subsequent loop to
John Baldwin [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

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

Reviewed by: rwatson

15 years agoRemove artificial MAX_IO_SIZE constant, equal to DFLTPHYS * 2. Use MAXPHYS
Alexander Motin [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.

15 years agoAllow a jail's name to be the same as its jid (which is the default if no
Jamie Gritton [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

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

MFC after: 3 days

15 years agoAdd to `camcontrol cmd` support for sending arbitrary ATA commands.
Alexander Motin [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.

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

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

Reviewed by: rwatson

15 years agoMake umass(4) pass device USB serial number to CAM, making it possible
Edward Tomasz Napierala [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)

15 years agoIf crypto operation is finished with EAGAIN, don't repeat operation from
Pawel Jakub Dawidek [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)

15 years agoMake serial numbers of daX disks visible by GEOM.
Pawel Jakub Dawidek [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)

15 years agoSimplify g_disk_ident_adjust() function and allow any printable character
Pawel Jakub Dawidek [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)

15 years agoRemove 'ad:' prefix from disk serial number. We don't want serial number
Pawel Jakub Dawidek [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

15 years agoLet the armchair generals handle this one.
Dag-Erling Smørgrav [Fri, 4 Sep 2009 07:44:58 +0000 (07:44 +0000)]
Let the armchair generals handle this one.

15 years agoRemove single occurance of HAS_CTYPE ifdef, ctype functions
Andrey A. Chernov [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.

15 years ago1) Remove single occurance of HAS_CTYPE ifdef, ctype functions
Andrey A. Chernov [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.

15 years agowhitespace commit
Julian Elischer [Fri, 4 Sep 2009 07:29:24 +0000 (07:29 +0000)]
whitespace commit

Submitted by: bde@

15 years agoAdd lv_LV
Andrey A. Chernov [Fri, 4 Sep 2009 06:26:40 +0000 (06:26 +0000)]
Add lv_LV

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