In order to ensure that the space for the file is available both in the
volume quota and the backing partition, the client should set the
complete file size before writing the data.   As a result, other clients
will not see the file grow.

In addition, when using "write on close" it will be most efficient if
all of the data to be stored be written using a single RPC.  If a single
StoreData RPC is issued, then the rx slow start penalty is only paid
once and only one callback notification must be sent to all interested
third parties.

One of the reasons that the Windows client does not implement "write on
close" is to provide more accurate feedback to the application that is
writing to the file.

I do not believe there is anything that another client should be able to
do to monitor the progress of outstanding RPCs against a particular FileId.

I will note that Microsoft Office applications provide notifications of
file status by using mandatory byte range locks as a signalling
mechanism and meta data stored to the file (or as extended attributes)
that can be read by third parties to determine what is being done to the
file and by whom.

Jeffrey Altman


On 12/8/2013 8:23 PM, Troy Benjegerdes wrote:
> So one thing I've run into quite frequently is that I write a file
> on some machine on a slow DSL link into a sudirectory of my home directory,
> and then I'll do something like 'ls -lha' in that same directory, sorta 
> hoping to get a useful file size report maybe telling me the progress of
> how much data actually got to the server.
> 
> What happens is the 'ls' hangs and I can't even ctrl-C it or put it
> in the background.
> 
> It seems that 'rxdebug localhost 7001' on the machine I wrote the file
> gives me some good information, but that's not exactly a tool most users
> would use.
> 
> I imagine something like the dropbox or google drive interfaces that show
> an 'upload progress' indicator would be nice, but what's the right way to
> handle this, and how would I actually get this information? 
> 
> I'd want to see it in the GUI on my laptop/desktop, and in the tmux/screen
> status bar on machines I'm logged into a remote server on.
> 
> Any ideas?
> _______________________________________________
> OpenAFS-devel mailing list
> [email protected]
> https://lists.openafs.org/mailman/listinfo/openafs-devel
> 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to