Page MenuHomeFreeBSD

diskinfo: Add libxo support to diskinfo
AbandonedPublic

Authored by imp on Wed, Feb 25, 10:34 PM.
Tags
None
Referenced Files
F146553300: D55524.diff
Tue, Mar 3, 2:48 PM
F146553191: D55524.diff
Tue, Mar 3, 2:47 PM
Unknown Object (File)
Sun, Mar 1, 6:24 AM
Unknown Object (File)
Sun, Mar 1, 3:47 AM
Unknown Object (File)
Sun, Mar 1, 3:40 AM
Unknown Object (File)
Sun, Mar 1, 3:40 AM
Unknown Object (File)
Sun, Mar 1, 3:40 AM
Unknown Object (File)
Sun, Mar 1, 3:34 AM
Subscribers

Details

Reviewers
None
Summary

I did this as an experimenet in claude. This is 20 minutes of effort.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71014
Build 67897: arc lint + arc unit

Event Timeline

imp requested review of this revision.Wed, Feb 25, 10:34 PM
imp created this revision.

fix a number of regressions

OK. --libxo is one path (it produces data from -v), everything else goes through
the old code paths...

claude can be told to do the right thing...

just the meat of the commit

have claude gen a man page that I then tweaked a bit

markj added inline comments.
usr.sbin/diskinfo/diskinfo.c
197

Don't these prints need to be converted too?

usr.sbin/diskinfo/diskinfo.c
197

No. This is a slghtly atypical conversion. Only the datafrom -v is printed in json mode. It ignores all the other flags. Or should.. but that's not quite what the code actually does. I'll fix that.

I'm going to punt and try again later. Thanks for looking at this...

usr.sbin/diskinfo/diskinfo.c
251

So these iocts duplicate things here and also above...
It might make sense to refactor some of this...