Project

General

Profile

Actions

Bug #3831

open

swap -l output header needs work

Added by Peter Tribble about 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
2013-06-18
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Consider the following output from the swap command on a current system

# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 142,2         8  4194296  3417480
# swap -lh
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 142,2        4K     2.0G     1.6G


There are two problems here:

1. The header doesn't line up with the values at all. The name of the swap device is longer than whoever implemented this initially thought of, and swap sizes can be a little larger as well

2. For the case where -l is combined with -k or -h, the use of "blocks" in the header is just wrong. It should probably be just "size"

Actions

Also available in: Atom PDF