lkml.org 
[lkml]   [1997]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: undelete?
Date
From
Miquel van Smoorenburg wrote:
> I've though about this a couple of times, and I think it's not that
> hard. You just divide each file into chunks of (say) 4Kb. You then
> compress that 4Kb block. If it becomes 1Kb, great, you put it in the
> first block of 4, and the other 3 blocks are empty. Since empty
> blocks do not take up disk space (holes), that's no problem.


The problem is that you don't get a good compression ratio if your
filesize (block size in this case) is too small. And you're going to
waste lots of blocks due to just a few bytes being used. That's not
something you like when you're designing stuff to conserve space...

Roger.


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