<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>In an application that needs to read
files and append to/change existing files in MogileFS, what is
the recommended strategy?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The client API only permits creation of a new file
and writing to it from the start. Reading the whole file into memory is not
viable and fetching the whole file back to local disk storage, editing
it, then sending the whole file back to MogileFS is not
elegant.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If there is no existing solution, is it viable to
extend the TIEHANDLE interface to support seeks and writes? I'd be comfortable
with implementing the needed elements with the appropriate WebDAV requests (with
byte ranges) going to the backends, but I don't know it the architecture of
MogileFS would support marking the files replicas out of date and bringing them
back into consistency.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any pointers would be
appretiated.</FONT></DIV><FONT face=Arial size=2>
<DIV><BR>Regards,</DIV>
<DIV> </DIV>
<DIV>Dan</FONT></DIV></BODY></HTML>