Re: [PATCH] adding two new options to 'cp'



Oliver Fromme wrote:

Bakul Shah wrote:
> Peter Jeremy wrote:
> > As a general comment (not addressed to Tim): There _is_ a downside
> > to sparsifying files. If you take a sparse file and start filling
> > in the holes, the net result will be very badly fragmented and hence
> > have very poor sequential I/O performance. If you're never going to
> > update a file then making it sparse makes sense, if you will be
> > updating it, you will get better performance by making it non-sparse.
> > Except for database tables how common is this?

For example image files of media, e.g. ISO9660 images
or images of hard disk partitions. I often have to handle
such images, and I certainly do _not_ want them to be
sparse.



well then you'd be silly to go to the extra work fo specifying --sparse
(or whatever) wouldn't you?

Before someone adds a bogus "sparse file support" option
to cp(1), I would rather prefer that someone fixes the
existing -R option which currently doesn't handle hard-
links correctly.



It never worked as you suppose. Changing it would be a surprise
(though to me a pleasant one) to many.

That flaw is documented in the manual page, so it might
not count as a "bug", but it's a flaw nevertheless. A lot
of people -- even so-called professional admins -- use
"cp -Rp" to copy directory hierarchies, and afterwards
they wonder why the copy takes up much more space than
the original, because all hardlinks have been copied as
separate files (if they notice at all).



I ALWAYS use find . -depth -print0|cpio -pdmuv0 {dest}
or -pdlmuv (poodle-move-0?) if I want links from old to new. because it
is guaranteed to do that but cp is not.

Oh by the way: Linux' option for sparse file handling
is "--sparse", and there is no one-letter option (both
-s and -S exist, but have nothing to do with sparse
files). So there wouldn't be an easy way for FreeBSD to
stay compatible with Linux.

Best regards
Oliver



_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: possible rooted systems
    ... Once the problems are discovered and holes are ... find away to be a nuisance and a security risk on the network. ... provide the security needed to ensure the images were not modified. ... >> to the USB Drive using a ghost boot disk with dos USB drivers, ...
    (Security-Basics)
  • Re: List of paraphilias
    ... Michael Snyder wrote: ... posted on Tue, 24 Oct 2006 00:12:27 GMT, nimue wrote: Begin ... Men get turned on by images of cocks going in and out of holes. ...
    (alt.true-crime)
  • Re: Firefox is starting to piss me off
    ... A flute without holes, is not a flute, James Schrumpf ... especially those with images. ... This happens to me constantly on the Scout.com websites and *only* the ...
    (rec.sport.football.college)
  • Re: Single or multi hole off-axis filters?
    ... Each hole creates two images, each image separated by 90 degrees from the ... So if the holes in a two-hole mask are ... Since the out-of-focus images are bloated, the alignment has to be off ... quite a bit before you see four distinct images with a two-hole mask. ...
    (sci.astro.amateur)
  • Re: Mamography enhancement
    ... I wanted to enhance mamography pictures but I dont know which method ... filling' but I found nothing about it's algorithm. ... 'Enhancement' is a very vagure term Even simple contrast enrichment ... Using 'flood filling' to enhace the images.. ...
    (sci.image.processing)

Loading