Commit Graph

195925 Commits

Author SHA1 Message Date
njoly
c196326bfe Add support for 32bit (i386) binaries on amd64. 2010-12-24 14:46:02 +00:00
mlelstv
6c899f7536 For update mounts the root vnode is already in use and we must not
free it. Since the mount persists even when the update fails,
this is not a problem either.
2010-12-24 13:38:57 +00:00
njoly
deb4c35e46 Adjust LDFLAGS handling to fix curses detection for mknative-gdb. 2010-12-24 13:12:09 +00:00
wiz
357238c98b Fix xref and pasto. 2010-12-24 13:00:24 +00:00
skrll
161a2fa924 Bump date. 2010-12-24 12:42:56 +00:00
skrll
f1d73a2c94 Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
2010-12-24 12:41:42 +00:00
aymeric
ab6dde387b Bump ramdisk size by 64K. This allows release builds to finish on macppc. 2010-12-24 10:11:39 +00:00
christos
5448347830 make this thread-safe. We could use localtime_tz and make it even better,
but not now.
2010-12-24 03:37:37 +00:00
christos
379031a404 update yacc to the most recent. 2010-12-24 02:58:20 +00:00
christos
7f6c974a73 mention new yacc. 2010-12-24 02:56:56 +00:00
christos
9cdaf1e6ed import latest byacc 2010-12-23 23:36:22 +00:00
riz
d766fd33f5 Fix speling ("deferred," not "defered") as reported in #netbsd-code on
freenode IRC.  While I'm here, clean up the wording later in the comment.
2010-12-23 21:55:40 +00:00
haad
4c90c8eeab Change way how we get device size from device. Do not use LSEEK but
DIOCGWEDGEINFO and DIOCGDINFO. This should fix problem with raidframe + lvm
reported by

Toby Karyadi on current-users@.

Thanks for reporting this issue.
2010-12-23 21:39:08 +00:00
cegger
b10a541f83 read 32bits instead of 64bits and truncate the upper 32bits 2010-12-23 21:34:02 +00:00
cegger
cc6856437c build fix: add missing initializers 2010-12-23 21:11:37 +00:00
njoly
1adf1b7dc0 Fix sub-section reference. 2010-12-23 20:11:00 +00:00
christos
789f5516b0 Now that we have allowed operator to access the control node, make sure
that he cannot cause damage, by only allowing the superuser to do ioctls
that can cause damage.
2010-12-23 20:07:13 +00:00
njoly
a4f700b747 Remove double-quotes from .Sx macros. 2010-12-23 19:15:55 +00:00
mlelstv
e5275d16e0 Deduce raw device correctly by prepending "r" to basename. 2010-12-23 18:08:41 +00:00
christos
0318099292 PR/44267: Michael van Elst: LVM devices have wrong permissions
- Centralize CPPFLAGS for DM_DEVICE_{UID,GID,MODE}
- Make DM_DEVICE_GID operator DM_DEVICE_MODE 0640 to be more NetBSD like
- make all the code use DM_DEVICE_MODE instead of hard-coding.
- make sure that all mknod calls are followed by a chown call.
2010-12-23 17:46:54 +00:00
christos
3e6a896a34 false needs stdbool.h 2010-12-23 17:44:33 +00:00
njoly
7cb979f2f2 Remove double-quotes from .Sx macro. 2010-12-23 16:16:27 +00:00
pgoyette
73ed959de1 Remove a couple tests - they've moved to atf 2010-12-23 15:32:03 +00:00
pgoyette
546ea3ce2c Migrate a couple more tests to aft 2010-12-23 15:27:44 +00:00
mlelstv
75268cff3f make dm aware of physical sector sizes.
For aggregates of multiple disks we use the largest sector size from
all disks. For standard power-of-2 sizes this is the same as the least
common multiple. We still require proper alignment of the targets in
the mapping table.

ok by haad@
2010-12-23 14:58:13 +00:00
mlelstv
07d2f05926 Get sector size from device properties using DIOCGDISKINFO and
use the disklabel (DIOCGDINFO) only as a fallback. This works
with wedges.
2010-12-23 14:46:25 +00:00
mlelstv
5eee906941 mount(2) doesn't remove vnodes from the freelist in the error path,
so that they get reused with a invalid pointer to a mount structure.

As a workaround, free the vnodes used to create the in-filesystem journal
immediately.
2010-12-23 14:43:37 +00:00
hauke
34b397c5e6 First release that shipped wdogctl(8) was 1.6, not 1.5.1. 2010-12-23 14:29:52 +00:00
mlelstv
9c7e989427 Make wedges aware of underlying physical block size. 2010-12-23 14:22:03 +00:00
pgoyette
bf59258ffb Fix the $NetBSD$ tag (missed the trailing $) 2010-12-23 13:34:46 +00:00
pgoyette
5fb1be5c8e Remove these tests from regress - they've been converted to atf 2010-12-22 23:48:19 +00:00
pgoyette
95456adcc6 Migrate a couple more tests from the old regress structure to atf 2010-12-22 23:45:44 +00:00
christos
736ce759b3 use pthread__stacksize since size has not been initialized yet. 2010-12-22 22:41:45 +00:00
jruoho
82e1351b37 Regen. 2010-12-22 22:29:19 +00:00
jruoho
e3cfc8ab23 Add IPI0001, an identifier for ipmi(4). From Dell M710. 2010-12-22 22:28:35 +00:00
christos
5cea6e6df8 only mprotect base if we moved it. 2010-12-22 22:19:46 +00:00
njoly
1fb70a6a63 __HAVE_CPU_INFO_FIRST -> __HAVE_CPU_DATA_FIRST. 2010-12-22 22:08:47 +00:00
wiz
c85eb92955 Fix Fn arguments. 2010-12-22 22:02:54 +00:00
jakllsch
bbedde89be It just so happens we don't need -Wno-attributes if we
place __packed in the right place.
2010-12-22 20:46:42 +00:00
jruoho
1a2cca3c4c Fix URL of the paper. 2010-12-22 20:17:50 +00:00
jruoho
5b557140cd Use __constfunc(3) instead of __attribute__((const)) directly. 2010-12-22 19:47:56 +00:00
jruoho
c33b9df9f8 Use __dead instead of __attribute__((__noreturn__)) directly. 2010-12-22 19:43:33 +00:00
jruoho
b7b8493a00 Document the __builtin_prefetch() GNU extension. 2010-12-22 19:35:41 +00:00
wiz
207ab8d006 Add punctuation. 2010-12-22 17:06:03 +00:00
christos
2e960c795a add vsnprintf_ss 2010-12-22 17:00:54 +00:00
christos
92a95e7ba4 document vsnprintf_ss 2010-12-22 16:59:10 +00:00
reinoud
766116b74d Fix nestio's behavior on error.
The mbp->b_resid is used to track if all the nested buffers have been issued
and reported back. When the last buffer calls in, mbp->b_resid becomes zero
and biodone(mbp) is called. This is fine as long as there are no errors.

If a read-error does occure in one of the nested buffers, the mbp->b_error is
set and on its call to biodone(mbp), with mbp->b_resid is zero, physio()
panics since it asserts that IF an error is set on a buffer, there should be a
residual amount of data left to transfered.

The patch fixes this case by setting mbp->b_resid back to mbp->b_bcount on
mbp->b_error just before biodone(mbp).

This behaviour is consistent with normal buffer issueing. It either succeeds
or doesn't succeed.
2010-12-22 14:05:50 +00:00
reinoud
0b639144a8 Running with DEBUG again revealed locking errors previously undetected. The
VAT writeout was done locked while marked locked as were the readin and
writeout of the metadata partition space table.

While here, also protect the (vp) argument of the UDF_SET_SYSTEMFILE() macro.

Tested on UDF 1.50 sequential, UDF 2.01 RW and UDF 2.50 metadata RW meda.
2010-12-22 12:38:42 +00:00
reinoud
3e8c574583 Growing the metadata partition is not yet implemented. Be so kind to report
this as unimplemented when the debug flag asks for it!
2010-12-22 12:15:02 +00:00
enami
a46391d703 Add iseek and oseek option as aliases for skip and seek respectively.
These options exist in dd of solaris or svr3.  From FreeBSD.
2010-12-22 09:42:53 +00:00