[tahoe-dev] Progress on SFTP for v1.7

Francois Deppierraz francois at ctrlaltdel.ch
Thu May 13 04:56:52 PDT 2010


On 05/13/2010 06:01 AM, David-Sarah Hopwood wrote:

> There are two implementations of an SFTP file handle: ShortReadOnlySFTPFile
> and GeneralSFTPFile. The former is used for short immutable files opened
> for reading. The latter is used in all other cases. The threshold for
> "short" is currently "up to 1000 bytes", although it will be raised later
> for efficiency.
>
> So, to test the code thoroughly, it's necessary to use files in all of
> the following categories:
>
>   - LIT files (up to 65 bytes I think; immutable)
>   - small CHK files (66 to 1000 bytes inclusive; immutable)
>   - large CHK files (more than 1000 bytes; immutable)
>   - SSK files (size doesn't matter; mutable)

Is it possible to *create* new SSK files through the SFTP interface?

I was thinking of how little swap or lock file created by editors like 
vim or OpenOffice were going to be handled by the SFTP frontend.

Vim, for instance, creates a swap file named '.something.swp' in the 
current directory. This swap file records all the modifications made to 
the original file to support undo operations. If, each time the swap 
file gets written, a new immutable file is created, then we'll probably 
get into trouble.

OpenOffice looks a bit more Tahoe friendly because it only creates a 
single lock file which doesn't seem to change.

$ cat ".~lock.puppetmaster-git-submodules.odg#"; echo
Francois Deppierraz,francois,korn,13.05.2010 
13:48,file:///home/francois/.openoffice.org/3;
$

François


More information about the tahoe-dev mailing list