On 09 May 2006, at 18:09, Nicolas Williams wrote:

On Tue, May 09, 2006 at 05:37:07PM +0200, Joerg Schilling wrote:
Wout Mertens <[EMAIL PROTECTED]> wrote:

Yes, but WOFS is a write-once filesystem. ZFS is read-write. What
happens if you delete the file referenced by the inode-softlinks?

WOFS lives on a Write once medium, WOFS itself is not write once.

I would need to check my papers.... there is a solution.

If you unlink the original name/inode entry you can mark it as deleted
without actually deleting it, thus leaving extant links to it live and
fresh; you only have to chase down the other links when the original's
directory is removed, though you can do the same to directories,
deferring actual removal to later (at the cost of wasting disk space and
complicating accounting).  And/or you can always lazily update back
references, if you throw in a log, so that you can find those when they
are needed.

Note that this assymetric hard-linking approach makes original links
fast and others slow; this will surely bother someone :)

How about, as soon as a file is hardlinked, you move it to a special invisible directory, and make both the target and the source be your special inode-symlink? That solves the directory deletion and makes the access symmetrical...

Wout.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to