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)
Mar 7 2025, 8:33 AM
Unknown Object (File)
Mar 6 2025, 9:09 AM
Unknown Object (File)
Mar 4 2025, 8:40 PM
Unknown Object (File)
Mar 4 2025, 11:43 AM
Unknown Object (File)
Feb 22 2025, 1:27 AM
Unknown Object (File)
Feb 19 2025, 11:19 PM
Unknown Object (File)
Feb 18 2025, 12:16 AM
Unknown Object (File)
Feb 16 2025, 8:00 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