summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-06bzero the agent address. the kernel was for a while very cranky aboutTed Unangst
these things. evne though that's fixed, always good to initialize memory. ok deraadt djm
2011-07-06sigset_t is unsigned, so eliminate a warning by shifting a 1U insteadPhilip Guenthe
of a 1 when creating signal masks. ok millert@
2011-07-06Consistency in stdout redirections.Antoine Jacoutot
2011-07-06When checking if a chunk is in use, do not match on NODEV.Joel Sing
2011-07-06Use a single shutdown hook for the softraid controller instead ofJoel Sing
having one per volume. ok marco@
2011-07-06vndsize() can just return -1; we don't support swapping to vndMatthew Dempsky
anymore.
2011-07-06Compact the vnd sc_flags bits.Matthew Dempsky
ok krw@
2011-07-06Indent, no change.Antoine Jacoutot
2011-07-06On several archs (e.g. hppa, sgi, macppc) readdoslabel() is called after an ↵Kenneth R Westerback
attempt to read a native label fails. Reset B_ERROR/b_error on buf to ensure any i/o failure on that first attempt is forgiven. A la the dkcsum() fix to recover from a disk error.
2011-07-06Remove a trailing \ from a comment which was hiding the altos3 entryNicholas Marriott
(line continuation applies to comments). This doesn't matter now since we strip comments but still isn't right. Spotted by millert@.
2011-07-06Ooops. Missed one 'readdoslabel() only' arch. Do the block <-> sector dance forKenneth R Westerback
write label location here too.
2011-07-06Actually make sr_detach() work. At this stage we never detach softraid(4),Joel Sing
however since this code exists it still should work correctly.
2011-07-06Retain a reference to the registered sensor task so that we can unregisterJoel Sing
it again.
2011-07-06Replace the keyword expansion code with a faster, more readable versionNicholas Marriott
which additionally also supports $Log$ and $Locker. Written by Joerg Sonnenberger and tweaked by me. ok ray
2011-07-06Add a new question to run sysmerge(8) at the end of an upgrade; defaultsAntoine Jacoutot
to no. The way it works is as follow: - if baseXX was selected during the upgrade, etcXX will be added to the args to pass to sysmerge(8) - if xbaseXX was selected during the upgrade, xetcXX will be added to the args to pass to sysmerge(8) Note that etcXX and xetcXX will always be fetched from the first installation source that was configured during the upgrade (it is most likely that other sources contain site specific sets rather than the base ones). This option will not be available when using tape. "read good" krw@ prodded by and ok (with love) pirofti@, ok deraadt@
2011-07-06Move all volume shutdown code into sr_shutdown_discipline() and use a flagJoel Sing
to indicate if we should force a metadata write. ok marco@
2011-07-06On those archs that read their disk (vs iso/udf) disklabels exclusivelyKenneth R Westerback
via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
2011-07-06Add a new kqfilter for random which returns ARC4_MAIN_MAX_BYTES for readNicholas Marriott
and POOLBYTES for write. looks right to deraadt
2011-07-06future code to handle HTTP 1.1 connection: need to establish a somewhatMarc Espie
persistant connection, will use the same client code for scp and http.
2011-07-06Woops, forgot the copyright!Ariane van der Steldt
2011-07-06Hibernate memory allocator.Ariane van der Steldt
A simple first-fit allocator, intended to manage small ranges of memory. This is currently not called. tested and ok mlarkin@, prodded by deraadt@
2011-07-06Minor turd polishing: hold the vnode lock in vn_rdwr() only whileMatthew Dempsky
necessary. "ok ... wait wait WAIT!! ... oh, yeah, it's fine, ok" guenther@
2011-07-06Document that UNIX sockets support SOCK_SEQPACKET.Matthew Dempsky
2011-07-06Implement SOCK_SEQPACKET for UNIX sockets.Matthew Dempsky
ok claudio@
2011-07-06Correct the check for a sun_path that lacks NUL termination to just requirePhilip Guenthe
that *some* char in sun_path is NUL, not necessarily the last. ok claudio@ tedu@
2011-07-06Test handling of non-NUL terminated sun_path values as well as garbagePhilip Guenthe
in the end of the sockaddr_un. Done with claudio@
2011-07-06remove the predict_whatever stuffs. ok deraadt dlg henningTed Unangst
2011-07-06Add MSI support to pyro(4). Tested on a v215 with the on-board mpi(4).Mark Kettenis
2011-07-06Split some generic MSI code out into its own file.Mark Kettenis
2011-07-06Switch to a device that isn't deprecated and return more info onPhilip Guenthe
read failure
2011-07-06Eliminate some sanity checks in vndstrategy() that are now handled byMatthew Dempsky
bounds_check_with_label().
2011-07-06vndstrategy() should fail if VNF_HAVELABEL isn't set. This simplifiesMatthew Dempsky
the logic slightly and makes vnd(4) more like any other disk driver. To avoid races, this means vndopen() can only set VNF_HAVELABEL if dk_openmask == 0. Otherwise, it's possible for userspace to open rvnd0c, call VNDIOCSET, open vnd0a, then while vndreaddisklabel() (via vndstrategy) is waiting for VOP_READ() to finish, you could issue a read or write on the still open rvnd0c and have VNF_HAVELABEL set but the disklabel might be in a weird state. Note that this makes VNF_HAVELABEL nicely analogous to sd(4)/cd(4)'s SDEV_MEDIA_LOADED flag, which is handled similarly in {sd,cd}{open,close,strategy}. ok dlg@, krw@, deraadt@
2011-07-06Move pci_msi_enable() out of the vpci(4) driver into the MD pci(4) code.Mark Kettenis
Soon to be used by pyro(4) as well.
2011-07-06Update to reflect new bounds_check_with_label() semantics.Matthew Dempsky
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
2011-07-06Return the correct error for fchdir(not_file_or_dir)Philip Guenthe
ok matthew@ tedu@
2011-07-06Add regress for errno returns of failed fchdir()sPhilip Guenthe
2011-07-06VOP_GETATTR() can sleep when accessing a file over NFS, so useMatthew Dempsky
FREF()/FRELE() in lseek() so our struct file doesn't disappear in the mean time. Incorporating suggestions from tedu@ and guenther@; ok guenther@
2011-07-06That file is supposed to have been removed ages ago.Miod Vallat
2011-07-06syncTheo de Raadt
2011-07-06Replace a comment asking for a particular order to build stuff inIngo Schwarze
by actual make rules to enforce that order. While here, correct the MANDIR which must no more contain "cat". krw@ also confirms that this lets binutils build with -j.
2011-07-06Make sure ${BEFOREMAN} is finished before ${MANLINT} is started;Ingo Schwarze
otherwise, stuff gets done in the wrong order in make -j. While here, also make sure ${BEFOREMAN} is finished before any manual source code is generated. tested in make build / make release by krw@
2011-07-06Don't pull bsd.own.mk for NOPROFILE & NOPIC -- the libm_i387 thingMartynas Venckus
is gone since 1999.
2011-07-06move a few accounting adjustments closer to removing the page, just to be safe.Ted Unangst
also, rmpage updates curpage, no need to do it twice. ok art deraadt guenther
2011-07-06and make sppp_qflush a wrapper around IF_PURGE instead of handrollingHenning Brauer
the same, ok'd with IFQ_PURGE with happens to break on altq kernels by claudio, ryan and bluhm
2011-07-06use IF_IS_EMPTY istead of mucking if ifqueue internalsHenning Brauer
2011-07-06second trial: stop messing with ifq internals, this time use IF_IS_EMPTYHenning Brauer
and not IFQ_IS_EMPTY, the former doesn't get overloaded with altq-specific stuffz. original oks from claudio and ryan and bluhm, i take the liberty to assume the oks for this fixed version
2011-07-06cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhmHenning Brauer
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-06allow /31s on broadcast interfaces (eg ethernet) to work as per rfc3021.David Gwynne
the issue in our kernel was the broadcast address calculated on the /31 caused a ton of checks for use of broadcast addresses to kick in and prevent one of the two addresses on the /31 from being used. this diff basically detects if a /31 has been configured and doesnt configure a broadcast address for it, which makes the ips usable for normal traffic. i wrote this so i could interoperate with "carrier" network gear better, and sthen wants it so he can conserve address space use. the further special casing of broadcast address handling was from claudio@ ok claudio@ markus@ sthen@ henning@