[sugar] providing files to activities

Tomeu Vizoso tomeu
Wed Nov 7 12:13:51 EST 2007


On Wed, 2007-11-07 at 11:59 -0500, Albert Cahalan wrote:
> I'm hearing that files will be provided to activites as hard links.
> 
> This is not good. It prevents atomic update via rename.
> Far better is to provide directories, one per file, so that
> updates can be made atomic. While you can't hard link a directory,
> you can bind mount it. This is essentially the same, with the
> extra benefit of not wearing out nand storage.
> 
> The command line version:  mount --bind srcdir dstdir
> 
> You can even make the mount read-only, avoiding any need to
> mess with file permissions to block writes.

Just read in http://utcc.utoronto.ca/~cks/space/blog/linux/BindMounts
that this is not possible. Is that guy wrong?

> Handling groups of files together as a single unit also becomes
> possible; it happens that I actually need this. (think OSX forks)

How relate bind-mounts to files with resource forks?

Tomeu




More information about the Sugar-devel mailing list