[OpenAFS-devel] [Patch] volinfo

Thomas Mueller thomas.mueller@hrz.tu-chemnitz.de
Mon, 2 Apr 2001 11:19:46 +0200 (MEST)


  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.

--1837505224-521192672-986203186=:22436
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT


Below you find a patch against vol/vol-info.c
It introduces a new option ("-filenames") to the volinfo tool in the
AFS_NAMEI_ENV environment.
This option lists the filenames, which are used to store the files and
directories of a volume on the /vicep?? partition at the fileserver.
It may be useful for debugging purposes.

Thomas.

-- 
----------------------------------------------------------
Thomas Mller, TU Chemnitz, URZ, D-09107 Chemnitz, Germany
----------------------------------------------------------

--1837505224-521192672-986203186=:22436
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="volinfo.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.30.0104021119460.22436@merowech.hrz.tu-chemnitz.de>
Content-Description: volinfo.patch
Content-Disposition: attachment; filename="volinfo.patch"

ZGlmZiAtTmF1cncgc3JjLm9yaWcvdm9sL3ZvbC1pbmZvLmMgc3JjL3ZvbC92
b2wtaW5mby5jDQotLS0gc3JjLm9yaWcvdm9sL3ZvbC1pbmZvLmMJVGh1IE1h
ciAyOSAxNDowNjoyOSAyMDAxDQorKysgc3JjL3ZvbC92b2wtaW5mby5jCVRo
dSBNYXIgMjkgMTQ6MzQ6NTQgMjAwMQ0KQEAgLTU4LDYgKzU4LDkgQEANCiBp
bnQgRHVtcElub2RlTnVtYmVyID0gMDsJLyogRHVtcCBpbm9kZSBudW1iZXJz
IHdpdGggdm5vZGVzICovDQogaW50IER1bXBEYXRlID0gMDsJCS8qIER1bXAg
dm5vZGUgZGF0ZSAoc2VydmVyIG1vZGlmeSBkYXRlKSB3aXRoIHZub2RlICov
DQogaW50IElub2RlVGltZXMgPSAwOwkJLyogRHVtcCBzb21lIG9mIHRo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