[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Does fsfs revprop packing no longer allow usage of traditional backup software?

From: Peter Samuelson <peter_at_p12n.org>
Date: Thu, 30 Jun 2011 17:57:47 -0500

[Hyrum K Wright]
> I like this idea, but it would seem to introduce an additional stat()
> call* for every attempt to fetch a revprop, because you'd first have
> to check the "old" location, and then the packed one.

Technically not an extra stat(), but an extra open(). Not the same.
Especially since the "common case", as you put it, is that the open()
returns ENOENT, file not found. _That_ case may or may not be
expensive, but it's quite different from the usual consideration of
whether stat() is expensive. Not least because stat() is usually
considered in context where a file _does_ exist and various information
about the file gets looked up to populate the stat structure.

Just sayin',

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
Received on 2011-07-01 16:58:28 CEST

This is an archived mail posted to the Subversion Dev mailing list.