Bug 237754 - zfs: pretty print the GUID
Summary: zfs: pretty print the GUID
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-05 15:26 UTC by Martin Birgmeier
Modified: 2019-05-07 08:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2019-05-05 15:26:43 UTC
Using 'zfs list -o <attributes>' normally aligns the columns. This is not the case if 'guid' is specified as one of the attributes. Furthermore, the guid is printed in decimal, but since it is a 64-bit number it might be better to print it as 8 hex bytes, e.g., instead of

17285092600981406395

it would be nicer to see something like

efe0-fc23-e73a-c2bb

Could at least the alignment be fixed?

-- Martin