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)
Fri, Jun 19, 3:34 PM
Unknown Object (File)
Tue, Jun 16, 7:19 PM
Unknown Object (File)
Sun, May 24, 1:47 AM
Unknown Object (File)
May 11 2026, 3:39 PM
Unknown Object (File)
May 10 2026, 7:21 AM
Unknown Object (File)
Apr 29 2026, 11:51 AM
Unknown Object (File)
Apr 27 2026, 12:29 PM
Unknown Object (File)
Apr 22 2026, 9:18 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