Commit Graph

198297 Commits

Author SHA1 Message Date
pooka
97c20c765b Disable string aliasing for rump_syscalls.c. I can't figure out
how to otherwise make the kernel's register_t coreography to work
with the return value here in a MI fashion.
2011-02-22 14:02:54 +00:00
pooka
6ac867388f One more lseek test case: in case of an error, check rv == -1
(so that it's not e.g UINT_MAX).
2011-02-22 13:25:18 +00:00
sborrill
75f0848d7d Note limitations of CHAP implementation in BUGS section. 2011-02-22 13:17:20 +00:00
sborrill
cbedc267b9 Skip target if TargetName is empty.
Use relevant TargetAddress, not just first one we happen to find.

Following improvement based on feedback from Daisuke Aoyama (author of istgt):
Handle NOP-OUT CmdSN and immediate bit.
Handle NOP-IN TransferTag=0xffffffff.
Interim solution for dealing with Underflow bit in iSCSI response.

iscsi-initiator now talks to istgt and other targets.

Remaining issues:
CHAP support will not work with most targets (maximum 16 octet challenge is
used, but other initiators use up to 1024). However, CHAP can now be
bypassed by not specifying a username.
2011-02-22 13:10:55 +00:00
pooka
65fa004526 unregen 2011-02-22 13:05:07 +00:00
sborrill
f7bc64b9db Retry read capacity. Device may not be ready on first access, so need to
wait and re-issue. From Daisuke Aoyama (author of istgt).
2011-02-22 13:04:31 +00:00
pooka
55a5122e61 revert previous fix. it's not 100% correct and some compilers setups
complain about the generated code.

pointed out by mrg
2011-02-22 13:04:22 +00:00
sborrill
c3d1c80eb5 Release 20110222 2011-02-22 13:00:05 +00:00
sborrill
83d439db6d Skip .orig files 2011-02-22 12:56:50 +00:00
pooka
e1a5f6e913 +tp 2011-02-22 10:37:05 +00:00
pooka
9107903fbe test lseek return value (off_t, might be >register_t) 2011-02-22 10:36:13 +00:00
sborrill
a96e357c94 Document -D option (discover LUNs).
iscsi-initiator was NOT in NetBSD 5.0.
2011-02-22 10:34:12 +00:00
pooka
6578cf43da regen: cast rval to return type instead of just using rval[0] 2011-02-22 10:34:06 +00:00
pooka
c13b689c0c Use the whole contents of rval instead of just rval[0] for rump
syscall return.  Fixes at least lseek() on various architectures
in various ways.
2011-02-22 10:33:12 +00:00
jruoho
9e252589bd Always declare HALT as available. If ACPI_FADT_C1_SUPPORTED is not
set in the FADT, print a warning, as it is obviously a BIOS bug.
2011-02-22 09:39:48 +00:00
jruoho
9a2a620992 Only check if the register address in _CST is valid if the ACPI processor
object address is valid. Some systems define the Processor() as:

    Scope (_PR)
    {
        Processor (C000, 0x00, 0x00000410, 0x06) {}
        Processor (C001, 0x01, 0x00000000, 0x00) {}
        Processor (C002, 0x02, 0x00000000, 0x00) {}
        Processor (C003, 0x03, 0x00000000, 0x00) {}
    }

This may be typical to AMD systems that do not seem to use _CST, but instead
operate with HLT (and C1E for the C3-state). The same check is already done
in acpicpu_cstate_fadt(). Note that it is unclear whether this violates the
specification, given:

   "PBlockAddress provides the system I/O address for the processors
    register block. Each processor can supply a different such address.
    PBlockLength is the length of the processor register block, in bytes and
    is either 0 (for no P_BLK) or 6.  With one exception, all processors are
    required to have the same PBlockLength.  The exception is that the boot
    processor can have a non-zero PBlockLength when all other processors
    have a zero PBlockLength.  It is valid for every processor to have a
    PBlockLength of 0. (ACPI 4.0, p. 626)"
2011-02-22 09:34:13 +00:00
matt
701ad55990 Bring emips forward to the new mips world order. 2011-02-22 08:20:20 +00:00
matt
dc14655f8b Always include mipsX_tlb_write_indexed. 2011-02-22 08:19:47 +00:00
matt
034b39c05a Always have a stub for tlb_write_indexed 2011-02-22 08:18:47 +00:00
dholland
3ff6047f09 Fix build in admittedly quixotic case with IPMI but no PCI or ACPI.
(ACPI currently doesn't work without PCI, fwiw.)
2011-02-22 07:12:29 +00:00
dholland
3c12470d4e Include <sys/device.h> for config_rootfound, instead of relying on it
being included by accident. From Jarle Greipsland in PR 43449.
2011-02-22 06:37:24 +00:00
dholland
2de03e887d vga_posth should be inside NPCI > 0; from Jarle Greipsland in PR 43449. 2011-02-22 06:33:33 +00:00
joerg
9674b81ed9 Introduce __weakref_visible to handle the different required visibility
for weak references. GCC 4.2+ and Clang require static, older GCC wants
extern. Change __weak_reference to include sym. This requires changes
the existing users to not reuse the name of the symbol, but avoids
further differences between GCC 4.1 and GCC 4.2+/clang.
2011-02-22 05:45:05 +00:00
joerg
df0fd6c84e Be explicit about the member of the fld family wanted here. 2011-02-22 05:07:36 +00:00
christos
865c394946 fix typos in saslc entry. 2011-02-22 02:44:58 +00:00
jmcneill
e6a9aa35b1 genfb_enable/disable_polling only matters if genfb is the console screen,
so make it a noop if it's not
2011-02-22 01:26:14 +00:00
jmcneill
60ff45242c make ural_ioctl look like other wireless drivers, should make dhcpcd and
mdnsd work again
2011-02-22 01:11:30 +00:00
jmcneill
9f8d6eb8fa make rum_ioctl look like other wireless drivers, now dhcpcd works and
mdnsd doesn't hang my laptop
2011-02-22 00:58:08 +00:00
jmcneill
8793159934 sync driver with openbsd 2011-02-21 23:50:42 +00:00
jmcneill
bab42b3956 add ieee80211_get_rts and ieee80211_get_cts_to_self from openbsd, ok dyoung@ 2011-02-21 23:50:08 +00:00
pooka
686a05ebe4 regen: NOERR syscalls 2011-02-21 23:31:00 +00:00
pooka
f7f707facb S'no way bro!
Return the correct return value from NOERR, which is retval
instead of error.
2011-02-21 23:30:12 +00:00
pooka
0aac2843ad Add syscall type NOERR which signals that a system call is STD but
does not return an errno the usual way.  The main use case is to
fix the posix_fadvise() rump stub (yes, posix_fadvise is a bit
special... bologna).

The list of NOERR syscalls currently matches the libc NOERR list
(and the libc Makefile can in the future be autogenerated from this
info).

Problem spotted by, *shocker*, the automated test runs, specifically
the posix_fadvise test.
2011-02-21 23:20:19 +00:00
drochner
4b552d0b1b adopt a fix from OpenBSD: when scanning the IPv6 header chain, take
into account that the extension header type is not in the extension
header itself but in the previous one -- this makes a difference
because (a) the length field is different for AH than for all others
and (b) the offset of the "next type" field isn't the same in primary
and extension headers.
(I didn't manage to trigger the bug in my tests, no extension headers
besides AH made it to that point. Didn't try hard enough -- the fix
is still valid.)
2011-02-21 22:54:45 +00:00
drochner
bc5ee3cb6d treat "struct secpolicyindex" and "struct secasindex" as "const" once
they are initialized -- during lifetime, no changes are expected
plus some constification of input to comparision functions etc
mostly required by the former
2011-02-21 22:28:18 +00:00
christos
d9b460fc9a belated mention for libsaslc. 2011-02-21 22:26:10 +00:00
drochner
7a1d44a2ce declare input to kdebug_*() functions which dump structures
to stdout in human readable form as "const"
2011-02-21 22:21:40 +00:00
christos
10e6f9749d remove duplicate weak aliases 2011-02-21 22:07:44 +00:00
riz
9613b94f2f mutex2/mutex3 are expected to fail on powerpc because of
PR port-powerpc/44387.

XXX the ugly sleep at the end is because ATF will mark an un-triggered
race condition (ie, the test passes unexpectedly) as a test failure otherwise.
2011-02-21 21:43:41 +00:00
pooka
e820d9fe44 Borrow the lwpctl data area from the parent for the vfork() child.
Otherwise the child will incorrectly see it is not running on any
CPU.  Among other things, this fixes crashes from having
LD_PRELOAD=libpthread.so set in the env.

reviewed by tech-kern
2011-02-21 20:23:28 +00:00
pooka
a63f48d68d If minfd for F_DUPFD is >= hijackoff, assume it means a minimum
value in the rump kernel and adjust accordingly.
2011-02-21 20:11:56 +00:00
pooka
29d11b7713 add command line options for kernel memory allocation limit and bootverbose 2011-02-21 18:50:21 +00:00
njoly
48553d3a03 Typo in macro. 2011-02-21 18:12:26 +00:00
sborrill
ff607cd15b man page claims that you can use auth type = none, but in reality this
didn't work (insisted on a username being given and then used, plus always
advertised CHAP to the target). Make initiator work as advertised (i.e.
defaults to auth type none and so don't require a username).

To use CHAP you should explicitly request CHAP:
iscsi-initiator -a chap -u user -h targetname /mountpoint

For backwards compatibility, if a username is given (-u) and no auth type
is specified (-a), it will default to CHAP, i.e. to use none, just give no
username:
iscsi-initiator -h targetname /mountpoint
2011-02-21 17:48:43 +00:00
sborrill
4fd58d7036 Remove hostname from pathname to storage in mount point.
This means /mnt/mytarget.domain.local/target0/storage is now
/mnt/target0/storage.

Rationale is as follows:
- The hostname used may vary (i.e. name vs FQDN vs IP) which can mess up
  mountpoints (especially across multiple hosts e.g. in a shared xen pool)
- Target name is given in the mount anyway so it is redundant

OK agc@
2011-02-21 17:24:19 +00:00
njoly
eeec3853c8 Small typo in macro (Ii -> It). 2011-02-21 17:05:50 +00:00
pooka
16122d6c6c Put coredumps back as a built-in. Until it can autoload or something,
there's no point in causing user-visible (and test-visible)
regressions.
2011-02-21 16:24:29 +00:00
jruoho
e2c550b000 Call pmf_device_deregister(9) during detach. 2011-02-21 15:10:54 +00:00
jmcneill
aa8968aa00 print the device name at attach, like so:
ath0 at pci4 dev 0 function 0: Atheros 9280
2011-02-21 14:43:58 +00:00
njoly
236d2fbff6 Fix section for umask xrefs. 2011-02-21 13:42:57 +00:00