[OpenAFS] Modifying the output of vos commands to include server UUIDs

Jeffrey Altman jaltman@secure-endpoints.com
Tue, 13 Apr 2010 17:28:31 -0400


This is a cryptographically signed message in MIME format.

--------------ms030804030605000409050504
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 4/13/2010 5:08 PM, Steve Simmons wrote:
>=20
> On Apr 13, 2010, at 10:02 AM, Todd Lewis wrote:
>=20
>> Clearly the multi-line form is easier for humans to read, and the
>> related-data-on-one-line form is far simpler for scripts to parse. By =
far.
>> In both cases.
>>
>> Is there a place on the ballot to vote for... both, with a switch?
>=20
> I'm a long-time fan of having a switch that causes tools to dump their =
data in an easy-to-machine-parse format. That isn't always doable, but wh=
en it is, it's a big win.

As Andrew pointed out in another reply in this thread, the -format
switch is support to provide that but it fails to provide a consistent
(value - data) pair per line.

Currently that output looks like:

name            root.cell
id              536870915
serv            204.29.154.37   bethlehem.your-file-system.com
part            /vicepa
status          OK
backupID        0
parentID        536870915
cloneID         536870916
inUse           Y
needsSalvaged   N
destroyMe       N
type            RW
creationDate    1242930289      Thu May 21 14:24:49 2009
accessDate      0               Wed Dec 31 19:00:00 1969
updateDate      1269892897      Mon Mar 29 16:01:37 2010
backupDate      0               Wed Dec 31 19:00:00 1969
copyDate        1242930289      Thu May 21 14:24:49 2009
flags           0       (Optional)
diskused        43
maxquota        5000
minquota        0       (Optional)
filecount       38
dayUse          0
weekUse         0       (Optional)
spare2          0       (Optional)
spare3          0       (Optional)

root.cell
    RWrite: 536870915     ROnly: 536870916
    number of sites -> 4
       server bethlehem.your-file-system.com partition /vicepa RW Site
       server bethlehem.your-file-system.com partition /vicepa RO Site
       server faultline.your-file-system.com partition /vicepa RO Site
       server cpe-24-193-47-88.nyc.res.rr.com partition /vicepa RO Site
    RWrite: 536870915     ROnly: 536870916
    number of sites -> 4
       server bethlehem.your-file-system.com partition /vicepa RW Site
       server bethlehem.your-file-system.com partition /vicepa RO Site
       server faultline.your-file-system.com partition /vicepa RO Site
       server cpe-24-193-47-88.nyc.res.rr.com partition /vicepa RO Site

which re-uses a similar logic for the per volume output as the
non-format.  I do notice a bug in the above output in that it lists the
same block twice.

Jeffrey Altman


--------------ms030804030605000409050504
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJeTCC
AxcwggKAoAMCAQICEAMF9RTCGOz151fTpHLih+cwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDgyODA0MDExOVoX
DTEwMDgyODA0MDExOVowczEPMA0GA1UEBBMGQWx0bWFuMRUwEwYDVQQqEwxKZWZmcmV5IEVy
aWMxHDAaBgNVBAMTE0plZmZyZXkgRXJpYyBBbHRtYW4xKzApBgkqhkiG9w0BCQEWHGphbHRt
YW5Ac2VjdXJlLWVuZHBvaW50cy5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDZNscYIvF6xzGSAfa/QUIqiElyn0EUxL2b86eKiYqe91bj0gLr/MJoErLnb+OmokxqSAH6
y0zlFqSbiFwgNM8m69K6m/6YO+x3+5zBc+u6snwTWMEWygnhx3rQ/lMhoQOgArraL+/k9aWL
kNdaXQKk6EZVW9pfV2A4Lk4DoZGFjY8tJRWWDLlFkYnxDuIEpLYwJpwakv3QHOaq/G8KW0iE
jVhVzPobuZzwD2tuepY/bsClwqxz/gfAEpUvAn/lYTqnoT7RYljZlCIdbrgcG/HSYMxAy1Zp
Yh8Fx+9cqsG8O4nqo26SVfYZvrYhh8m6OqW8Vakdt7vBLCTa/QhIdJ4hAgMBA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