On Mon, Jan 10, 2005 at 09:44:07AM -0700, Stuart Jansen wrote:
> On Sat, 2005-01-08 at 21:09 -0800, Bryan Murdock wrote:
> > I guess if dd was smart enough to not copy zeros this would speed
> > things up, but I never new it was that smart.  But then, how long does
> > it take to create and delete these large zero filled files?
> 
> They're called sparse files. Good filesystems (read: not FAT, for
> example) have the ability to marks blocks as all zero without actually
> taking up any disk space. Having dd create sparse files during copy
> takes slightly more CPU, however.
> 
> Just for fun, try this:
> $ dd if=/dev/zero of=disk.img bs=1k count=1 seek=1G
> $ ls -lh disk.img
> 
> Yes, that T means Terabyte.
> 
> Betcha most of you didn't know you could fit that much data on your
> disk. ;-)

And this makes for an interesting situation for cryptographic
filesystems.  I have a clever way of addressing sparse files in
eCryptfs, if I may saw so myself.  Hopefully I will be able to make a
release before too long.  ;-)

Mike
.___________________________________________________________________.
                         Michael A. Halcrow                          
       Security Software Engineer, IBM Linux Technology Center       
GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D  2371 2D3C FDDA 3EB6 601D

"This is about humans being human."                                  
 - Carl Sagan 

Attachment: signature.asc
Description: Digital signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to