home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!news.funet.fi!fuug!mits!kennu
- From: kennu@mits.mdata.fi (Kenneth Falck)
- Subject: Re: Can I use dd on my UNIX system instead of Rawrite?
- Message-ID: <1992Aug13.003041.28918@mits.mdata.fi>
- Organization: Microdata Oy, Helsinki, Finland
- References: <1992Aug12.053539.14825@mnemosyne.cs.du.edu> <1992Aug12.060338.24805@ennews.eas.asu.edu> <1992Aug12.063534.4178@muddcs.claremont.edu>
- Date: Thu, 13 Aug 1992 00:30:41 GMT
- Lines: 20
-
- In article <1992Aug12.063534.4178@muddcs.claremont.edu> jwinstea@jarthur.claremont.edu (Jim Winstead Jr.) writes:
- >Not necessarily true - GNU cp contains the optimization that it will
- >use lseek() to 'write' holes in a file instead of writing out all the
- >individual null bits. This is what causes shoelace to break for some
- >people. I'm not sure what effect this has on copying to a floppy with
- >the cp command - but I *know* dd is safe.
-
- How exactly does that lseek() writing work? If you lseek() past
- the end of file, do some I/O routines automatically append the
- corresponding amount of nulls or what? And why doesn't this
- work with shoelace then...
-
- Inquiring minds want to know (tm) ...
-
- (Btw, is this optimization possible only for the unix/minix/linux
- filesystems, or is it fs-independant and can be used on MSDOS too?)
-
- --
- kennu@mits.mdata.fi
-
-