lkml.org 
[lkml]   [2001]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: COW fs (Re: Editing-in-place of a large file)
Hi!

> - Keep a hash of the contents of blocks in the buffer-cache.
> - The kernel compares the hash of each block write to all blocks already
> in the buffer-cache.
> - If a duplicate is found, the kernel generates a COW link instead of
> writing the block to disk.
>
> Obviously this would involve large amounts of CPU. I think a simple

Why? If you hashed the hashes, you could do it very fast.
Pavel
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.390 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site