← Back to team overview

ubuntuone-users team mailing list archive

Re: file renamed


Hi Marco,

On Thu, 6 Aug 2009 09:02:55 +0200
Marco Giorgetti <marco@xxxxxxxxxxxxxxxxxx> wrote:

> I dont know tech details on how sync demon works (both ubuntu-one and
> dropbox) to calculate file timestamp, but my sensation is that demon
> is action-aware. I mean:

Yes, the syncdaemon uses inotify to react on FS changes.

> I create a file (the zip archive) in which byte are concatenated until
> processing is finished.
> The question is:
> Sync demon does not await until file is complete? And: Is it possible
> that transfer protocol syncs pieace of file that are subject to more
> changes after file il complete?
Syncdaemon will receive a CLOSE_WRITE event from inotify, when the file
is closed, and after that the upload will start (this is a
simplification, the internals are a bit more complex)


Guillermo Gonzalez

Attachment: signature.asc
Description: PGP signature