[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1442518 - in /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs: low_level.c low_level.h

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Wed, 6 Feb 2013 10:38:32 +0100

On Tue, Feb 5, 2013 at 12:41 PM, Bert Huijben <bert_at_qqmail.nl> wrote:

>
>
> > -----Original Message-----
> > From: stefan2_at_apache.org [mailto:stefan2_at_apache.org]
> > Sent: dinsdag 5 februari 2013 10:37
> > To: commits_at_subversion.apache.org
> > Subject: svn commit: r1442518 - in /subversion/branches/fsfs-
> > format7/subversion/libsvn_fs_fs: low_level.c low_level.h
> >
> > Author: stefan2
> > Date: Tue Feb 5 09:37:02 2013
> > New Revision: 1442518
> >
> > URL: http://svn.apache.org/viewvc?rev=1442518&view=rev
> > Log:
> > On the fsfs-format7 branch: extend the representation header
> > data structure to contain the offset between representation start
> > and actual begin of the plain or deltified data (= header size).
>
> > Modified: subversion/branches/fsfs-
> > format7/subversion/libsvn_fs_fs/low_level.h
> > URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-
> > format7/subversion/libsvn_fs_fs/low_level.h?rev=1442518&r1=1442517&r2
> > =1442518&view=diff
> > ==========================================================
> > ====================
> > --- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.h
> > (original)
> > +++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/low_level.h
> > Tue Feb 5 09:37:02 2013
> > @@ -113,6 +113,11 @@ typedef struct svn_fs_fs__rep_header_t
> > /* if this rep is a delta against some other rep, this is the
> (deltified)
> > * size of that base rep. Should be 0 if there is no base rep. */
> > svn_filesize_t base_length;
> > +
> > + /* length of the textual representation of the header in the rep or
> pack
> > + * file, including EOL. Only valid after reading it from disk.
> > + * Should be 0 otherwise. */
> > + apr_size_t header_size;
> > } svn_fs_fs__rep_header_t;
>
> Are you sure you want an architecture dependent size in this struct?
>

Yes, at least for now. It is a string length
and only visible within the respective process.

I would expect an explicit 32 or 64 bit int here.
>

The actual value range is 0 .. ~100, so the type
can be changed to whatever fits best with the
usages of this value.

Once the initial work on fsfs-format7 is done,
I will go over to 32 bit windows to detect sign
and size mismatches in the new code. Right
now, I'm developing with all values being 64
bits anyway.

-- Stefan^2.

-- 
Certified & Supported Apache Subversion Downloads:
*
http://www.wandisco.com/subversion/download
*
Received on 2013-02-06 10:39:09 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.