]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

14 years agoon transition to SLEEP state mark the station in power save, not awake
sam [Thu, 3 Sep 2009 16:24:21 +0000 (16:24 +0000)]
on transition to SLEEP state mark the station in power save, not awake

MFC after: 3 days

14 years agoAdd intermediate states for attaching and detaching that will be
attilio [Thu, 3 Sep 2009 13:40:41 +0000 (13:40 +0000)]
Add intermediate states for attaching and detaching that will be
reused by the enhached newbus locking once it is checked in.
This change can be easilly MFCed to STABLE_8 at the appropriate moment.

Reviewed by: jhb, scottl
Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

14 years agoATI SB600 can't handle 256 sectors transfers with FPDMA (NCQ).
mav [Thu, 3 Sep 2009 12:37:17 +0000 (12:37 +0000)]
ATI SB600 can't handle 256 sectors transfers with FPDMA (NCQ).

MFC after: 3 days

14 years agoDocument the need for a cast when passing a char to a ctype function.
des [Thu, 3 Sep 2009 10:06:37 +0000 (10:06 +0000)]
Document the need for a cast when passing a char to a ctype function.

MFC after: 2 weeks

14 years agoMove libteken out of the syscons directory.
ed [Thu, 3 Sep 2009 09:33:57 +0000 (09:33 +0000)]
Move libteken out of the syscons directory.

I initially committed libteken to sys/dev/syscons/teken, but now that
I'm working on a console driver myself, I noticed this was not a good
decision. Move it to sys/teken to make it easier for other drivers to
use a terminal emulator.

Also list teken.c in sys/conf/files, instead of listing it in all the
files.arch files separately.

14 years agoFix regression introduced in r196712 - the 'name' string needs
trasz [Wed, 2 Sep 2009 20:50:39 +0000 (20:50 +0000)]
Fix regression introduced in r196712 - the 'name' string needs
to be rewritten for each file we want to check ACL on.  Without
this change, ls(1) would check only the ACL on the first file
to list.

14 years agoFix some bugs related to adaptive spinning:
attilio [Wed, 2 Sep 2009 17:33:51 +0000 (17:33 +0000)]
Fix some bugs related to adaptive spinning:

In the lockmgr support:
- GIANT_RESTORE() is just called when the sleep finishes, so the current
  code can ends up into a giant unlock problem.  Fix it by appropriately
  call GIANT_RESTORE() when needed.  Note that this is not exactly ideal
  because for any interation of the adaptive spinning we drop and restore
  Giant, but the overhead should be not a factor.
- In the lock held in exclusive mode case, after the adaptive spinning is
  brought to completition, we should just retry to acquire the lock
  instead to fallthrough. Fix that.
- Fix a style nit

In the sx support:
- Call GIANT_SAVE() before than looping. This saves some overhead because
  in the current code GIANT_SAVE() is called several times.

Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

14 years agoFix confusing comments about default PAT entries.
jkim [Wed, 2 Sep 2009 16:47:10 +0000 (16:47 +0000)]
Fix confusing comments about default PAT entries.

14 years ago- Work around ACPI mode transition problem for recent NVIDIA 9400M chipset
jkim [Wed, 2 Sep 2009 16:02:48 +0000 (16:02 +0000)]
- Work around ACPI mode transition problem for recent NVIDIA 9400M chipset
based Intel Macs.  Since r189055, these platforms started freezing when
ACPI is being initialized for unknown reason.  For these platforms, we just
use the old PAT layout.  Note this change is not enough to boot fully on
these platforms because of other problems but it makes debugging possible.
Note MacBook5,2 may be affected as well but it was not added here because
of lack of hardware to test.
- Initialize PAT MSR fully instead of reading and modifying it for safety.

Reported by: rpaulo, hps, Eygene Ryabinkin (rea-fbsd at codelabs dot ru)
Reviewed by: jhb

14 years agoRemove BSD.{local,x11,x11-4}.dist mtree files as they're either obsolete or
flz [Wed, 2 Sep 2009 14:56:23 +0000 (14:56 +0000)]
Remove BSD.{local,x11,x11-4}.dist mtree files as they're either obsolete or
they've moved to ports.

14 years ago- Remove BSD.{x11,x11-4}.dist as we merged prefixes a while ago and those
flz [Wed, 2 Sep 2009 14:54:47 +0000 (14:54 +0000)]
- Remove BSD.{x11,x11-4}.dist as we merged prefixes a while ago and those
files aren't used anymore.
- Remove BSD.local.dist as the file moved to ports/Templates when we merged
prefixes.

14 years ago- Bump PKG_INSTALL_VERSION to 20090902 after dougb's changes.
flz [Wed, 2 Sep 2009 13:58:15 +0000 (13:58 +0000)]
- Bump PKG_INSTALL_VERSION to 20090902 after dougb's changes.
- Change the comment to say that version must be changed when a
non-cosmetic change is made.

14 years agoImprove HDA controller capabilities logging.
mav [Wed, 2 Sep 2009 11:39:19 +0000 (11:39 +0000)]
Improve HDA controller capabilities logging.

14 years agoAdd NFSv4 ACL support to cp(1) and fix a few memory leaks.
trasz [Wed, 2 Sep 2009 08:08:57 +0000 (08:08 +0000)]
Add NFSv4 ACL support to cp(1) and fix a few memory leaks.

Note that this changes error reporting behaviour somewhat - before,
no error was reported if ACL couldn't be copied because the target
filesystem doesn't support ACLs.  Now, it will be reported - of course,
only if there actually is an ACL to copy.

Reviewed by: rwatson

14 years ago- Don't include both <sys/types.h> and <sys/param.h>
trasz [Wed, 2 Sep 2009 05:26:59 +0000 (05:26 +0000)]
- Don't include both <sys/types.h> and <sys/param.h>

- Keep variables sorted

- Fix logic error with -f and -v options - don't print
  the usual -v output if there was an error, whether or not
  we were passed -f

- Don't call free(3) just before exit(2)

- Whitespace fixes

Submitted by: bde

14 years agoUse (unsigned char) cast for ctype macro
ache [Wed, 2 Sep 2009 04:56:30 +0000 (04:56 +0000)]
Use (unsigned char) cast for ctype macro

14 years agoMove <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
ache [Wed, 2 Sep 2009 04:43:46 +0000 (04:43 +0000)]
Move <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
commit)

14 years ago1) Use isprint() instead of hardcoded values to detect non-printable.
ache [Wed, 2 Sep 2009 04:26:34 +0000 (04:26 +0000)]
1) Use isprint() instead of hardcoded values to detect non-printable.
2) Use (unsigned char) cast in waddch() calls.
It fix highlighting bug: sign extension of 8bit to the attributes area.
3) Use setlocale() in any case.

14 years agoDon't attempt to bind the current thread to the CPU an IRQ is bound to
jhb [Wed, 2 Sep 2009 00:39:59 +0000 (00:39 +0000)]
Don't attempt to bind the current thread to the CPU an IRQ is bound to
when removing an interrupt handler from an IRQ during shutdown.  During
shutdown we are already bound to CPU 0 and this was triggering a panic.

MFC after: 3 days

14 years agoFix regression introduced with NFSv4 ACL support - make acl_to_text(3)
trasz [Tue, 1 Sep 2009 18:30:17 +0000 (18:30 +0000)]
Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)
and acl_calc_mask(3) return error instead of crashing when acl passed
to them is NULL.

Submitted by: markus
Reviewed by: rwatson
MFC after: 3 days

14 years agoAdd counters for the i7 architecture which were accidentally left
gnn [Tue, 1 Sep 2009 17:55:37 +0000 (17:55 +0000)]
Add counters for the i7 architecture which were accidentally left
out of the original commit of i7 support.  These are all the counters
on pages A-32 and A-33 of the _Intel(R) 64 and IA32 Architectures
Software Developer's Manual Vol 3B_, June 2009.  Almost all
of these counters relate to operations on the L2 cache.

Reviewed by: jkoshy
MFC after: 1 month

14 years agoIn case an upper layer protocol tries to send a packet but the
bz [Tue, 1 Sep 2009 17:53:01 +0000 (17:53 +0000)]
In case an upper layer protocol tries to send a packet but the
L2 code does not have the ethernet address for the destination
within the broadcast domain in the table, we remember the
original mbuf in `la_hold' in arpresolve() and send out a
different packet with an arp request.
In case there will be more upper layer packets to send we will
free an earlier one held in `la_hold' and queue the new one.

Once we get a packet in, with which we can perfect our arp table
entry we send out the original 'on hold' packet, should there
be any.
Rather than continuing to process the packet that we received,
we returned without freeing the packet that came in, which
basically means that we leaked an mbuf for every arp request
we sent.

Rather than freeing the received packet and returning, continue
to process the incoming arp packet as well.
This should (a) improve some setups, also proxy-arp, in case it was an
incoming arp request and (b) resembles the behaviour FreeBSD had
from day 1, which alignes with RFC826 "Packet reception" (merge case).

Rename 'm0' to 'hold' to make the code more understandable as
well as diffable to earlier versions more easily.

Handle the link-layer entry 'la' lock comepletely in the block
where needed and release it as early as possible, rather than
holding it longer, down to the end of the function.

Found by: pointyhat, ns1
Bug hunting session with: erwin, simon, rwatson
Tested by: simon on cluster machines
Reviewed by: ratson, kmacy, julian
MFC after: 3 days

14 years agoAdapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.
trasz [Tue, 1 Sep 2009 15:51:36 +0000 (15:51 +0000)]
Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.

14 years agoDelete whitespace not in i386/pmap.c
adrian [Tue, 1 Sep 2009 12:17:47 +0000 (12:17 +0000)]
Delete whitespace not in i386/pmap.c

14 years agoFix mount reference leak when V_XSLEEP is specified to vn_start_write().
kib [Tue, 1 Sep 2009 12:05:39 +0000 (12:05 +0000)]
Fix mount reference leak when V_XSLEEP is specified to vn_start_write().

Submitted by: tegge

14 years agoReintroduce the r196640, after fixing the problem with my testing.
kib [Tue, 1 Sep 2009 11:41:51 +0000 (11:41 +0000)]
Reintroduce the r196640, after fixing the problem with my testing.

Remove the altkstacks, instead instantiate threads with kernel stack
allocated with the right size from the start. For the thread that has
kernel stack cached, verify that requested stack size is equial to the
actual, and reallocate the stack if sizes differ [1].

This fixes the bug introduced by r173361 that was committed several days
after r173004 and consisted of kthread_add(9) ignoring the non-default
kernel stack size.

Also, r173361 removed the caching of the kernel stacks for a non-first
thread in the process. Introduce separate kernel stack cache that keeps
some limited amount of preallocated kernel stacks to lower the latency
of thread allocation. Add vm_lowmem handler to prune the cache on
low memory condition. This way, system with reasonable amount of the
threads get lower latency of thread creation, while still not exhausting
significant portion of KVA for unused kstacks.

Submitted by: peter [1]
Discussed with: jhb, julian, peter
Reviewed by: jhb
Tested by: pho (and retested according to new test scenarious)
MFC after: 1 week