Page MenuHomeFreeBSD

sesutil: Fix status checking
ClosedPublic

Authored by trasz on Mon, Jul 19, 4:28 PM.

Details

Summary

Previously we would display "OK, Swapped" for swapped disks, instead
of the usual disk size.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

trasz requested review of this revision.Mon, Jul 19, 4:28 PM
allanjude added a subscriber: allanjude.

Reviewed By: allanjude

this changes the output from:

ses0: <SMC SC846P 0c1f>; ID: 500304801820593f
Desc     Dev     Model                     Ident                Size/Status
Slot05   da5     HGST HUS726060AL4210      NCH4652Z             6T
Slot06   da6     HGST HUS726060AL4210      K1GT8JTD             6T
Slot07   da7     HGST HUS726060AL4210      NCH45KAZ             OK,  Swapped

to:

ses0: <SMC SC846P 0c1f>; ID: 500304801820593f
Desc     Dev     Model                     Ident                Size/Status
Slot05   da5     HGST HUS726060AL4210      NCH4652Z             6T
Slot06   da6     HGST HUS726060AL4210      K1GT8JTD             6T
Slot07   da7     HGST HUS726060AL4210      NCH45KAZ             6T,  Swapped

which is much more useful.

This revision is now accepted and ready to land.Mon, Jul 19, 4:40 PM
This revision was automatically updated to reflect the committed changes.