CVS: cvs.openbsd.org: src

2012-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2012/11/17 21:06:03

src/regress/lib/libc/strtol

Update of /cvs/src/regress/lib/libc/strtol
In directory cvs.openbsd.org:/tmp/cvs-serv4123/strtol

Log Message:
Directory /cvs/src/regress/lib/libc/strtol added to the repository



CVS: cvs.openbsd.org: src

2012-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2012/11/17 21:11:09

Modified files:
regress/lib/libc: Makefile 
Added files:
regress/lib/libc/strtol: Makefile strtoltest.c 

Log message:
Add a regress test for strtol, which currently fails.

ok otto@



CVS: cvs.openbsd.org: src

2012-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2012/11/17 21:13:39

Modified files:
lib/libc/stdlib: strtol.c 

Log message:
Ensure that the base provided to strtol(3) is between 2 and 36 inclusive,
or the special value of 0.

ok deraadt@ otto@



CVS: cvs.openbsd.org: src

2012-12-28 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2012/12/28 07:05:39

Modified files:
sys/kern   : vfs_bio.c 

Log message:
Avoid spinning in the cleaner when there are insufficient clean pages, but
there are no buffers on the dirty queue to clean.

ok beck@



CVS: cvs.openbsd.org: src

2013-01-02 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/02 01:12:13

Modified files:
sys/ntfs   : ntfs_ihash.c ntfs_subr.c ntfs_vfsops.c 

Log message:
Remove code that is not used on OpenBSD.

ok miod@ krw@



CVS: cvs.openbsd.org: src

2013-01-03 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/03 09:06:01

Modified files:
sys/ntfs   : ntfs_vnops.c 

Log message:
Ensure that a directory link count is always 1 so that things like
fts_read() do not try to be smart and end up skipping over directories.
Additionally, ip-i_nlink will not be initialised until the ntnode has
been loaded for the file.

Makes find(1) behave predictably on a mounted NTFS file system.

ok miod@



CVS: cvs.openbsd.org: src

2013-01-03 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/03 09:13:17

Modified files:
sys/ntfs   : ntfs_subr.c 

Log message:
Correct error handling in two hard to hit ENOTDIR error cases. These would
previously leave the ntnode locked and neglect to decrement the use count.

ok krw@ miod@



CVS: cvs.openbsd.org: src

2013-01-12 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/12 21:07:49

Modified files:
sys/ntfs   : ntfs_subr.c ntfs_vfsops.c ntfs_vnops.c 

Log message:
Destatic.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-13 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/13 19:41:03

Modified files:
sys/ntfs   : ntfs_compr.c ntfs_ihash.c ntfs_subr.c 
 ntfs_vfsops.c 

Log message:
Ansify and apply style(9) to function definitions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-14 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/14 02:44:57

Modified files:
sys/ntfs   : ntfs_vnops.c 

Log message:
Free the directory block buffer at the completion of a readdir,
significantly reducing NTFS kernel memory usage. Without this the buffer
is not usually freed until the vnode is reclaimed.

Tested by Sebastian Neuper.

ok beck@ krw@



CVS: cvs.openbsd.org: src

2013-01-14 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/14 02:48:24

Modified files:
sys/dev/usb: if_athn_usb.c 

Log message:
Call the correct callback on node disassociation.



CVS: cvs.openbsd.org: src

2013-01-14 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/14 02:50:31

Modified files:
sys/dev/ic : athn.c 
sys/dev/usb: if_athn_usb.c 

Log message:
Fix the sotfware.



CVS: cvs.openbsd.org: src

2013-01-14 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/14 20:47:10

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Factor out workunit initialisation code.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-14 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/14 21:03:01

Modified files:
sys/dev: softraid.c softraid_aoe.c softraid_concat.c 
 softraid_crypto.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Keep a function pointer to the per-discipline I/O interrupt handler in the
discipline data structure. To be used with an upcoming diff.



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/15 02:28:29

Modified files:
sys/dev: softraid_aoe.c softraid_concat.c 
 softraid_crypto.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Always initialise the discipline name, not just when we are doing a create.



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/15 02:51:22

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Implement a function that gets and correctly initialises a ccb for I/O,
along with a function that enqueues a ccb on a workunit.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/15 04:20:55

Modified files:
sys/ufs/mfs: mfs_vfsops.c mfs_vnops.c mfsnode.h 

Log message:
Switch mfs to bufq. This simplifies the code, gives us queue limits for
free and uses FIFO queueing (rather than the current LIFO queueing).

Tested by sthen@

ok beck@ krw@



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/15 23:29:14

Modified files:
sys/dev: softraid.c softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Factor out code used to release ccbs from a workunit.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/15 23:42:22

Modified files:
sys/dev: softraid.c softraid_aoe.c softraid_concat.c 
 softraid_crypto.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Set resid to zero if the scsi transfer completed without error.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 00:06:29

Modified files:
sys/dev: softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Add a new capability flag to identify disciplines where read failures are
not necessarily terminal (i.e. we have redundancy).

ok krw@



CVS: cvs.openbsd.org: src

2013-01-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 00:07:38

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Add a function that handles the completion of a ccb.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 02:21:50

Modified files:
sys/dev: softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Consistently call sr_scsi_done instead of scsi_done.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 19:43:50

Modified files:
sys/dev: softraid_concat.c 

Log message:
Convert softraid concat to the new ccb functions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 20:37:31

Modified files:
sys/dev: softraid_raid1.c 

Log message:
Restructure the RAID1 I/O path so that we only get a ccb once we are
certain that we need one. Also make code more consistent with other
disciplines.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/16 21:07:39

Modified files:
sys/dev: softraid_raid0.c 

Log message:
Convert softraid RAID 0 to the new ccb functions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 05:07:19

Modified files:
sys/arch/amd64/stand/cdbr: cdbr.S 
sys/arch/amd64/stand/libsa: bioscons.c 

Log message:
Clean includes.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 05:25:11

Modified files:
sys/arch/amd64/stand/biosboot: Makefile 
sys/arch/amd64/stand/boot: Makefile 
sys/arch/amd64/stand/cdboot: Makefile 
sys/arch/amd64/stand/cdbr: Makefile 
sys/arch/amd64/stand/mbr: Makefile 
sys/arch/amd64/stand/pxeboot: Makefile 

Log message:
Clean up/standardise makefiles for amd64/stand.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 05:37:44

Modified files:
sys/arch/amd64/stand: Makefile Makefile.inc 
sys/arch/amd64/stand/biosboot: Makefile 
sys/arch/amd64/stand/boot: Makefile 
sys/arch/amd64/stand/cdboot: Makefile 
sys/arch/amd64/stand/mbr: Makefile 
sys/arch/amd64/stand/pxeboot: Makefile 

Log message:
Generate assym.h where we need it, instead of reaching around into other
object directories.

Discussed with deraadt@



Re: CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
On Fri, 18 Jan 2013, Amit Kulkarni wrote:
 On Thu, Jan 17, 2013 at 6:37 AM, Joel Sing js...@cvs.openbsd.org wrote:
  CVSROOT:/cvs
  Module name:src
  Changes by: js...@cvs.openbsd.org   2013/01/17 05:37:44
 
  Modified files:
  sys/arch/amd64/stand: Makefile Makefile.inc
  sys/arch/amd64/stand/biosboot: Makefile
  sys/arch/amd64/stand/boot: Makefile
  sys/arch/amd64/stand/cdboot: Makefile
  sys/arch/amd64/stand/mbr: Makefile
  sys/arch/amd64/stand/pxeboot: Makefile
 
  Log message:
  Generate assym.h where we need it, instead of reaching around into other
  object directories.
 
  Discussed with deraadt@

 something broken after this series of commits? i get a amd64 userland
 failure due to missing assym.h in stand/mbr/mbr.S. i am compiling
 userland on MFS though.

Did you start with a completely clean /usr/obj? If not, you may need to remove 
the .depend files from your existing obj tree.
-- 

Reason is not automatic. Those who deny it cannot be conquered by it.
 Do not count on them. Leave them alone. -- Ayn Rand



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 18:19:38

Modified files:
sys/dev: softraid.c 

Log message:
Reset I/O counters when releasing ccbs.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 19:09:50

Modified files:
sys/dev: softraid_concat.c 

Log message:
Clean up and rework workunit completion for concat. Ensure that we remove
the workunit from the pending queue and restart deferred workunits, even
in error conditions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 20:45:23

Modified files:
sys/arch/i386/stand/biosboot: Makefile 
sys/arch/i386/stand/boot: Makefile 
sys/arch/i386/stand/cdboot: Makefile 
sys/arch/i386/stand/cdbr: Makefile 
sys/arch/i386/stand/mbr: Makefile 
sys/arch/i386/stand/pxeboot: Makefile 

Log message:
Clean up/standardise makefiles for i386/stand.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 21:10:16

Modified files:
sys/arch/i386/stand: Makefile Makefile.inc 
sys/arch/i386/stand/biosboot: Makefile 
sys/arch/i386/stand/boot: Makefile 
sys/arch/i386/stand/cdboot: Makefile 
sys/arch/i386/stand/mbr: Makefile 
sys/arch/i386/stand/pxeboot: Makefile 

Log message:
Generate assym.h where we need it, instead of reaching around into other
object directories.



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 22:09:21

Modified files:
sys/ntfs   : ntfs.h ntfs_inode.h ntfs_subr.c ntfs_vfsops.c 

Log message:
Constrain the amount of kernel memory used by NTFS. Keep a small cache of
loaded ntnodes and once the maximum is reached, unload the least recently
used ntnode before loading a new one. This avoids leaving large data
structures hanging around, which only get cleaned up when the vnode is
reclaimed. Additionally, the buffer cache should contain the data needed
to reload the ntnode.

ok beck@



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 22:59:28

Modified files:
sys/dev: softraid_raid1.c 

Log message:
Convert RAID1 to new ccb functions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/17 23:49:16

Modified files:
sys/dev: softraid_raid0.c 

Log message:
Clean up and rework workunit completion for RAID 0. Ensure that we remove
the workunit from the pending queue and restart deferred workunits, even
in error conditions.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/18 02:39:03

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Implement common workunit completion functions and handle the completion
via a workq callback. Also provide a discipline specific hook that allows
it to optionally handle the final part of the workunit completion.

ok krw@



CVS: cvs.openbsd.org: src

2013-01-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/18 02:56:52

Modified files:
sys/dev: softraid.c 

Log message:
Tweak workunit completion.



CVS: cvs.openbsd.org: src

2013-01-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/18 04:14:48

Modified files:
sys/dev: softraid_concat.c 

Log message:
Convert softraid concat to new workunit completion functions.



CVS: cvs.openbsd.org: src

2013-01-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/18 16:19:44

Modified files:
sys/dev: softraid.c 

Log message:
The workunit completion needs to run at IPL_BIO, at least for now.



CVS: cvs.openbsd.org: src

2013-01-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/01/18 16:22:18

Modified files:
sys/dev: softraid_crypto.c 

Log message:
Convert softraid crypto to the new ccb and workunit completion functions.



CVS: cvs.openbsd.org: src

2013-03-02 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/02 05:25:55

Modified files:
sys/dev: softraid_raid0.c softraid_concat.c 

Log message:
Unbreak softraid compilation with debug enabled.

Prompted by Dmitry Bogdan.



CVS: cvs.openbsd.org: src

2013-03-02 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/02 05:50:01

Modified files:
sys/dev: softraid_aoe.c softraid_concat.c 
 softraid_crypto.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
sr_alloc_resources() and sr_free_resources() can never be called without
a valid struct sr_discipline. Remove redundant NULL pointer checks.



CVS: cvs.openbsd.org: src

2013-03-05 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/05 03:24:00

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Track attached softraid disciplines via a queue. This prevents the need to
scan the sparse SCSI targets array and simplifies code. Disciplines are
now also shutdown in reverse attach order, making manually stacked softraid
volumes somewhat more practical.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/10 03:05:12

Modified files:
sys/dev: softraid.c softraidvar.h 

Log message:
Rename sc_dis to sc_targets, since it is an array of targets that also
happen to be softraid disciplines.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-25 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/25 10:01:49

Modified files:
sys/dev: softraid.c softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Factor out the code that is used to recreate work units - one copy of the
code is sufficient.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-26 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/26 09:47:01

Modified files:
sys/arch/amd64/amd64: aes_intel.S aesni.c 

Log message:
Add AES-XTS support to the aesni crypto driver. This allows softraid(4)
to benefit from the AES-NI instructions found on newer Intel CPUs.

ok mikeb@



CVS: cvs.openbsd.org: src

2013-03-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/27 08:30:11

Modified files:
sys/dev: softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Rewrite the work unit handling code in the RAID 1/4/5/6 interrupt handlers.
This simplifies the code and will allow for easier conversion to the workq
based work unit completion routines. It also ensures that work units are
always removed from the pending queue and that colliders are started, even
in the event of an I/O failure.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/29 05:46:45

Modified files:
sys/dev: softraid.c softraid_crypto.c softraid_raid1.c 
 softraid_raid6.c softraid_raidp.c 

Log message:
sd_wu_pending is only decremented when scsi_done() or scsi_io_put() are
called. As a result, factor out the the sd_sync check/wakeup code and move
it to after the scsi_done() call in sr_scsi_done(). Perform the same
sd_sync check/wakeup after scsi_io_put() calls (including the addition of
some that were previously missed).

ok krw@



CVS: cvs.openbsd.org: src

2013-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/29 06:00:59

Modified files:
sys/dev: softraid.c softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Decouple wakeups on work unit completion from the type of I/O being
performed.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/29 07:05:47

Modified files:
sys/dev: softraid_raid6.c softraid_raidp.c 

Log message:
Convert RAID 4/5/6 to new ccb completion code.



CVS: cvs.openbsd.org: src

2013-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/29 09:26:45

Modified files:
sys/dev: softraid_raid1.c softraid_raidp.c 
 softraid_raid6.c 

Log message:
Properly release ccbs when restarting a work unit.



CVS: cvs.openbsd.org: src

2013-03-29 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/29 20:02:14

Modified files:
sys/dev: softraid.c softraid_concat.c softraid_crypto.c 
 softraid_raid0.c softraidvar.h 

Log message:
Provide a default discipline interrupt handling function and migrate all of
the disciplines that now have the same interrupt code.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-30 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/30 08:41:37

Modified files:
sys/dev: softraidvar.h softraid.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Provide wrappers for scsi_io_get() and scsi_io_put(), that also include
the sd_sync check/wakeup. Remove some unnecessary NULL checks whilst here.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 04:41:16

Modified files:
sys/dev: softraid_raid0.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Pull the initialisation of runtime values out into a separate init
function, rather than having it spread across create/assemble/alloc.
Also handle strip size errors appropriately, rather than failing silently.

ok krw@



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 05:12:06

Modified files:
sys/dev: softraid.c softraid_concat.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Provide default resource allocation and free functions. Convert all
disciplines except for AOE and CRYPTO, which require custom handlers.



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 05:30:59

Modified files:
sys/dev: softraid.c 

Log message:
Fix compilation with debug.



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 05:37:40

Modified files:
sys/dev: softraid.c softraid_aoe.c softraid_crypto.c 
 softraidvar.h 

Log message:
The return value of sd_free_resources() is never checked and all of the
implementations only ever returned zero. Change the return value from
int to void instead of pretending it might mean something.



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 07:31:44

Modified files:
sys/dev: softraid_concat.c softraid_raid1.c 

Log message:
More runtime value initialisation functions.



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 09:44:53

Modified files:
sys/dev: softraid_aoe.c softraid_concat.c 
 softraid_crypto.c softraid_raid0.c 
 softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c 

Log message:
Use consistent error handling when validating the number of chunks
provided.



CVS: cvs.openbsd.org: src

2013-03-31 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/03/31 09:46:11

Modified files:
sys/dev: softraid.c 

Log message:
Use the discipline name instead of the product string when reporting the
attachment.



CVS: cvs.openbsd.org: src

2013-04-01 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/01 09:17:32

Modified files:
sys/dev: softraid_crypto.c 

Log message:
Rename sr_crypto_rw2() to sr_crypto_dev_rw(), which actually reflects the
fact that it is used to generate I/O to the underlying device.

Input from/ok krw@



CVS: cvs.openbsd.org: src

2013-04-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/15 09:32:19

Modified files:
sys/isofs/cd9660: cd9660_vfsops.c 
sys/isofs/udf  : udf_vfsops.c 
sys/kern   : vfs_subr.c syscalls.master vfs_syscalls.c 
 syscalls.conf 
sys/miscfs/procfs: procfs_vfsops.c 
sys/msdosfs: msdosfs_vfsops.c 
sys/nfs: nfs_vfsops.c 
sys/ntfs   : ntfs_vfsops.c 
sys/sys: mount.h 
sys/ufs/ext2fs : ext2fs_vfsops.c 
sys/ufs/ffs: ffs_vfsops.c 
sys/ufs/mfs: mfs_vfsops.c 
sys/conf   : GENERIC 

Log message:
Add an f_mntfromspec member to struct statfs, which specifies the name of
the special provided when the mount was requested. This may be the same as
the special that was actually used for the mount (e.g. in the case of a
device node) or it may be different (e.g. in the case of a DUID).

Whilst here, change f_ctime to a 64 bit type and remove the pointless
f_spare members.

Compatibility goo courtesy of guenther@

ok krw@ millert@



CVS: cvs.openbsd.org: src

2013-04-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/15 09:37:10

Modified files:
sys/kern   : init_sysent.c 
sys/sys: syscall.h syscallargs.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2013-04-15 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/15 09:50:42

Modified files:
lib/libc   : shlib_version 

Log message:
Crank due to statfs changes and other inbound commits.



CVS: cvs.openbsd.org: src

2013-04-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/21 05:05:14

Modified files:
sbin/mount : mount.c 

Log message:
When mount(1) is run in verbose mode, display f_mntfromspec if it differs
from f_mntfromname.

ok krw@



CVS: cvs.openbsd.org: src

2013-04-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/21 05:56:09

Modified files:
sbin/umount: Makefile umount.c 

Log message:
Check both f_mntfromname and f_mntfromspec when looking for a mounted
filesystem. This makes umount via DUID possible.

ok krw@



CVS: cvs.openbsd.org: src

2013-04-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/21 07:00:22

Modified files:
sys/dev: softraidvar.h softraid.c softraid_raid1.c 

Log message:
Convert RAID1 to the new work unit completion functions and generic
interrupt handler. Disciplines such as RAID1/4/5/6 need a way to intercept
I/O when the work unit is complete, but before the SCSI xfer is complete.
This is provided via a sd_scsi_wu_done hook, which enables work units to be
restarted or otherwise modified before the SCSI xfer completion occurs.

ok krw@



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 06:28:51

Modified files:
sys/arch/amd64/stand/boot: Makefile 
sys/arch/i386/stand/boot: Makefile 

Log message:
Remove softraid boot support from fdboot (again).



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 06:36:49

Removed files:
sys/arch/amd64/stand/etc: Makefile 
sys/arch/i386/stand/etc: Makefile 

Log message:
tedu unused makefiles.



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 06:49:52

Modified files:
sys/dev: softraid.c softraid_raid6.c softraid_raidp.c 
 softraidvar.h 

Log message:
Rename ccb_flag to ccb_flags.



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 07:13:11

Modified files:
sys/dev: softraid_raid6.c softraid_raidp.c 

Log message:
Do not pass SR_CCBF_FREEBUF unless we are passing an already allocated
buffer that we want freed; set SR_CCBF_FREEBUF when a buffer is allocated
by the addio function.



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 07:35:08

Modified files:
sys/dev: softraid_raidp.c 

Log message:
Convert RAID4/5 to new ccb handling.



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 07:36:19

Modified files:
sys/dev: softraid_raid6.c 

Log message:
Convert RAID6 to new ccb handling.



CVS: cvs.openbsd.org: src

2013-04-23 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/23 10:41:13

Modified files:
sys/arch/amd64/stand/boot: Makefile 
sys/arch/amd64/stand/cdboot: Makefile 
sys/arch/amd64/stand/pxeboot: Makefile 
sys/arch/i386/stand/boot: Makefile 
sys/arch/i386/stand/cdboot: Makefile 
sys/arch/i386/stand/pxeboot: Makefile 

Log message:
Include udivdi3/umoddi3 when compiling the amd64/i386 boot blocks - they
are needed for the upcoming type changes.

ok deraadt@



CVS: cvs.openbsd.org: src

2013-04-26 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/26 09:45:35

Modified files:
sys/dev: softraid.c softraid_raid6.c softraid_raidp.c 
 softraidvar.h 

Log message:
Add a SR_WUF_DISCIPLINE flag that identifies work units that have resulted
from discipline specific I/O. Such work units are not associated with a
SCSI xfer and are returned via sr_wu_put() on completion.



CVS: cvs.openbsd.org: src

2013-04-26 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/26 10:06:05

Modified files:
sys/dev: softraid_raidp.c 

Log message:
Convert RAID4/5 to new work unit completion routines.



CVS: cvs.openbsd.org: src

2013-04-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/04/27 08:06:10

Modified files:
sys/dev: softraid_raid6.c 

Log message:
Convert RAID 6 to new work unit completion routines.



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 08:25:24

Modified files:
sys/dev: softraid.c softraid_raid1.c softraid_raid6.c 
 softraid_raidp.c softraidvar.h 

Log message:
Use a state to indicate that a work unit should only be constructed and not
scheduled, rather than trying to imply this from the rebuild flag.



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 08:30:01

Modified files:
sys/dev: softraid.c softraid_raid6.c softraid_raidp.c 

Log message:
Fix missing work unit state initialisations.



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 08:36:10

Modified files:
sys/dev: softraid.c 

Log message:
Make the sr_raid_startwu() function handle deferred work units, instead of
the caller having to handle the state changes.



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 09:01:54

Modified files:
sys/dev: softraid.c softraid_concat.c softraid_crypto.c 
 softraid_raid0.c softraid_raid1.c 
 softraid_raid6.c softraid_raidp.c softraidvar.h 

Log message:
Provide a function that handles the scheduling of work units. This
simplifies the discipline code, avoids code duplication and moves the
scheduling logic into a single location.

ok krw@



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 09:15:43

Modified files:
sys/dev: softraid.c 

Log message:
sr_raid_startwu() is no longer called from interrupt context, hence does
not need to invoke a workq-based callback.



CVS: cvs.openbsd.org: src

2013-05-21 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/05/21 09:21:16

Modified files:
sys/dev: softraid.c 

Log message:
Ensure that sc_lock is held when calling sr_meta_native_bootprobe() - the
softraid status functions will complain otherwise.

Found the hard way by ajacoutot@



CVS: cvs.openbsd.org: src

2013-07-01 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/07/01 05:33:21

Modified files:
sys/dev: softraid.c 

Log message:
When an I/O error occurs on a softraid chunk, only take it offline if the
discipline supports redundancy. In the non-redundant case, there is little
to gain my failing the chunk, in fact it just makes any form of data
recovery significantly harder.

ok krw@ todd@



Re: CVS: cvs.openbsd.org: src

2013-07-03 Thread Joel Sing
On Mon, 1 Jul 2013, Henri Kemppainen wrote:
  From owner-source-changes+M72344=duclare=guu...@openbsd.org Mon Jul  1
  14:33:54 2013 Delivered-To: ducl...@guu.fi
  From: Joel Sing js...@cvs.openbsd.org
  To: source-chan...@cvs.openbsd.org
  Subject: CVS: cvs.openbsd.org: src
  Sender: owner-source-chan...@openbsd.org
 
  CVSROOT:/cvs
  Module name:src
  Changes by: js...@cvs.openbsd.org   2013/07/01 05:33:21
 
  Modified files:
  sys/dev: softraid.c
 
  Log message:
  When an I/O error occurs on a softraid chunk, only take it offline if the
  discipline supports redundancy. In the non-redundant case, there is
  little to gain my failing the chunk, in fact it just makes any form of
  data recovery significantly harder.
 
  ok krw@ todd@

 Would it make sense to behave like this when the discipline supports
 redundancy, but redundancy isn't actually available?  I had this happen to
 me when one mirrored drive went offline, and during rebuild the remaining
 good drive had a transient hiccup, taking the whole thing down.

The short answer is yes. The longer answer is that this is a more indepth 
change, since it becomes discipline specific. If I had a three chunk RAID 1 
volume it would not reach the non-redundant point until I lost two of the 
three chunks, whereas for a RAID 5 volume this happens after a single chunk 
is lost. It is, however, on my TODO list.
-- 

Action without study is fatal. Study without action is futile.
-- Mary Ritter Beard



CVS: cvs.openbsd.org: src

2013-07-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/07/16 05:32:05

Modified files:
usr.sbin/httpd/src/modules/ssl: mod_ssl.c mod_ssl.h 
ssl_engine_config.c 
ssl_engine_init.c 
ssl_engine_kernel.c 

Log message:
Define HonorCipherOrder as a FLAG (rather than as a TAKE1), so that it
works correctly as a boolean on/off flag. While here, rename the variable
so that it is consistent with existing naming scheme.

ok otto@ djm@



CVS: cvs.openbsd.org: src

2013-07-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/07/16 07:02:16

Modified files:
usr.sbin/httpd/conf: httpd.conf httpd.conf-dist 
usr.sbin/httpd/src/modules/ssl: mod_ssl.c mod_ssl.h 
ssl_engine_config.c 
ssl_engine_init.c 

Log message:
Enable ECDHE support in httpd via a SSLECDHCurve option. This specifies the
named curve to use when generating ephemeral EC keys for an ECDHE-based
cipher suite, or can be set to `none' to disable. The default is to use
a prime256v1 curve.

yay^Wok djm@



CVS: cvs.openbsd.org: src

2013-07-16 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/07/16 07:22:55

Modified files:
usr.sbin/httpd/src/modules/ssl: mod_ssl.c mod_ssl.h 
ssl_engine_config.c 
ssl_engine_init.c 

Log message:
Disable SSL compression in order to mitigate CRIME attacks. Add
an SSLCompression option so that it can be turned back on, however on
this is currently a no-op due to the compile options for libssl.

Requested by and ok djm@



CVS: cvs.openbsd.org: src

2013-07-18 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/07/18 06:39:18

Modified files:
usr.sbin/httpd/htdocs/manual/mod/mod_ssl: ssl_reference.html 

Log message:
Document SSLECDHCurve.

ok jmc@



CVS: cvs.openbsd.org: src

2013-08-25 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/08/25 08:26:56

Modified files:
sys/crypto : cryptosoft.c xform.c xform.h 

Log message:
Allocate and deallocate memory for encryption contexts within cryptosoft,
rather than requiring each algorithm to provide their own memory handling.
This matches the interface already provided by cryptosoft for
authentication algorithms and removes the need for zerokey functions.

ok mikeb@



CVS: cvs.openbsd.org: src

2013-10-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/10/06 10:59:35

Modified files:
regress/sys/crypto/aesxts: Makefile aes_xts.c 

Log message:
Rework the AES XTS regress so that we compile and test the sys/crypto code
directly, rather than trying to use the crypto dev, which is disabled by
default.

ok djm@



CVS: cvs.openbsd.org: src

2013-10-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/10/06 23:28:47

Modified files:
regress/sys/kern/main-thread-exited: Makefile 

Log message:
Prefer -lpthread over -pthread.



CVS: cvs.openbsd.org: src

2013-10-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/10/07 09:48:24

src/regress/sys/kern/sigprof

Update of /cvs/src/regress/sys/kern/sigprof
In directory cvs.openbsd.org:/tmp/cvs-serv1160/sigprof

Log Message:
Directory /cvs/src/regress/sys/kern/sigprof added to the repository



CVS: cvs.openbsd.org: src

2013-10-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/10/07 09:52:18

Modified files:
regress/sys/kern: Makefile 
Added files:
regress/sys/kern/sigprof: Makefile sigprof.c 

Log message:
Add a regression test that ensures profiling signals are delivered to the
thread whose execution consumed the CPU time and resulted in the profiling
timer expiring. This test currently fails and will be fixed shortly.

Feedback from guenther@



CVS: cvs.openbsd.org: src

2013-11-08 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/11/08 08:21:20

Modified files:
usr.bin/quota  : quota.c 

Log message:
Make quota(1) work with DUIDs.

ok krw@ millert@



CVS: cvs.openbsd.org: src

2013-11-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/11/24 08:44:26

Modified files:
sys/uvm: uvm_swap.c 

Log message:
Replace the swapdev CIRCLEQ with a TAILQ and replace the manually rolled
list traversals with LIST_FOREACH.

ok beck@ krw@



CVS: cvs.openbsd.org: src

2013-11-24 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/11/24 09:02:30

Modified files:
sys/ntfs   : ntfs.h ntfs_compr.c ntfs_conv.c ntfs_subr.c 
 ntfs_vfsops.c ntfs_vnops.c 

Log message:
Clean up the NTFS debug code - use uppercase names for the debug macros,
especially since 'dprintf' now has another meaning (at least outside of
the kernel). Tweak the macro syntax so we can avoid having to double
bracket all invocations. Also apply a good dose of style(9).

ok krw@



CVS: cvs.openbsd.org: src

2013-11-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/11/27 08:48:43

Modified files:
sys/kern   : vfs_cache.c 

Log message:
Assert that we never have destinations cached for a non-VDIR vnode.

ok beck@



CVS: cvs.openbsd.org: src

2013-11-27 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2013/11/27 08:50:52

Modified files:
sys/kern   : vfs_subr.c 

Log message:
Defer the v_type initialisation until after the vnode has been purged from
the namecache. Changing the v_type between cache_enter() and cache_purge()
results in bad things happening.

ok beck@



  1   2   3   4   5   6   7   8   9   10   >