Page MenuHomeFreeBSD

bectl_list: align column output for a mountpoint properly
ClosedPublic

Authored by rew on Aug 12 2020, 7:21 PM.
Tags
None
Referenced Files
F166833102: D26048.diff
Sun, Aug 16, 9:54 PM
Unknown Object (File)
Fri, Aug 14, 11:22 PM
Unknown Object (File)
Tue, Aug 11, 8:36 AM
Unknown Object (File)
Tue, Aug 11, 7:37 AM
Unknown Object (File)
Sun, Aug 9, 5:33 AM
Unknown Object (File)
Tue, Jul 28, 8:32 AM
Unknown Object (File)
Sun, Jul 26, 11:03 AM
Unknown Object (File)
Thu, Jul 23, 6:07 PM

Details

Summary

The output for bectl list is not aligned when the mounted property becomes a long enough
string.

Set the 'Mountpoint' column width based off the boot environment dataset with
the longest mounted property.

This addresses PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241064

Test Plan

All tests passed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable