Commit Graph

164822 Commits

Author SHA1 Message Date
pooka a8e13cb420 Add generic getattr routine. 2007-12-19 14:01:16 +00:00
dogcow 3a04c46a48 Your friendly neighborhood 64-bit architecture here to remind you that
strlen returns size_t, and printf's precision specifier uses int.
2007-12-19 05:48:33 +00:00
riz 0673bc57e4 Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
2007-12-18 23:22:18 +00:00
riz 0fac2edb7f Fix the usage strings for each command, and print them all for the
"global" usage.  It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
agc daa7a94cfb When defining extents, the new keyword "size" can be used in the place
of the physical size of the regular file. This is useful for presenting
ISO images to initiators, as in the following:

	In /etc/iscsi/targets:
	# present an ISO image
	extent2         /usr/sets/20071214/release/iso/i386cd.iso 0 size
	target2         ro      extent2         any

	% priv /etc/rc.d/iscsi_target restart
	Stopping iscsi_target.
	Starting iscsi_target.
	Reading configuration from `/etc/iscsi/targets'
	target0:rw:any
		extent0:/tmp/iscsi-target0:0:104857600
	target1:rw:any
		extent1:/tmp/iscsi-target1:0:52428800
	target2:ro:any
		extent2:/usr/sets/20071214/release/iso/i386cd.iso:0:354906112
	DISK: 1 logical unit (204800 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 100 MB disk storage for "target0"
	DISK: 1 logical unit (102400 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 50 MB disk storage for "target1"
	DISK: 1 logical unit (693176 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 338 MB readonly disk storage for "target2"
	TARGET: TargetName is iqn.1994-04.org.netbsd.iscsi-target
	%

Please note that the NetBSD initiator can mount (via vnd) an iSCSI target
presented in this manner. The Microsoft iSCSI initiator sees the read-only
target as a normal SCSI disk, and fails (not surprisingly) to initialize
the disk. It's now possible to make ISO images available via iSCSI, and
NetBSD will DTRT.

In read-only targets, don't attempt to seek to the last block and rewrite
it, it may not work.

Don't assign 8 MB of unused space for use in each iSCSI disk - just use
1MB, which will be enough for the scatter gather iovecs.

Get rid of some dead code.
2007-12-18 20:31:50 +00:00
garbled 4849f95d59 First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
2007-12-18 18:26:36 +00:00
garbled 67049908f4 Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
2007-12-18 18:19:07 +00:00
joerg 0adaef6553 Restore suspend handler. Put the disc into standby on suspend and for
powerdown, but not for normal halt or reboot or panic. Fixes PR 37508.
2007-12-18 15:30:40 +00:00
agc f327aec7bc Update portable version of the iSCSI software to 20071218, to
include various minor build fixes.
2007-12-18 11:19:06 +00:00
martin 3abe4cb17d Remove *64 versions identical to their 32 bit version and aliased differently
now.
2007-12-18 11:05:53 +00:00
dogcow 779352d8d0 hello to libssh.so.7. 2007-12-18 09:17:21 +00:00
dogcow d642d06d3d fixes for alpha: %ld -> %zd, signals are long. 2007-12-18 09:00:30 +00:00
dogcow 7a14aed5b2 more __dead fallout: these two files are built for the native host, not
for the target host - and thus do not necessarily have __dead defined in
<sys/cdefs.h>.
2007-12-18 08:45:03 +00:00
dogcow ceafeaa9bc Eliminate "endian_convert defined but not used" on big-endian platforms;
instead of using the "generic" functions for byteswapping in this file,
use le32toh() and friends.
2007-12-18 08:32:21 +00:00
joerg 8a23ca4c5f Distribute blame for ACPI even further. 2007-12-18 07:37:57 +00:00
dogcow 881509a404 The blunt instrument approach to dealing with optional compiler sugar:
arbitrarily use the formerly-unused variable. Everybody's happy.
2007-12-18 07:33:54 +00:00
dogcow 90ee124aaf This should have been all on one line anyway - and hey, it fixes my build
issue.
2007-12-18 07:25:00 +00:00
dogcow 4750a01617 on NetBSD, use %zu for sizeof() 2007-12-18 07:22:32 +00:00
joerg 870cffb0ab Add new IPI for saving CPU state explicitly, share high-level part of
ACPI wakeup code and teach it how to start the APs again. As a side
effect the CPU_START interface allows choosing between different
bootstrap codes more easily now.
2007-12-18 07:17:08 +00:00
garbled 49a3869ae1 Import the config documentation from FreeBSD into the smm. Rather than
name the directory "02.config" as it historically was, name it config, so
that if we ever want to update this book for the modern age, we can move
chapters around, delete them, etc, without mass confusion.
2007-12-18 03:35:51 +00:00
christos 512c2e7e60 merge conflicts 2007-12-18 02:35:25 +00:00
christos cd7947efb0 update to 4.7 2007-12-18 02:34:32 +00:00
christos 6e9e025b28 update for 4.7 2007-12-18 02:33:37 +00:00
christos 68066588aa bump for 4.7 2007-12-18 02:32:36 +00:00
oster 257eb7f26a Fix a 'use after free' issue with wedges and RAIDframe.
Problem reported and fix tested by Jeff Rizzo (Thanks!).
2007-12-18 01:09:46 +00:00
wiz ece8110f42 Fix typo. 2007-12-17 23:59:41 +00:00
apb 88718b259c Change O_NDELAY to the POSIX standard O_NONBLOCK. This should fix
a compile error when building as a host tool.
2007-12-17 23:04:37 +00:00
christos 08face766e Fix a (very old) file leak. From Anon Ymous 2007-12-17 22:06:00 +00:00
dsl 5c3e6d0c07 Regen for 'const' killing. 2007-12-17 22:05:41 +00:00
dsl 06bce1608a Remove all the 'const', they end up applying to the structure members
themselves, not where the 32bit pointers reference.
2007-12-17 22:04:32 +00:00
phx 86c26b70d7 xen did no longer build.
Temporarily reverted to 1.47. Will need some time to find a good solution.
2007-12-17 22:01:12 +00:00
dsl 4f69eadcae svr4_32_sys_creat64() and svr4_32_sys_creat() are equivalent, as are
open64 and open, so just have one set of entry points.
2007-12-17 21:58:34 +00:00
dsl 36fb6d9db7 Revert previous. 2007-12-17 21:48:23 +00:00
dsl a098759aae creat64 and open64 just called the creat/open function.
Change to do it here.
2007-12-17 21:39:17 +00:00
dsl 686e359d32 Regen without any 'const' members of the syscall argument structures. 2007-12-17 20:47:31 +00:00
dsl bf434e38c7 Remove all the 'const'. Although the fields might be 32bit pointers to
constant data, the 'const' applies to the field itself - which is stupid.
2007-12-17 20:45:29 +00:00
christos 848569aa46 from ftp.openbsd.org 2007-12-17 20:15:38 +00:00
garbled d8e4680b19 Fix a mistake in boot.c Forgot to remove reference to residual.h and add
reference to iplcb.h
2007-12-17 19:54:32 +00:00
christos 6d8587f061 from jmcneill: suspend and resume handlers for spic. 2007-12-17 19:51:09 +00:00
garbled 8797c0442b Add rs6000 to this file so it can be easily cross-built. 2007-12-17 19:23:44 +00:00
garbled d1d2109e89 Add some files that got missed in the initial import of port-rs6000. 2007-12-17 19:11:58 +00:00
garbled 68fe5b6f0a Import the rs6000 port into the tree.
This port of NetBSD is intended to run on MCA-based IBM RS/6000
machines.  The port so far has only been tested on a 7006-41T, which is a
601-based RS/6000.  The port also contains a limited set of code for the
7012-3XX machines, but support for those is a long way off still.

The port builds and generates a working kernel, however, it still lacks
bus_dma code for the MCA bus, so at present, only the com ports work,
though any other device (such as the printer/keyboard) located on the
ioplanar could probably be made to work.  Work will continue on this port
as I iron out the DMA code.

This port was made possible by a generous gonation of hardware by Kevin
Bowling, who also provided much of the documentation for the port.
2007-12-17 19:09:01 +00:00
apb 68039cfd90 This is a host tool; include nbtool_config.h 2007-12-17 18:18:21 +00:00
njoly c7d62a5250 Fix linux32_sys_wait4 by doing its own jobw instead off calling
linux_sys_wait4. It worked except when child resources were requested,
because 32/64 bits struct rusage differs in size ...

While here, update linux32_sys_waitpid to use linux32_sys_wait4 with a
NULL rusage.
2007-12-17 18:10:37 +00:00
rumble a2d448e894 s/prop_array_t;/prop_array_t array;/ 2007-12-17 17:52:37 +00:00
riz 344b2782f7 Add drvctl(4) 2007-12-17 16:45:12 +00:00
yamt a5f2bdb11c nfs_create: try GUARDED if EXCLUSIVE is NOTSUPP. 2007-12-17 16:04:31 +00:00
macallan 852515ae5f deal with a bug in the Sun Raptor's firmware which reports
linebytes == width even in 32bit colour
2007-12-17 15:38:31 +00:00
jmcneill dd0320ef8b Fix comment before AcpiOsGetTimer, no functional change. 2007-12-17 15:02:31 +00:00
joerg c33da35bfe Belatedly add a note about acpiec changes from the jmcneill-pm merge. 2007-12-17 14:38:40 +00:00