Re: Sort of a feature proposal
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- May 7, 2008, 16:25 UTC
- Message-ID
- <alpine.LFD.1.10.0805070924300.3024@woody.linux-foundation.org>
- In-Reply-To
- <86fxsutbke.fsf@lola.quinscape.zz>
On Wed, 7 May 2008, David Kastrup wrote:
Show 11 quoted lines
> > Hi, I have some large git repositories on a USB drive (ext3 file > system). That means that when replugging the drive, the recorded st_dev > data in the index is off, meaning that the whole repo directory > structure gets reread as the stat data of all directories has changed. > > That's a nuisance. Can't we have some heuristic or configuration option > where we, say, record the st_dev of the _index_ file, and if that has > changed, we propagate that change to the st_dev of its contents? I'd > like to see something that works more efficiently than rescanning the > whole disk every time I hibernate my computer.
Hmm. We shouldn't even be using st_dev any more.
How did you compile your git version? By default USE_STDEV should be off, and it's been that way for a long time (because st_dev is also not reliable on NFS etc).
Linus