Commit Graph

1819 Commits

Author SHA1 Message Date
haad
912a040b47 Allow operator to use lvm in read-only mode. Switch LVM lock dir to
/var/run/lvm and create it in rc.d/mountcritlocal. Fix dm control device
permissions to allow rw for operator.

Test if we are running lvm commands as operator and if that it's true do not
create vg backups and do not print confusing warning.
2011-01-05 14:57:27 +00:00
jmmv
1b0a12b414 Cherry-pick upstream revision f791048924a1b68da070f17dfd5e5c2d825dd018:
Report bogus test programs in the HTML output

From Paul Goyette in private mail.  Fixes PR bin/44301.
2011-01-05 14:03:08 +00:00
roy
160a96b3e7 Don't build the getline shim anymore as the NetBSD libc getline(3) has
proven itself now.
2011-01-03 11:33:44 +00:00
roy
0524c4d0bb Import dhcpcd-5.2.10 with the following change:
* -r, --request <address> now works again
2011-01-03 11:28:23 +00:00
wiz
7487051d3d Prefix section headers for 1 to 9 with "NetBSD " to match output
for non-HTML pages (i.e. groff ones). Noted by njoly.
2011-01-02 22:03:24 +00:00
mrg
cf66e37cc9 fix a comment 2011-01-02 11:24:20 +00:00
dholland
42bae07fce Remove references to SAVESTART in zfs. 2011-01-02 05:12:03 +00:00
pgoyette
a12cad24be Fix typo - let the build proceed 2010-12-30 00:46:38 +00:00
haad
d52c66bf4a Fix my yesterday fix and finally make _get_dev_size recognise partition size
for device without DIOWEDGEINFO, where DIOCGDINFO is used. Patch tested by
Martin Mersberger.
2010-12-29 23:14:21 +00:00
christos
4817a0b0b8 real override for yacc rules. 2010-12-29 19:53:32 +00:00
haad
d26a38d370 Fix problem where chown was used on normal device in time when only
raw device was created. While here do some cleanup.

Problem find and reported by Martin Mersberger on current-users@.
2010-12-29 10:39:27 +00:00
haad
ca7dbf8cb5 Fix bug added by my last commit. This should fix
PR: bin/44286

Reported by: mlelstv@ and Martin Mersberger.
2010-12-29 00:14:04 +00:00
haad
bec5c61e50 Define vn_getattr in zfs_context.h. 2010-12-28 16:44:45 +00:00
haad
bca088ab45 Fix problem where vnode vp_size was not updated when vndoe was already allocated,
for vdev. This makes ztest survive ztest_vdev_LUN_growth test. Replace dummy
VOP_GETATTR with vn_getattr routine which reset vp_size and vattr_size accordingly
to reality.
2010-12-28 13:36:09 +00:00
jmmv
15dbacd486 Pull up revision 869e092e4986eb5dce90331ca9a64e125d7796eb from mainstream:
Revision: 869e092e4986eb5dce90331ca9a64e125d7796eb
Parent:   cca40eb08e7469dfe9d6ca982613458f24c1de28
Author:   jmmv@NetBSD.org
Date:     12/27/10 21:19:19
Branch:   org.NetBSD.atf.src

Changelog:

Recognize sigabrt in the signal checker

Problem found by Paul Goyette.

Changes against parent cca40eb08e7469dfe9d6ca982613458f24c1de28

  patched  atf-sh/atf-check.cpp
2010-12-27 20:36:17 +00:00
christos
017d3467b1 - don't forget to restore the umask on error.
- save and restore umask for control
- chown/chgrp for raw devices
2010-12-26 14:48:34 +00:00
christos
6f6878df03 defs.h already includes nbtool_config.h, so don't do it twice. 2010-12-25 23:43:30 +00:00
christos
5743e2a045 fix debugging:
- don't print junk for the interface name
- parse and print known rtm messages we get
2010-12-25 20:45:49 +00:00
joerg
570bc97f41 Include nbtool_config.h for the toolchain build as platforms like Linux
don't define __RCSID.
2010-12-25 19:24:28 +00:00
christos
9f5adb9583 fix type-punned warnings on gcc-3.3.3 2010-12-25 18:23:39 +00:00
christos
f2fd5dbad4 Fix non-threads compatibility code which was causing trouble even in the
threaded version.
2010-12-25 15:26:32 +00:00
christos
60b2c79645 remove typo. 2010-12-24 23:28:14 +00:00
christos
cf91bdd313 update for new yacc. 2010-12-24 23:27:14 +00:00
haad
8f7b707f59 libzfs_fru_clear was not ported to NetBSD disable it foor now. 2010-12-24 16:13:58 +00:00
christos
379031a404 update yacc to the most recent. 2010-12-24 02:58:20 +00:00
christos
9cdaf1e6ed import latest byacc 2010-12-23 23:36:22 +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
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
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
tsutsui
6ff9a90670 Disable bzip2 support in tools bdftopcf(1).
We don't use bzip2 fonts on build and some OS doesn't have bzip2 headers.
Ok'ed by mrg@, martin@, fixes PR/44138.

Should be pulled up to netbsd-5 (and netbsd-5-1).
2010-12-19 13:04:54 +00:00
joerg
53ec7d85a6 Build xcvs without -g. 2010-12-18 04:23:26 +00:00
wiz
1e9e3652c6 Bump date for chroot default. 2010-12-17 10:35:10 +00:00
jruoho
27cfff3b3e Make tcpdump(8) to drop root privileges and chroot(2) by default. 2010-12-17 09:54:27 +00:00
joerg
fe0427534e Kill use of __DATE__ and __TIME__ in SCCS strings. 2010-12-17 00:23:58 +00:00
wiz
3d3c5d42cb Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
haad
363aa1ba89 Whitespace police. 2010-12-15 22:49:42 +00:00
haad
59385470cf Only KM_SLEEP | KM_NOSLEEP can be passed down to kmem layer, clean up
tqflags from internal taskq flags (TQ_FRONT) before calling kmem_alloc.
2010-12-15 22:09:14 +00:00
enami
83d9249c3a Fix typo. 2010-12-15 07:36:51 +00:00
christos
83c933dca1 Use the source dir atomic.h 2010-12-15 02:08:16 +00:00
haad
591e382e8c Revert last commit it's not needed anymore. 2010-12-15 00:58:58 +00:00
christos
a9c38a6a96 Wrong rfc mentioned 2010-12-14 23:43:32 +00:00
haad
3bd4964ac1 Do not built 64b atomic ops to libzpool they are in libc again. 2010-12-14 23:39:11 +00:00
christos
c2a9dfd59e handle lack of <sys/atomic.h> 2010-12-14 23:19:23 +00:00
christos
f4f6c00c90 silence gcc-3 uninitialized variable warning. 2010-12-14 23:18:31 +00:00
christos
30037bfd3f Handle NetBSD-5 and 4 lack of atomics by disabling threads. 2010-12-14 23:17:20 +00:00
christos
97caf9021f handle openssl versions less < 1. 2010-12-14 23:16:39 +00:00
tron
4dd88e84a3 Get DTrace to build again. 2010-12-14 14:08:42 +00:00
haad
4d468780ce Use only cas versions of 64 bit atomic ops. 2010-12-14 09:19:14 +00:00
haad
7527c22f7f Add NetBSD version of zfs snapshot management code. IT needs testing it
was only compile tested for now, but I would like to have some code in to be
sure that it will not be lost.
2010-12-14 01:28:18 +00:00
haad
732f954b5c Define mutex_owned. 2010-12-14 01:25:37 +00:00
haad
f60c1b8f4b Remove now unneeded print_timestamp. 2010-12-14 01:23:43 +00:00
haad
9e62f6ad09 Fix amd64 build where sysinfo was not defined, disable libshare for now. 2010-12-14 01:22:24 +00:00
haad
b407fc2e79 Do not include debug.h 2010-12-14 01:21:25 +00:00
haad
a0200337cd Add some more solaris vnode defs for zfs_ctldir. 2010-12-14 01:21:02 +00:00
haad
3c4cc2dec7 Include sys/debug.h to get ASSERT defined. 2010-12-14 01:18:34 +00:00
haad
72392f89e6 Define print_timestamp during build, to shut up gcc warning. 2010-12-14 01:03:10 +00:00
haad
01d7ba741b Simple routine to convert long to string. 2010-12-14 01:01:40 +00:00
haad
2940dfac08 NetBSD doesn't have /etc/mnttab replace it with /dev/null. 2010-12-14 01:00:26 +00:00
mrg
d541f2b66d reinstall awk.texi. 2010-12-13 06:30:44 +00:00
mrg
7246249458 re-add gawk 3.1.3's awk.texi 2010-12-13 06:21:53 +00:00
joerg
b4eb5d9c57 Kill double .TP 2010-12-12 20:20:43 +00:00
joerg
1a85759af0 Kill double .TP 2010-12-12 20:19:41 +00:00
christos
bc03f5ba09 Don't build awk.info because matt removed it. 2010-12-12 19:01:03 +00:00
joerg
2e05e5b66d Reply 1.15, lost in the last update. 2010-12-12 18:40:01 +00:00
adam
5e6ed478ee bump minor version for 2.4.23 2010-12-12 16:19:54 +00:00
adam
303af6c5ec Update to OpenLDAP 2.4.23 2010-12-12 16:10:42 +00:00
adam
4ecae53ae6 Use conditional WORDS_BIGENDIAN 2010-12-12 16:10:18 +00:00
adam
a8c4d9a88a Merge 2.4.23 2010-12-12 15:46:27 +00:00
adam
ef2f90d39c Imported openldap-2.4.23 2010-12-12 15:17:36 +00:00
matt
48d3f85c1c Use ELF_ST_VISIBILITY (S_GET_OTHER( )) instead of a local S_IS_HIDDEN as
suggested by binutils.
2010-12-09 06:22:03 +00:00
kiyohara
602d621e07 The failure of rebuilding is evaded.
Vga is not used in x86 and alpha for a long time. PR#41626 might influence us.
2010-12-07 05:39:53 +00:00
matt
4d0f1c412f Add a private now S_IS_HIDDEN(symbol) so gas deal with hidden symbols
correctly.
2010-12-06 21:17:00 +00:00
jmmv
42afccf436 Pull up revision c917871de7dd67ba57c17496ad68fe4e4aa8b239:
Fix atf-check match checker to validate lines without newline

Problem found by pooka@.
2010-12-06 18:04:02 +00:00
christos
efb1585e67 propagate the fixes from /usr/src/sys/net/bpf_filter.c here, so that
we don't merge backwards again.
2010-12-06 01:08:02 +00:00
adam
3e1a82b305 Fix building on case-insensitive file-system. 2010-12-05 15:57:40 +00:00
mrg
a5ae13c90e - use SCRIPTS* for scripts instead of FILES*.
- add pcap-config to CLEANFILES.
2010-12-05 09:09:39 +00:00
mrg
9133e91956 netbsd needs net/bpf.h, too. 2010-12-05 08:43:23 +00:00
christos
dbe76af3b7 hook tcpdump and libpcap 2010-12-05 05:59:59 +00:00
christos
25abe6c390 tcpdump goes to /usr/sbin 2010-12-05 05:52:46 +00:00
christos
ef3545626b we don't have a 3PCAP section 2010-12-05 05:40:14 +00:00
christos
0a6931da37 we only have bin 2010-12-05 05:24:21 +00:00
christos
923cb98430 cleanup old stuff and install in the right place 2010-12-05 05:24:03 +00:00
christos
69e620e14c build and import glue. 2010-12-05 05:14:00 +00:00
christos
90faadda0b Makefile overrides 2010-12-05 05:13:45 +00:00
christos
11b3aaa125 apply our changes and add the pfsync stuff. 2010-12-05 05:11:30 +00:00
christos
0f74e101fa Import tcpdump-4.1.1 2010-12-05 03:14:48 +00:00
christos
ea56eea76f select IPv6 from the Makefile 2010-12-05 03:06:54 +00:00
christos
8bc69f3e6c add configure file. 2010-12-05 03:06:08 +00:00
christos
45a3afe368 we need some more files here. 2010-12-05 03:03:27 +00:00
christos
aac80989b6 more sign-compare fixes. 2010-12-05 03:02:41 +00:00
christos
c8eee57ad6 don't print -L/usr/lib and -I/usr/include for no reason. 2010-12-05 03:01:39 +00:00
christos
8d518122c2 install pcap-check. Someone might need it. 2010-12-05 03:00:44 +00:00
christos
74c505a81b - add our fixes
- make compile with WARNS=5
- add glue
2010-12-05 01:45:46 +00:00
christos
adf57bf528 add rcs keyword cleaner 2010-12-05 01:28:28 +00:00
christos
62ed3ef9cc try again fixing RCS keywords 2010-12-05 01:26:52 +00:00
christos
bf1df6d193 Import libpcap-1.1.1 2010-12-05 01:20:21 +00:00
christos
e19314b713 Pretending that %d can print size_t on __LP64__, by turning off warnings
is not really a good idea.  Turn on the warnings and fix them. Unfortunately
there are a bunch of const-castaways... Should be fed upstream.
2010-12-04 23:08:32 +00:00
plunky
f33b316b63 Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.
2010-12-03 21:38:46 +00:00
christos
dfcdd76889 merge changes 2010-12-02 14:52:17 +00:00