Re: Problem with large files on different OSes
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- May 27, 2009, 17:30 UTC
- Message-ID
- <200905271930.30496.jnareb@gmail.com>
- In-Reply-To
- <submission.1M9Mpl-0001CW-M0@mail.cs.st-andrews.ac.uk>
On Wed, 27 May 2009, Christopher Jefferson wrote:
Show 5 quoted lines
> On 27 May 2009, at 17:59, Linus Torvalds wrote: >> On Wed, 27 May 2009, Linus Torvalds wrote: >>> >>> I'll see if I can make us handle the "big file without diff" case >>> better by chunking.
Show 17 quoted lines
>> So "don't do it then" or "make sure you are 64-bit and have lots of >> memory if you do it" may well be the right solution. > > Thank you for that description of the problem, I can see how hard it is. > > Perhaps it might be useful to think about how to codify "don't do it > then" in a reasonably simple, automatic way? > > I've been trying to write a pre-commit hook (I think that's the right > place?) which would refuse commits larger than some file size (512MB > as a random number I decided), but am having trouble getting it to > work right, and generally. Would such a thing be easy, and would that > be the right place to put it? > > While I wouldn't suggest this become default, providing such a hook, > and describing why you might want to use it, would seem to avoid the > accidental part of the problem.
Hmmm... this is another issue (beside checking for portability of filenames) that would be neatly solved if there was 'pre-add' hook, rather than trying to use 'pre-commit' hook for that. It should not, I think, be that hard to add it...
-- Jakub Narebski Poland