Re: [PATCH 1/2] Make pack creation always fsync() the result
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jun 2, 2008, 22:23 UTC
- Message-ID
- <alpine.LFD.1.10.0806021522120.3473@woody.linux-foundation.org>
- In-Reply-To
- <20080531141927.GC32168@redhat.com>
On Sat, 31 May 2008, Frank Ch. Eigler wrote:
> > If you stabilize the outputs of the pack procedure rather than its > inputs, this makes me wonder if ordinary unpacked git objects would > also need some sort of fsync treatment.
No, see the earlier discussion about the difference between "old" and "new" objects.
Pack-files can contain old objects that were _previously_ stable, so we need to make sure that they are at least as stable as the objects they replace. In contrast, new loose objects never replace old data, so they can always be re-created by just re-doing the git operation.
Linus