CVS commit: src/sys/dev/raidframe
Module Name:src Committed By: christos Date: Thu May 23 14:15:52 UTC 2013 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: PR/47846: Frank Kardel: panic/lockups in raidframe during detach at shutdown XXX: Fix this properly by using the memory allocated from the autoconf subsystem and use raidput in all the places needed. To generate a diff of this commit: cvs rdiff -u -r1.302 -r1.303 src/sys/dev/raidframe/rf_netbsdkintf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/raidframe/rf_netbsdkintf.c diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.302 src/sys/dev/raidframe/rf_netbsdkintf.c:1.303 --- src/sys/dev/raidframe/rf_netbsdkintf.c:1.302 Mon Apr 29 17:21:10 2013 +++ src/sys/dev/raidframe/rf_netbsdkintf.c Thu May 23 10:15:52 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.302 2013/04/29 21:21:10 christos Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.303 2013/05/23 14:15:52 christos Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc. @@ -101,7 +101,7 @@ ***/ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: rf_netbsdkintf.c,v 1.302 2013/04/29 21:21:10 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: rf_netbsdkintf.c,v 1.303 2013/05/23 14:15:52 christos Exp $); #ifdef _KERNEL_OPT #include opt_compat_netbsd.h @@ -3841,7 +3841,10 @@ static int raid_detach(device_t self, int flags) { int error; - struct raid_softc *rs = device_private(self); + struct raid_softc *rs = raidget(device_unit(self)); + + if (rs == NULL) + return ENXIO; if ((error = raidlock(rs)) != 0) return (error); @@ -3850,6 +3853,8 @@ raid_detach(device_t self, int flags) raidunlock(rs); + /* XXXkd: raidput(rs) ??? */ + return error; }
CVS commit: src/tests/lib/libm
Module Name:src Committed By: christos Date: Thu May 23 20:45:47 UTC 2013 Modified Files: src/tests/lib/libm: t_scalbn.c Log Message: vaxinate the new tests. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_scalbn.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/t_scalbn.c diff -u src/tests/lib/libm/t_scalbn.c:1.8 src/tests/lib/libm/t_scalbn.c:1.9 --- src/tests/lib/libm/t_scalbn.c:1.8 Mon May 20 08:21:42 2013 +++ src/tests/lib/libm/t_scalbn.c Thu May 23 16:45:47 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: t_scalbn.c,v 1.8 2013/05/20 12:21:42 martin Exp $ */ +/* $NetBSD: t_scalbn.c,v 1.9 2013/05/23 20:45:47 christos Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include sys/cdefs.h -__RCSID($NetBSD: t_scalbn.c,v 1.8 2013/05/20 12:21:42 martin Exp $); +__RCSID($NetBSD: t_scalbn.c,v 1.9 2013/05/23 20:45:47 christos Exp $); #include math.h #include limits.h @@ -75,6 +75,7 @@ ATF_TC_HEAD(scalbn_val, tc) ATF_TC_BODY(scalbn_val, tc) { +#ifndef __vax__ const struct testcase *tests = test_vals; const size_t tcnt = __arraycount(test_vals); size_t i; @@ -89,6 +90,7 @@ ATF_TC_BODY(scalbn_val, tc) test %zu: return value %g instead of %g (difference %g), i, rv, tests[i].result, tests[i].result-rv); } +#endif } ATF_TC(scalbn_nan); @@ -228,6 +230,7 @@ ATF_TC_HEAD(scalbnf_val, tc) ATF_TC_BODY(scalbnf_val, tc) { +#ifndef __vax__ const struct testcase *tests = test_vals; const size_t tcnt = __arraycount(test_vals); size_t i; @@ -242,6 +245,7 @@ ATF_TC_BODY(scalbnf_val, tc) test %zu: return value %g instead of %g (difference %g), i, rv, tests[i].result, tests[i].result-rv); } +#endif } ATF_TC(scalbnf_nan);
CVS commit: src/distrib/hpcarm/stand
Module Name:src Committed By: christos Date: Thu May 23 20:57:35 UTC 2013 Modified Files: src/distrib/hpcarm/stand: Makefile Log Message: remove redundant rule that creates a make cycle. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/distrib/hpcarm/stand/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/hpcarm/stand/Makefile diff -u src/distrib/hpcarm/stand/Makefile:1.2 src/distrib/hpcarm/stand/Makefile:1.3 --- src/distrib/hpcarm/stand/Makefile:1.2 Sun Jun 22 22:16:53 2008 +++ src/distrib/hpcarm/stand/Makefile Thu May 23 16:57:35 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2008/06/23 02:16:53 matt Exp $ +# $NetBSD: Makefile,v 1.3 2013/05/23 20:57:35 christos Exp $ .include bsd.own.mk .include ${NETBSDSRCDIR}/distrib/common/Makefile.distrib @@ -11,7 +11,6 @@ HPCBOOT= hpcboot.exe .PATH: ${HPCBOOTDIR} UUDECODE_FILES= ${HPCBOOT} -UUDECODE_FILES_RENAME_${HPCBOOT}= ${HPCBOOT} release:: check_RELEASEDIR .WAIT ${HPCBOOT} ${INSTALL} -c -m ${NONBINMODE} \
CVS commit: src/share/misc
Module Name:src Committed By: apb Date: Thu May 23 21:08:13 UTC 2013 Modified Files: src/share/misc: bsd-family-tree Log Message: slight improvement in layout; no semantic change intended. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/share/misc/bsd-family-tree Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/misc/bsd-family-tree diff -u src/share/misc/bsd-family-tree:1.49 src/share/misc/bsd-family-tree:1.50 --- src/share/misc/bsd-family-tree:1.49 Sun May 19 15:04:39 2013 +++ src/share/misc/bsd-family-tree Thu May 23 21:08:13 2013 @@ -221,8 +221,8 @@ FreeBSD 5.2 | | *--FreeBSD| | |||DragonFly 1.12.0 |7.0 | | ||| | | | | | ||OpenBSD 4.3 | - | | | | | NetBSD 4.0.1|DragonFly 2.0.0 - | |FreeBSD | | OpenBSD 4.4 | + | | | | | NetBSD |DragonFly 2.0.0 + | |FreeBSD | | 4.0.1 OpenBSD 4.4 | | | 6.4 | | | | | | | | | | | FreeBSD 7.1 | | | | @@ -242,28 +242,31 @@ FreeBSD 5.2 | | | FreeBSD | | | | | | |8.1 | | | | | | | || | | | |DragonFly 2.8.2 - | || | | \ OpenBSD 4.8 | - | || | | NetBSD | | - | FreeBSD FreeBSD | |5.1 | | - |8.2 7.4| | |\ | DragonFly 2.10.1 - | | | | | \ OpenBSD 4.9 | - | `-. Mac OS X | | || | - |\ 10.7| | || | - | | | | | |OpenBSD 5.0 | - *--FreeBSD| | | | || | - |9.0 | | | NetBSD 5.1.2 | DragonFly 3.0.1 - | |FreeBSD | ||| | - | | 8.3 | ||OpenBSD 5.1 | - | | Mac OS X ||| | - | | 10.8||| | + | || | | | OpenBSD 4.8 | + | || | | *--NetBSD | | + | FreeBSD FreeBSD | | |5.1| | + |8.2 7.4| | | || DragonFly 2.10.1 + | | | | | |OpenBSD 4.9 | + | `-. Mac OS X | | || | + |\ 10.7| | || | + | | | | | |OpenBSD 5.0 | + *--FreeBSD| | | | || | + |9.0 | | | | NetBSD | DragonFly 3.0.1 + | |FreeBSD | | |5.1.2 | | + | | 8.3 | | | OpenBSD 5.1 | + | | Mac OS X | `. | | + | | 10.8| \ | | | | | NetBSD 6.0 || | - | | | |\\ |OpenBSD 5.2 DragonFly 3.2.1 - | FreeBSD | | |\ NetBSD 5.2 | | - |9.1 | | | \ | | - || | | NetBSD 6.0.1 | | + | | | | | ||OpenBSD 5.2 DragonFly 3.2.1 + | FreeBSD | | | | NetBSD | | + |9.1 | | | | 5.2 | | + || | | \| | + || | | NetBSD | | + || | |6.0.1 | | || | | | OpenBSD 5.3 DragonFly 3.4.1 - || | | || | - || | | NetBSD 6.0.2 | | + || | | NetBSD
CVS commit: src/sys/arch/mips/include
Module Name:src Committed By: christos Date: Thu May 23 21:39:49 UTC 2013 Modified Files: src/sys/arch/mips/include: bswap.h elf_machdep.h endian.h endian_machdep.h float.h math.h mips_param.h sysarch.h Log Message: add generic copyrights so FreeBSD can use them. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/include/bswap.h cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mips/include/elf_machdep.h cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mips/include/endian.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/include/endian_machdep.h cvs rdiff -u -r1.16 -r1.17 src/sys/arch/mips/include/float.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/include/math.h cvs rdiff -u -r1.33 -r1.34 src/sys/arch/mips/include/mips_param.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mips/include/sysarch.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mips/include/bswap.h diff -u src/sys/arch/mips/include/bswap.h:1.3 src/sys/arch/mips/include/bswap.h:1.4 --- src/sys/arch/mips/include/bswap.h:1.3 Fri Nov 29 20:52:32 2002 +++ src/sys/arch/mips/include/bswap.h Thu May 23 17:39:49 2013 @@ -1,5 +1,30 @@ -/* $NetBSD: bswap.h,v 1.3 2002/11/30 01:52:32 simonb Exp $ */ +/* $NetBSD: bswap.h,v 1.4 2013/05/23 21:39:49 christos Exp $ */ +/*- + * Copyright (c) 2013 The NetBSD Foundation, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #ifndef _MIPS_BSWAP_H_ #define _MIPS_BSWAP_H_ Index: src/sys/arch/mips/include/elf_machdep.h diff -u src/sys/arch/mips/include/elf_machdep.h:1.17 src/sys/arch/mips/include/elf_machdep.h:1.18 --- src/sys/arch/mips/include/elf_machdep.h:1.17 Tue Jan 29 21:48:22 2013 +++ src/sys/arch/mips/include/elf_machdep.h Thu May 23 17:39:49 2013 @@ -1,5 +1,30 @@ -/* $NetBSD: elf_machdep.h,v 1.17 2013/01/30 02:48:22 christos Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.18 2013/05/23 21:39:49 christos Exp $ */ +/*- + * Copyright (c) 2013 The NetBSD Foundation, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #ifndef _MIPS_ELF_MACHDEP_H_ #define _MIPS_ELF_MACHDEP_H_ Index: src/sys/arch/mips/include/endian.h diff -u src/sys/arch/mips/include/endian.h:1.19 src/sys/arch/mips/include/endian.h:1.20 --- src/sys/arch/mips/include/endian.h:1.19 Thu Mar 16 19:09:22 2000 +++
CVS commit: othersrc/external/bsd/bikeshed
Module Name:othersrc Committed By: dholland Date: Fri May 24 00:40:25 UTC 2013 Added Files: othersrc/external/bsd/bikeshed: Makefile othersrc/external/bsd/bikeshed/bin: Makefile othersrc/external/bsd/bikeshed/dist: README othersrc/external/bsd/bikeshed/dist/doc: bs.1 othersrc/external/bsd/bikeshed/dist/src: main.c Log Message: As named by riastradh@ last week To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/bikeshed/Makefile cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/bikeshed/bin/Makefile cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/bikeshed/dist/README cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/bikeshed/dist/doc/bs.1 cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/bikeshed/dist/src/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: othersrc/external/bsd/bikeshed/Makefile diff -u /dev/null othersrc/external/bsd/bikeshed/Makefile:1.1 --- /dev/null Fri May 24 00:40:25 2013 +++ othersrc/external/bsd/bikeshed/Makefile Fri May 24 00:40:24 2013 @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2013/05/24 00:40:24 dholland Exp $ + +SUBDIR=bin + +.include bsd.subdir.mk Index: othersrc/external/bsd/bikeshed/bin/Makefile diff -u /dev/null othersrc/external/bsd/bikeshed/bin/Makefile:1.1 --- /dev/null Fri May 24 00:40:25 2013 +++ othersrc/external/bsd/bikeshed/bin/Makefile Fri May 24 00:40:24 2013 @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1 2013/05/24 00:40:24 dholland Exp $ + +BINDIR=/usr/bin + +PROG=bs +MAN=bs.1 +SRCS=main.c + +WARNS=5 + +DIST=${.CURDIR}/../dist +CPPFLAGS+=-I${DIST} +.PATH: ${DIST}/src ${DIST}/doc + +.include bsd.prog.mk Index: othersrc/external/bsd/bikeshed/dist/README diff -u /dev/null othersrc/external/bsd/bikeshed/dist/README:1.1 --- /dev/null Fri May 24 00:40:25 2013 +++ othersrc/external/bsd/bikeshed/dist/README Fri May 24 00:40:25 2013 @@ -0,0 +1,12 @@ +bikeshed is a full-tree version control system. + +Flagship features include: + - centralized design supporting disconnected operation + - no compare-by-hash + - sequential version numbering + - written in C without depending on external libraries + - reasonably fast + - scalable to large trees with deep histories + - provides provenance tracking for commits + - modern schema with lightweight branching and atomic changesets + - clean user interface Index: othersrc/external/bsd/bikeshed/dist/doc/bs.1 diff -u /dev/null othersrc/external/bsd/bikeshed/dist/doc/bs.1:1.1 --- /dev/null Fri May 24 00:40:25 2013 +++ othersrc/external/bsd/bikeshed/dist/doc/bs.1 Fri May 24 00:40:25 2013 @@ -0,0 +1,50 @@ +.\ +.\ Copyright (c) 2013 The NetBSD Foundation, Inc. +.\ All rights reserved. +.\ +.\ This code is derived from software contributed to The NetBSD Foundation +.\ by David A. Holland. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following conditions +.\ are met: +.\ 1. Redistributions of source code must retain the above copyright +.\notice, this list of conditions and the following disclaimer. +.\ 2. Redistributions in binary form must reproduce the above copyright +.\notice, this list of conditions and the following disclaimer in the +.\documentation and/or other materials provided with the distribution. +.\ +.\ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +.\ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +.\ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +.\ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\ POSSIBILITY OF SUCH DAMAGE. +.\ +.Dd May 23, 2013 +.Dt BS 1 +.Os +.Sh NAME +.Nm bs, bikeshed +.Nd full-tree version control system +.Sh SYNOPSIS +.Nm bs +.Op Fl C Ar dir +.Op Fl hqvy +command +.Op Ar args... +.Sh DESCRIPTION +This page is a placeholder. +.Sh SEE ALSO +.Xr cvs 1 +.Sh HISTORY +The +.Nm bs +command will appear in +.Nx K +for large K. Index: othersrc/external/bsd/bikeshed/dist/src/main.c diff -u /dev/null othersrc/external/bsd/bikeshed/dist/src/main.c:1.1 --- /dev/null Fri May 24 00:40:25 2013 +++ othersrc/external/bsd/bikeshed/dist/src/main.c Fri May 24 00:40:25 2013 @@ -0,0 +1,156 @@ +/*- + * Copyright (c) 2013 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by David A. Holland. + * + * Redistribution
CVS commit: othersrc/external/bsd/bikeshed/dist/design
Module Name:othersrc Committed By: dholland Date: Fri May 24 00:41:31 UTC 2013 Added Files: othersrc/external/bsd/bikeshed/dist/design: requirements.txt Log Message: Stuff distilled from my notes and previous arguments and bikeshed sessions To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 \ othersrc/external/bsd/bikeshed/dist/design/requirements.txt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: othersrc/external/bsd/bikeshed/dist/design/requirements.txt diff -u /dev/null othersrc/external/bsd/bikeshed/dist/design/requirements.txt:1.1 --- /dev/null Fri May 24 00:41:31 2013 +++ othersrc/external/bsd/bikeshed/dist/design/requirements.txt Fri May 24 00:41:31 2013 @@ -0,0 +1,340 @@ +The material herein is grouped first by topic and then by priority. + + + +1. Operational model + +- Centralized operation with one master tree +- Supports disconnected operation +- No compare-by-hash +- Native support for synced slave copies of the master tree (like anoncvs) +- Transport-independent remote operation, supporting both http/https + and ssh +- Checkouts can cache arbitrary amounts of history locally but are not +obliged to clone everything +- Non-committers with readonly checkouts should be able to package +changesets for review and commit by committers. + +Rationale: + +Centralized operation is posed as a design requirement because it's a +prerequisite for other things... and because this whole project is +predicated on the assumption that centralized operation is acceptable. +If someone comes up with a clever way to support distributed operation +without compromising other requirements, well and good; otherwise one +may as well use one of the modern distributed version control systems. + +Disconnected operation, meanwhile, covers most of the use cases people +cite in favor of distributed version control. + +Compare-by-hash is bad not because it's slightly sleazy, or because +the statistical assumptions about the probability of collisions are +wrong (although in some contexts they're questionable) -- it's because +cryptographic hash functions don't age well and the standard DVCS +scheme for hashing chains of versions doesn't provide any decent way +to migrate an existing repository to a new hash function. + +Native support for synced slave copies is needed in order to be able +to provide anonymous access (like anoncvs) without needing access to +the master tree. This is also meant to satisfy the use cases where +currently people rsync the whole CVS repository locally. + +Transport-independent remote operation should be a no-brainer, but +even many recent systems have felt the need to make up their own +protocols and network-level constructs. + +Easier collaboration with non-committers is an often-requested +feature and a de facto property of distributed version contorl. + +Unanswered questions: + +- Do we need support for disconnected operation by more than one user +at a time (or perhaps more than one tree at a time) so that +uncommitted changesets can be shared? The non-committer changeset +support might cover this territory adequately, or not, depending on +how it ends up working. + + +2. Schema + +- Supports arbitrary (smallish) metadata attached to changesets, and +also to files and directories +- Metadata (including on old versions) is mutable and changes are kept +in history (this includes commit message text) +- Provides provenance tracking for changesets/commits +- Commits/changesets are atomic +- Version numbers (for projects, files, and subtrees if any) are +sequential. +- Supports rename (of files or dirs) properly, and file history +crosses renames transparently +- Supports copy/duplicate (of files or dirs) properly +- Has a coherent semantic model of tree history +- Supports local-only changes that are not pushed back to the master +tree + +Rationale: + +While arbitrary metadata is a nuisance to support (compared to a small +fixed metadata schema) and in many cases using this metadata facility +(as opposed to storing information in an ordinary file in the +repository) would be a mistake, it is nonetheless useful for various +purposes. One of these is preserving old version numbers from a +repository conversion; given the large number of references to NetBSD +CVS file version numbers, including in places like security advisories +that count as important, preserving this information and making it +searchable is highly desirable. + +Metadata should be mutable because sometimes it contains errors. One +of the big weaknesses of current distributed version control is that +effectively all metadata is immutable once committed; this means any +botch not immediately detected is graven in stone for all time, unless +someone does a complete repository rebuild updating all subsequent +versions. Meanwhile, keeping the history
CVS commit: src/sys/dev/pci
Module Name:src Committed By: msaitoh Date: Fri May 24 02:29:36 UTC 2013 Modified Files: src/sys/dev/pci: if_bge.c if_bgevar.h Log Message: bge_init_tx_ring() uses BGE_RSLOTS (==256) but bge_free_tx_ring() uses BGE_TX_RING_CNT (== 512). Delete BGE_RSLOTS and use BGE_TX_RING_CNT. Same as OpenBSD's if_bge.c rev. 1.86. To generate a diff of this commit: cvs rdiff -u -r1.245 -r1.246 src/sys/dev/pci/if_bge.c cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/if_bgevar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/if_bge.c diff -u src/sys/dev/pci/if_bge.c:1.245 src/sys/dev/pci/if_bge.c:1.246 --- src/sys/dev/pci/if_bge.c:1.245 Tue May 21 06:59:28 2013 +++ src/sys/dev/pci/if_bge.c Fri May 24 02:29:36 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.245 2013/05/21 06:59:28 martin Exp $ */ +/* $NetBSD: if_bge.c,v 1.246 2013/05/24 02:29:36 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.245 2013/05/21 06:59:28 martin Exp $); +__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.246 2013/05/24 02:29:36 msaitoh Exp $); #include sys/param.h #include sys/systm.h @@ -1965,7 +1965,7 @@ bge_init_tx_ring(struct bge_softc *sc) bge_writembx(sc, BGE_MBX_TX_NIC_PROD0_LO, 0); SLIST_INIT(sc-txdma_list); - for (i = 0; i BGE_RSLOTS; i++) { + for (i = 0; i BGE_TX_RING_CNT; i++) { if (bus_dmamap_create(sc-bge_dmatag, BGE_TXDMA_MAX, BGE_NTXSEG, ETHER_MAX_LEN_JUMBO, 0, BUS_DMA_NOWAIT, dmamap)) Index: src/sys/dev/pci/if_bgevar.h diff -u src/sys/dev/pci/if_bgevar.h:1.14 src/sys/dev/pci/if_bgevar.h:1.15 --- src/sys/dev/pci/if_bgevar.h:1.14 Sun Mar 24 22:33:59 2013 +++ src/sys/dev/pci/if_bgevar.h Fri May 24 02:29:36 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bgevar.h,v 1.14 2013/03/24 22:33:59 msaitoh Exp $ */ +/* $NetBSD: if_bgevar.h,v 1.15 2013/05/24 02:29:36 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -152,7 +152,6 @@ #define BGE_SSLOTS 256 #define BGE_MSLOTS 256 #define BGE_JSLOTS 384 -#define BGE_RSLOTS 256 #define BGE_JRAWLEN (BGE_JUMBO_FRAMELEN + ETHER_ALIGN) #define BGE_JLEN (BGE_JRAWLEN + (sizeof(uint64_t) - \
CVS commit: src/sys/dev/pci
Module Name:src Committed By: msaitoh Date: Fri May 24 02:35:28 UTC 2013 Modified Files: src/sys/dev/pci: if_bge.c Log Message: Document says 5717 and newer chips have no BGE_PCISTATE_INTR_NOT_ACTIVE bit, so don't use the bit on those chips. Same as OpenBSD. To generate a diff of this commit: cvs rdiff -u -r1.246 -r1.247 src/sys/dev/pci/if_bge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/if_bge.c diff -u src/sys/dev/pci/if_bge.c:1.246 src/sys/dev/pci/if_bge.c:1.247 --- src/sys/dev/pci/if_bge.c:1.246 Fri May 24 02:29:36 2013 +++ src/sys/dev/pci/if_bge.c Fri May 24 02:35:28 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.246 2013/05/24 02:29:36 msaitoh Exp $ */ +/* $NetBSD: if_bge.c,v 1.247 2013/05/24 02:35:28 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.246 2013/05/24 02:29:36 msaitoh Exp $); +__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.247 2013/05/24 02:35:28 msaitoh Exp $); #include sys/param.h #include sys/systm.h @@ -106,7 +106,7 @@ __KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1 #include netinet/ip.h #endif -/* Headers for TCP Segmentation Offload (TSO) */ +/* Headers for TCP Segmentation Offload (TSO) */ #include netinet/in_systm.h /* n_time for netinet/ip.h... */ #include netinet/in.h /* ip_{src,dst}, for netinet/ip.h */ #include netinet/ip.h /* for struct ip */ @@ -4505,10 +4505,15 @@ bge_intr(void *xsc) struct bge_softc *sc; struct ifnet *ifp; uint32_t statusword; + uint32_t intrmask = BGE_PCISTATE_INTR_NOT_ACTIVE; sc = xsc; ifp = sc-ethercom.ec_if; + /* 5717 and newer chips have no BGE_PCISTATE_INTR_NOT_ACTIVE bit */ + if (BGE_IS_5717_PLUS(sc)) + intrmask = 0; + /* It is possible for the interrupt to arrive before * the status block is updated prior to the interrupt. * Reading the PCI State register will confirm whether the @@ -4523,7 +4528,7 @@ bge_intr(void *xsc) statusword = sc-bge_rdata-bge_status_block.bge_status; if ((statusword BGE_STATFLAG_UPDATED) || - (!(CSR_READ_4(sc, BGE_PCI_PCISTATE) BGE_PCISTATE_INTR_NOT_ACTIVE))) { + (~CSR_READ_4(sc, BGE_PCI_PCISTATE) intrmask)) { /* Ack interrupt and stop others from occuring. */ bge_writembx_flush(sc, BGE_MBX_IRQ0_LO, 1);
CVS commit: src/lib/libc/gen
Module Name:src Committed By: enami Date: Fri May 24 03:20:18 UTC 2013 Modified Files: src/lib/libc/gen: realpath.3 Log Message: Update ERRORS section: - Remove some system calls from the list of functions which may set errno during the execution of realpath(3) since they are no longer used to implement it. - Document some errno set by the realpath(3) itself. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/lib/libc/gen/realpath.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/gen/realpath.3 diff -u src/lib/libc/gen/realpath.3:1.16 src/lib/libc/gen/realpath.3:1.17 --- src/lib/libc/gen/realpath.3:1.16 Tue Mar 5 03:11:27 2013 +++ src/lib/libc/gen/realpath.3 Fri May 24 03:20:18 2013 @@ -1,4 +1,4 @@ -.\ $NetBSD: realpath.3,v 1.16 2013/03/05 03:11:27 enami Exp $ +.\ $NetBSD: realpath.3,v 1.17 2013/05/24 03:20:18 enami Exp $ .\ .\ Copyright (c) 1994 .\ The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\ .\ from: @(#)realpath.3 8.2 (Berkeley) 2/16/94 .\ -.Dd June 21, 2012 +.Dd May 24, 2013 .Dt REALPATH 3 .Os .Sh NAME @@ -100,15 +100,34 @@ The function may fail and set the external variable .Va errno for any of the errors specified for the library functions -.Xr chdir 2 , -.Xr close 2 , -.Xr fchdir 2 , +.\ First sorted by section, then by name. .Xr lstat 2 , -.Xr malloc 3 , -.Xr open 2 , -.Xr readlink 2 +.Xr readlink 2 , +.Xr getcwd 3 and -.Xr getcwd 3 . +.Xr malloc 3 . +.Pp +In addition, the following errors may be reported: +.Bl -tag -width Er +.It Bq Er EINVAL +The value of the +.Fa pathname +argument is +.Dv NULL . +.It Bq Er ELOOP +Too many symbolic links were encountered in translating the +.Fa pathname . +.It Bq Er ENAMETOOLONG +The resulting absolute pathname exceeds MAXPATHLEN characters. +.It Bq Er ENOENT +The value of the +.Fa pathname +argument is an empty string. +.It Bq Er ENOENT +A symbolic link to an empty string is encountered. +.It Bq Er ENOTDIR +A component of the path prefix is not a directory. +.El .Sh SEE ALSO .Xr getcwd 3 .Sh STANDARDS