Date: Tue, 1 Aug 2006 21:27:25 -0400 From: Garance A Drosehn <gad@FreeBSD.org> To: rick-freebsd@kiwi-computer.com Cc: freebsd-hackers@FreeBSD.org Subject: Re: [PATCH] adding two new options to 'cp' Message-ID: <p0623090cc0f5af237e7c@[128.113.24.47]> In-Reply-To: <20060802001756.GB6671@megan.kiwi-computer.com> References: <44CE199C.2020500@centtech.com> <17614.8289.134373.387558@bhuda.mired.org> <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com> <17614.10982.499561.139268@bhuda.mired.org> <ealpn1$lan$1@sea.gmane.org> <20060801072611.GA717@turion.vk2pj.dyndns.org> <ean95a$e1u$1@sea.gmane.org> <p06230908c0f53813965d@[128.113.24.47]> <20060801171912.GC3413@megan.kiwi-computer.com> <p06230909c0f598682a82@[128.113.24.47]> <20060802001756.GB6671@megan.kiwi-computer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 7:17 PM -0500 8/1/06, Rick C. Petty wrote: >On Tue, Aug 01, 2006 at 08:09:08PM -0400, Garance A Drosehn wrote: >> >> I had understood this option as a request to "copy all the >> existing holes", which is not the same thing. I.e., I >> thought we wanted `cp' to create the new file such that it >> would take up exactly the same number of disk blocks, and >> have the same number of holes (in exactly the same places) >> as the original file. > >Which it currently doesn't, without any sparse option. Yes, but we know it doesn't, and we don't expect it to. I *thought* what this thread was asking was for someone to add some new option to `cp', where that new option would do the above. But I was wrong with that, and apparently people would be happy with a new option which says "sparse-ify the file". > > I agree that "sparse-ify" should be easy to implement, and >> could be useful. I'm not fond of the idea, but I can see >> how people might want it. I do would not like it, because >> the user will have to know whether it is appropriate to use >> on a file-by-file basis. You can't just 'cp -rp' an entire >> directory, and feel confident that the "Right Thing(TM)" >> will happen for each file that is being copied. So, if I >> am copying directories, I'll still have to resort to some >> other tool to get the job done "Right(TM)". > >I don't see why not. I don't care if you don't see it. I am just stating my personal opinion, and apparently I am not even doing a good job at that. I will stop now.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0623090cc0f5af237e7c>