Changes needed in buffercache(9) for WAPBL

2015-11-25 Thread Walter Neto
Changes needed in buffercache(9) for WAPBL - All changes needed in vfs_bio.c - Adding WAPBL headers - Introducing buf_adjcnt to inform wapbl when a buffer has changed its size (get it from Bitrig) Hi guys, with this diff I'm trying to introduce WAPBL to OpenBSD a little more splitted than befor

Re: Changes needed in buffercache(9) for WAPBL

2015-11-25 Thread Walter Neto
to start separating this out myself and > > theo distracted me :) > > > > I'll take a look at this right away. > > > > > > On Wed, Nov 25, 2015 at 8:27 AM, Walter Neto wrote: > >> Changes needed in buffercache(9) for WAPBL > >> > &g

WAPBL: Introducing buf_adjcnt()

2015-11-26 Thread Walter Neto
Introducing buf_adjcnt() from Bitrig. It is needed to notify WAPBL that the buffer has size changes. -- Walter Neto diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 9bf9b36..459b4fa 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1206,6 +1206,14 @@ bcstats_print

Re: WAPBL: Introducing buf_adjcnt()

2015-11-26 Thread Walter Neto
Sorry guys, my bad. It will not compile, there is a warning. Here is the correct diff. -- Walter Neto diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 2ce876a..63bd7ca 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1206,6 +1206,13 @@ bcstats_print( } #endif +void

Re: WAPBL: Introducing buf_adjcnt()

2015-11-26 Thread Walter Neto
On Thu, Nov 26, 2015 at 11:01:58AM -0700, Bob Beck wrote: > Duhh.. my bad walter. it's early.. as of yet undercaffinated. > No problem buddy!! :)

WAPBL: Adding the FFS capability to alloc files contiguously

2015-11-26 Thread Walter Neto
This diff adds B_CONTIG and B_METAONLY low-level allocation flags, and the code to FFS allocate contiguously files. This will be used to alloc WAPBL log file. -- Walter Neto diff --git a/sys/sys/buf.h b/sys/sys/buf.h index c47f3f9..fd38c28 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h

WAPBL: Introducing B_LOCKED buffer flag

2015-11-26 Thread Walter Neto
Introducing B_LOCKED buffer flag With this flag we can protect buffers that will be used by WAPBL while doing the log of transactions. -- Walter Neto diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 63bd7ca..aa0575f 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -743,6

Re: WAPBL: Adding the FFS capability to alloc files contiguously

2015-11-27 Thread Walter Neto
After mpi@ review -- Walter Neto diff --git a/sys/sys/buf.h b/sys/sys/buf.h index c47f3f9..fd38c28 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -254,6 +254,8 @@ struct cluster_save { /* Flags to low-level allocation routines. */ #define B_CLRBUF 0x01/* Request allocated buffer

Re: WAPBL: Introducing B_LOCKED buffer flag

2015-11-27 Thread Walter Neto
After mpi@ review -- Walter Neto diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 63bd7ca..29ebc81 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -743,6 +743,12 @@ brelse(struct buf *bp) * Determine which queue the buffer should be on, then put it there

Re: WAPBL: Adding the FFS capability to alloc files contiguously

2015-12-02 Thread Walter Neto
On Sat, Nov 28, 2015 at 03:49:21PM -0700, Bob Beck wrote: > On Fri, Nov 27, 2015 at 02:50:57PM -0200, Walter Neto wrote: > > You have a number of places here where you introduce a line of 8 spaces > after your #endif - please clean up the trailing spaces, they shouldn't b

Re: WAPBL: Adding the FFS capability to alloc files contiguously

2015-12-02 Thread Walter Neto
Fixed diff Ok beck@ and tedu@ -- Walter Neto diff --git a/sys/sys/buf.h b/sys/sys/buf.h index c47f3f9..fd38c28 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -254,6 +254,8 @@ struct cluster_save { /* Flags to low-level allocation routines. */ #define B_CLRBUF 0x01/* Request

Journaled Soft Updates

2015-09-01 Thread Walter Neto
, but I am fully focused on making it work, and I hope to receive help from expert developers. Walter Neto Index: sys/sys/mount.h === RCS file: /Volumes/CSP/cvs/src/sys/sys/mount.h,v retrieving revision 1.121 diff -u -u -r1.121

Re: Journaled Soft Updates

2015-09-02 Thread Walter Neto
> > You're welcome to try, but I anticipate heartbraak ;) > > If you're going to try I'd rather see a diff you got *working* rather > than just the structure definitions for > something that might never be brought to fruition. > > > On Tue, Sep 1, 2015 at 3:1

WAPBL implementation

2015-10-23 Thread Walter Neto
Like recommended from other developers I started developing WAPBL support for OpenBSD. Looking at NetBSD and Bitrig I mage a first funcional patch. Index: sbin/mount/mntopts.h === RCS file: /Volumes/CSP/cvs/src/sbin/mount/mntopts.h,v

Re: WAPBL implementation

2015-10-28 Thread Walter Neto
Adding WAPBL support for dumpfs(8) next diffs: - tunefs(8) showing log information and setting log size - fsck_ffs(8) WAPBL support ok jasper@ Index: sbin/dumpfs/dumpfs.c === RCS file: /Volumes/CSP/cvs/src/sbin/dumpfs/dumpfs.c,v re

Re: WAPBL implementation

2015-10-28 Thread Walter Neto
On Wed, Oct 28, 2015 at 12:50:24PM +0100, Jasper Lievisse Adriaanse wrote: > On Wed, Oct 28, 2015 at 09:06:54AM -0200, Walter Neto wrote: > > Adding WAPBL support for dumpfs(8) > > > > next diffs: > > - tunefs(8) showing log information and setting log size >

Journal Implementation

2015-06-02 Thread Walter Neto
Hy.. I want to help OpenBSD developing a journaling system for UFS. Someone can give me a tip? Thanks.

Re: Journal Implementation

2015-06-02 Thread Walter Neto
ystem for UFS*... You can rest assured > they're already aware that OpenBSD doesn't support journaling. > > | On Tue, Jun 2, 2015, 2:31 PM Walter Neto wrote: > | > Hy.. > | > > | > I want to help OpenBSD developing a journaling system for UFS. > | > >

Re: Journal Implementation

2015-06-02 Thread Walter Neto
Thanks guys.. I will read all the tips, and start to code.. Once I have a diff I share.. > On Jun 2, 2015, at 9:06 PM, Walter Neto wrote: > > >> On Jun 2, 2015, at 5:03 PM, Paul de Weerd wrote: >> >> On Tue, Jun 02, 2015 at 07:33:58PM +, Stefan wrote: >

Re: Journal Implementation

2015-06-03 Thread Walter Neto
Analising the tips, I decided to implement one given by Paul, It is less dramatic, and solves the problem. ok? > On Jun 3, 2015, at 2:37 AM, Ville Valkonen wrote: > > Hi, > > On Jun 3, 2015 3:17 AM, "Walter Neto" wrote: > > > > Thanks guys.. > >

Re: Journal Implementation

2015-06-03 Thread Walter Neto
> On Jun 3, 2015, at 12:52 PM, Walter Neto wrote: > > Analising the tips, I decided to implement one given by Paul, It is less > dramatic, and solves the problem. Analysing* sorry the english.. I’ll improve! > > ok? > >> On Jun 3, 2015, at 2:37 AM, Ville