On Mon, 11 Feb 2008, Martin Koegler wrote:OK that makes sense. I think this is a good idea to always have some sanity checks on any incoming objects so to make sure they're well formed and valid before giving them a SHA1 value, and bail out as soon as any error is found. From my understanding that's what your patch is doing, right? (sorry I can't find them in my mailbox anymore). This can be done as objects are coming in just fine and requires no extra memory, and I would say this should be done unconditionally all the time. After all, the Git coherency model is based on the SHA1 checksuming, and therefore it is a good idea to never validate any malformed objects with a SHA1. So I'm all in favor of such validation always performed in index-pack and unpack-objects. As to making sure those objects are well connected... well this is a technically different issue entirely, and I wonder if a special mode to fsck might not be a better solution. For example, fsck could be made to validate object connectivity, starting from the new ref(s), and stopping object walking as soon as a reference to an object not included in the newly received pack is encountered. This could be run from some hook to decide whether or not to update the new refs, and to delete the pack otherwise. Nicolas - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Jesse Barnes | Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference |
| Greg KH | [003/136] p54usb: add Zcomax XG-705A usbid |
| Magnus Damm | [PATCH 03/07] ARM: Use shared GIC entry macros on Realview |
| Oliver Neukum | Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30 |
| Martin Schwidefsky | Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y |
git: | |
| Junio C Hamano | Re: Some advanced index playing |
| Jeff King | Re: confusion over the new branch and merge config |
| Robin Rosenberg | Re: cvs2svn conversion directly to git ready for experimentation |
| Linus Torvalds | git binary size... |
| Ævar Arnfjörð Bjarmason | Re: Challenge with Git-Bash |
| Linux Kernel Mailing List | md: move allocation of ->queue from mddev_find to md_probe |
| Linux Kernel Mailing List |
