Bug#761676: lvm2: lvs output format too long wraps on standard sized terminals

Bob Proulx bob at proulx.com
Mon Sep 15 17:12:17 UTC 2014


Package: lvm2
Version: 2.02.111-1
Severity: normal

Since the latest update the "lvs" command now emits output lines that
are so long that they wrap on standard sized terminals.

For example previously:

# lvs
  LV   VG   Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  audio v1   -wi-ao---- 100.00g
  bak1  v1   -wi-ao---- 140.00g
  chrt  v1   -wi-ao----  30.00g
  home  v1   -wi-ao---- 202.26g
  lcl   v1   -wi-ao----  93.13g
  lcl2  v1   -wi-ao---- 123.83g
  root  v1   -wi-ao----  16.00g
  srv   v1   -wi-ao----  18.62g
  swap  v1   -wi-ao----   7.45g
  test  v1   -wi-a----- 100.00m
  var   v1   -wi-ao----   5.59g

Now with 2.02.111-1 this output includes trailing whitespace out to
column 83 causing each line to wrap in an unpleasant way.

# lvs
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert

  audio v1   -wi-ao---- 100.00g

  bak1  v1   -wi-ao---- 140.00g

  chrt  v1   -wi-ao----  30.00g

  home  v1   -wi-ao---- 202.26g

  lcl   v1   -wi-ao----  93.13g

  lcl2  v1   -wi-ao---- 123.83g

  root  v1   -wi-ao----  16.00g

  srv   v1   -wi-ao----  18.62g

  swap  v1   -wi-ao----   7.45g

  test  v1   -wi-a----- 100.00m

  var   v1   -wi-ao----   5.59g

This makes the output more difficult to read than before.

Here is a workaround for those reading this.  Trim the unnecessary
white space from the end of the lines.

  # lvs | sed 's/ *$//g'

Thank you for maintaining LVM in Debian.

Bob


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmeventd                  2:1.02.90-1
ii  dmsetup                   2:1.02.90-1
ii  init-system-helpers       1.21
ii  initscripts               2.88dsf-53.4
ii  libc6                     2.19-11
ii  libdevmapper-event1.02.1  2:1.02.90-1
ii  libdevmapper1.02.1        2:1.02.90-1
ii  libreadline5              5.2+dfsg-2
ii  libudev1                  208-8
ii  lsb-base                  4.1+Debian13

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
pn  thin-provisioning-tools  <none>

-- no debconf information



More information about the pkg-lvm-maintainers mailing list