Marcus Brinkmann <[EMAIL PROTECTED]> writes:

> 1. Storing the beginning of the file on disk:
> This is a workable solution as long as you don't have zero bytes file, which
> don't have a unique beginning of the file (for example, start_cluster for
> all FAT zero files is cluster 0). So, this violates the uniqueness of the
> cache_id (this problem is partly reparabel by following ideas similar to
> suggestion three below).

I had always imagined doing this one for FAT-like filesystems, but it
doesn't work (as you point out) for zero length files.

> 2. Storing the location of the directory entry:
> This is not constant under rename operations, thus it fails to fulfill
> requirement two.
> We could reflect this by changing the node cache, but we can't change the
> filehandle cache_id's in diskfs, so diskfs will disagree with us.

This is not a serious problem.  If you choose this implementation, all
you have to do is purge the cache of the changing id.  

It is also reasonable to propose simple changes to libdiskfs that make
things easier.

Reply via email to