[OpenAFS-devel] Adding estimates to volserver.
Ilya Berdnikov
ilya@ccmr.cornell.edu
Fri, 30 May 2003 13:12:48 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1417724665-1573680640-1054314768=:31413
Content-Type: TEXT/PLAIN; charset=US-ASCII
Greetings,
Some time ago there was a discussion on the list regarding the estimates
feature. Since then it has evolved into a "vos size" feature, and has, in
fact been implemented in some sense.
Attached is a patch that attempts to add the feature we needed most: the
size of the volume dump, however, the data structures are extensible, so
if there is need for other "measurements" such as number of files, number
of directories, whatever, these should be possible to add without too much
trouble.
In any case, here's the patch, and I'm patiently waiting for comments.
-Ilya
--1417724665-1573680640-1054314768=:31413
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="openafs-estimates.new.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.51.0305301312480.31413@florida.ccmr.cornell.edu>
Content-Description:
Content-Disposition: attachment; filename="openafs-estimates.new.patch"
ZGlmZiAtdSAtciAteCBDVlMgb3BlbmFmcy5vcmlnL3NyYy92b2xzZXIvZHVt
cHN0dWZmLmMgb3BlbmFmcy9zcmMvdm9sc2VyL2R1bXBzdHVmZi5jDQotLS0g
b3BlbmFmcy5vcmlnL3NyYy92b2xzZXIvZHVtcHN0dWZmLmMJRnJpIE1hciAy
OCAwNDozNTo1OCAyMDAzDQorKysgb3BlbmFmcy9zcmMvdm9sc2VyL2R1bXBz
dHVmZi5jCU1vbiBNYXkgMTkgMTc6MzY6MTcgMjAwMw0KQEAgLTkwLDYgKzkw
LDE3IEBADQogc3RhdGljIGJpdDMyIHZvbHNlcl9Xcml0ZUZpbGUoaW50IHZu
LCBzdHJ1Y3QgaW9kICppb2RwLCBGZEhhbmRsZV90ICpoYW5kbGVQLA0KIAkJ
CSAgICAgIEVycm9yICpzdGF0dXMpOw0KIA0KK3N0YXRpYyBpbnQgU2l6ZUR1
bXBEdW1wSG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