Commit Graph

200337 Commits

Author SHA1 Message Date
yamt
61e76cd651 ip6_undefer_csum:
- don't forget ntohs
- KNF
2011-04-25 22:07:57 +00:00
yamt
e86be17a4f fix assertions 2011-04-25 22:04:32 +00:00
christos
def46fd94a fix pasto (of no consequence) 2011-04-25 22:03:20 +00:00
christos
4a04b195ef - make log_krb5 varyadic and merge the last error message.
- check for NULL context.
- print a more meaningful error when things go south
2011-04-25 22:01:04 +00:00
njoly
53714e0d34 In nice_err testcase, use ATF_REQUIRE_ERRNO. 2011-04-25 20:55:06 +00:00
njoly
5845e99692 Switch from atf_tc_fail to atf_tc_fail_nonfatal to report all missing
defines, not only the first one.
2011-04-25 20:51:14 +00:00
phx
40f940eba7 Add VIA VT6410 vendor/product IDs (StorCenter). 2011-04-25 18:30:18 +00:00
phx
53cc08bb65 Also scan for PCI_CLASS_RAID, when looking for disk devices. 2011-04-25 18:29:33 +00:00
phx
3525c1ef51 Detect StorCenter before QNAP, otherwise the Realtek NIC will mis-detect as
StorCenter boards as QNAP.
2011-04-25 18:28:47 +00:00
jym
21dd288af2 Check status before proceeding further. Avoids spurious watch calls. 2011-04-25 17:01:54 +00:00
hannken
a9ad02bf75 Don't kill outstanding requests when detaching a scsibus on shutdown.
Both the controller and tyhe targets are still running.
2011-04-25 14:14:22 +00:00
martin
7a1f019e2d Add missing <sys/atomic.h> include. 2011-04-25 11:39:42 +00:00
martin
0210de65a6 Use rsd0c instead of the (far less common) rwd0c as boot disk in the
sparc64 example.
2011-04-25 07:04:50 +00:00
jruoho
cc54315739 Add a missing case value in a switch statement. 2011-04-25 05:30:21 +00:00
manu
c3c545a544 - Implement proper unprivilegied user permission verifications
Verification is now done in the lookup method, as it is the way to
go. Of course there are corner cases, such as the sticky bit which
need special handling in the remove method.

- Set full fsidx in vftstat method

- Do not pass O_APPEND to the filesystem. FUSE always sends the
write offset, so setting O_APPEND is useless. If the filesystem
uses it in an open(2) system call, it will even cause file
corruptions, since offsets given to pwrite(2) will be ignored.
This fix allows glusterfs to host a NetBSD ./build.sh -o build

- Do not use the FUSE access method, use getattr and check for
permission on our own. The problem is that a FUSE filesystem will
typically use the Linux-specific setfsuid() to perform access
control. If that is missing, any chack is likely to occur on
behalf of the user running the filesystem (typically root), causing
access method to return wrong information.

- When possible, avoid performing a getattr method call and use
cached value in puffs_node instead. We still retreive the latest
value by calling getattr when performing append write operation,
to minimize the chances that another writer appended since the
last time we did.

- Update puffs_node cached file size in write method

- Remove unused argument to perfuse_destroy_pn()
2011-04-25 04:54:53 +00:00
manu
33c1bbe9da - fix warnings
- try to handle ENOBUFS in a nicer way
- use errx() for usage message, not err(), as we do not waht strerror(errno)
2011-04-25 04:30:59 +00:00
jym
6a2ec1520e use __KERNEL_RCSID() 2011-04-25 00:22:37 +00:00
jym
ee59eafa3f Check that xvif(4) is not already connected before proceeding in the
XenbusStateConnected mode. Under rare occasions, the xenbus watcher
can fire multiple times, overwriting the I/O ring memory mappings with
invalid values. This will lead sooner or later to dom0 panic().

Will ask for pullup. FWIW, xbdback(4) is not affected.
2011-04-25 00:14:06 +00:00
jym
f5481a4681 Separate xennet(4) backend initialization code ("resume") from the part
that talks with Xenstore to query backend's information. Resuming is now
performed just after xennet(4) attachment instead of waiting for backend
to announce its features in Xenstore and change it state.

This fixes the race observed by Urban Boquist when the domU boots with
root on NFS.

FWIW, the boot code (when root is NFS-backed) can innit() the xennet(4)
interface very early: it tried to access ifnet structures that were not
yet allocated.

Will ask for a pullup. Thanks to Urban for reporting the issue and
investigate it. Confirmed fixed. No regression observed by me for
dynamic attach/detach of xvif(4) and xennet(4) interfaces.

See also http://mail-index.netbsd.org/port-xen/2011/04/18/msg006647.html
2011-04-25 00:00:50 +00:00
elric
bf89f75cd0 Remove the definition of various X_DEPRECATED as userland has been fixed
to stop using functions defined as deprecated by Heimdal.
2011-04-24 22:24:14 +00:00
rmind
5cfbc4e638 Bump to 5.99.50 for recent changes. 2011-04-24 21:50:34 +00:00
elric
07b0c75a48 We no longer need -I/usr/include/krb5. 2011-04-24 21:42:06 +00:00
rmind
800683e30d sys_link: prevent hard links on directories (cross-mount operations are
already prevented).  File systems are no longer responsible to check this.
Clean up and add asserts (note that dvp == vp cannot happen in vop_link).

OK dholland@
2011-04-24 21:35:29 +00:00
elric
5e6c3b7a0c #include <com_err.h> -> #include <krb5/com_err.h>. 2011-04-24 21:18:24 +00:00
elric
89208b4ceb Stop using functions deprecated by Heimdal. Also, if krb5_init_context()
fails, we can't use Kerberos functions to grab error strings, we
resort to strerror(3) which is what Heimdal's deprecated function
does in this case.
2011-04-24 21:16:43 +00:00
rmind
507c30fb60 Drop extern inline for fd_getfile(). Apparently, GCC already ignores it. 2011-04-24 20:30:38 +00:00
rmind
603e520a84 - Move some checks into mqueue_get() and avoid some duplication.
- Simplify message queue descriptor unlinking and closure operations.
- Update proc_t::p_mqueue_cnt atomically.  Inherit it on fork().
- Use separate allocation for the name of message queue.
2011-04-24 20:17:53 +00:00
elric
8d159f43a8 We no longer need to -I/usr/include/krb5. 2011-04-24 19:00:56 +00:00
elric
6daa88e0a9 Stop using functions that are deprecated in Heimdal. 2011-04-24 19:00:31 +00:00
plunky
b0b433c20f use static inline for ec_readmem(), it is not referenced elsewhere
(avoids C99 vs GNU semantics for external inline functions)
2011-04-24 18:54:41 +00:00
elric
0fce8776fa Stop using functions that are marked as deprecated in Heimdal. 2011-04-24 18:53:55 +00:00
plunky
20a9540ac8 use static inline for msk_rxvalid(), it is not referenced elsewhere
(avoids C99 vs GNU semantics for external inline functions)
2011-04-24 18:53:02 +00:00
rmind
177a8696c7 Inclusion for malloc decls (missed in previous commit). 2011-04-24 18:52:26 +00:00
elric
a9c7955034 Remove use of functions marked as deprecated in Heimdal. 2011-04-24 18:48:04 +00:00
rmind
bd5b92d68b - Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.
2011-04-24 18:46:22 +00:00
rmind
2626d57668 Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
elric
d4c49b6d11 Stop using -I/usr/include/gssapi and -I/usr/include/krb5. We must in this
case find kafs.h as krb5/kafs.h.
2011-04-24 14:09:39 +00:00
elric
25a58ef3ee Stop using functions that are marked as deprecated in Heimdal. 2011-04-24 14:01:46 +00:00
tron
8a13bd182a Don't define "fenv_t" and "fexcept_t" for NetBSD/sparc64 because the
definitions clash with "/usr/include/sparc64/fenv.h".

This fixes the build of e.g. "pkgsrc/databases/mysql51-client" under
NetBSD/sparc64 current.
2011-04-24 11:32:36 +00:00
jmmv
9ef6767558 List myself as a contributor. 2011-04-24 07:18:59 +00:00
jmmv
94a4f45f78 Remove the "This option..." sentence prefix for all option definitions.
Adjust some sentences so that the new text makes sense.  OK mrg@.
2011-04-24 07:17:02 +00:00
rmind
520d1ecfd3 Initialize UVM loaning subsystem a bit later, after kmem(9).
Makes UVMHIST work again.
2011-04-24 03:56:50 +00:00
christos
322a9e7966 fix freudian slip 2011-04-24 01:56:44 +00:00
mrg
d9a6814d47 move the iodone setup and tear down into rf_engine.c. this fixes
"raidctl -u" and should also help the case where we fail to setup
a device part of the way through.
2011-04-23 22:22:46 +00:00
rmind
6a7d2e04ad - Sprinkle __cacheline_aligned and __read_mostly in file descriptor code.
- While here, remove trailing whitespaces, KNF.
2011-04-23 18:57:27 +00:00
rmind
c22a36981f Replace "malloc" in comments, remove unnecessary header inclusions. 2011-04-23 18:14:12 +00:00
tron
581f9c7a22 Add and entry for the Intel i82545GM with external PHY which works fine:
wm0 at pci1 dev 1 function 0: Intel i82545GM 1000BASE-T Ethernet, rev. 4
wm0: interrupting at ivec 0
wm0: 64-bit 66MHz PCI bus
wm0: 256 word (8 address bits) MicroWire EEPROM
wm0: Ethernet address 00:04:23:xx:xx:xx
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
2011-04-23 16:46:51 +00:00
joerg
c5f8d1393d Fix a Freudian slip found by rmind 2011-04-23 16:40:08 +00:00
rjs
bb870dae98 Add cache module to the build.
Fixes PR/42809.
2011-04-23 15:26:05 +00:00
hannken
7c9d6febb5 ffs_snapshot(): return an error if the node is an invalid snapshot. 2011-04-23 08:23:52 +00:00