← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2120931] Re: Poor formating of 'swapon --summary'

 

** Changed in: util-linux (Ubuntu)
       Status: New => Triaged

** Changed in: util-linux (Ubuntu)
   Importance: Undecided => Wishlist

** Tags added: dcr-freezer

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2120931

Title:
  Poor formating of 'swapon --summary'

Status in util-linux package in Ubuntu:
  Triaged

Bug description:
  'swapon --summary' should be the same as /proc/swaps (as per documentation).  However, they are formatted differently and this could lead to bugs as the 'Used' field gets merged with the 'Priority' field for large values of 'Used' (not uncommonly large now we can swap to SSD/NVMe).  Example output is:
  ```
  think1 tonyr: swapon --summary
  Filename				Type		Size		Used	Priority
  /dev/sdd                                partition	117220820	585133161
  /dev/sdb                                partition	117220820	584806241
  /dev/sde                                partition	117220820	585251641
  /dev/sdc                                partition	117220820	584769281
  think1 tonyr: cat /proc/swaps
  Filename				Type		Size		Used		Priority
  /dev/sdd                                partition	117220820	58513316	1
  /dev/sdb                                partition	117220820	58480624	1
  /dev/sde                                partition	117220820	58525164	1
  /dev/sdc                                partition	117220820	58476928	1
  think1 tonyr: lsb_release -rd
  No LSB modules are available.
  Description:	Ubuntu 24.04.3 LTS
  Release:	24.04
  think1 tonyr: apt-cache policy mount
  mount:
    Installed: 2.39.3-9ubuntu6.3
    Candidate: 2.39.3-9ubuntu6.3
    Version table:
   *** 2.39.3-9ubuntu6.3 500
          500 http://gb.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       2.39.3-9ubuntu6 500
          500 http://gb.archive.ubuntu.com/ubuntu noble/main amd64 Packages
  think1 tonyr: dpkg -S /usr/sbin/swapon
  mount: /usr/sbin/swapon
  ```
  This bug page doesn't allow me to say that the package name is mount

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2120931/+subscriptions