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
Unknown Object (File)
Wed, Apr 1, 4:36 PM
Unknown Object (File)
Tue, Mar 31, 9:01 PM
Unknown Object (File)
Mon, Mar 30, 7:22 PM
Unknown Object (File)
Mon, Mar 30, 10:50 AM
Unknown Object (File)
Mon, Mar 30, 5:28 AM
Unknown Object (File)
Sun, Mar 22, 11:50 PM
Unknown Object (File)
Wed, Mar 18, 10:46 AM
Unknown Object (File)
Wed, Mar 18, 3:35 AM

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