paramiko getting offset 0

Robert Collins robertc at robertcollins.net
Fri Aug 3 02:39:55 BST 2007


On Wed, 2007-08-01 at 09:34 -0500, John Arbash Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Robert Collins wrote:
> > On Tue, 2007-07-31 at 17:37 -0500, John Arbash Meinel wrote:
> >> I don't think we should specifically do that, but I know that at the
> >> moment, we
> >> use 'put_non_atomic' if we know that the file doesn't exist, and only
> >> use
> >> 'append' if we have already read it.
> > 
> > for kndx's perhaps, not so for knits IIRC.
> 
> Well, I believe in both cases we do not create the file until we have data for
> it. And at that time we know whether we will be appending to existing data, or
> starting a new file. (I believe there may be an assumption that if there is not
> .kndx there is no .knit, which isn't 100% true, but as we cannot extract any
> information from it, it seems like an ok assumption).

The knit is created at the first write, whereas the kndx when we decide
we want it. The reason we differentiate is to set permissions on
creation.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070803/e5615a0e/attachment.pgp 


More information about the bazaar mailing list