On 4/13/2010 5:08 PM, Steve Simmons wrote: > > On Apr 13, 2010, at 10:02 AM, Todd Lewis wrote: > >> 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? > > 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 when 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
smime.p7s
Description: S/MIME Cryptographic Signature