Public bug reported:

Running tree with --du reports a wrong total size, twice as much as the
actual size.

Example (-h for human readable values):

$ tree -h --du
[ 30G]  .
├── [6.4G]  11aacb2b-28c8-4424-8a3c-8dd0e13f4fb8
│   ├── [6.4G]  hda_disk.qcow2
│   ├── [640K]  hdb_disk.qcow2
│   └── [512K]  hdc_disk.qcow2
├── [5.6G]  2e92bdf6-a3aa-42c8-a1d3-0a4378c88a3d
│   ├── [5.6G]  hda_disk.qcow2
│   ├── [640K]  hdb_disk.qcow2
│   └── [512K]  hdc_disk.qcow2
├── [5.9G]  34ca4468-0165-4f39-81ac-ad6ce48d6025
│   ├── [5.9G]  hda_disk.qcow2
│   ├── [640K]  hdb_disk.qcow2
│   └── [512K]  hdc_disk.qcow2
├── [439M]  6834adde-20c7-4f7d-b96c-705a4107517e
│   └── [439M]  hda_disk.qcow2
├── [5.5G]  830457dc-321f-47ae-aed6-e2c9190ba31b
│   ├── [5.5G]  hda_disk.qcow2
│   ├── [640K]  hdb_disk.qcow2
│   └── [512K]  hdc_disk.qcow2
├── [4.0K]  a0a1a8e1-8220-46b4-bb0b-c6ef0c63bf4f
└── [6.2G]  df8f42ab-feb6-443f-bfeb-098be05cfbe9
    ├── [6.2G]  hda_disk.qcow2
    ├── [640K]  hdb_disk.qcow2
    └── [512K]  hdc_disk.qcow2

  60G used in 8 directories, 16 files

Environment:

$ lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.4 LTS
Release:        24.04

$ apt-cache policy tree
tree:
  Installed: 2.1.1-2ubuntu3.24.04.2
  Candidate: 2.1.1-2ubuntu3.24.04.2
  Version table:
 *** 2.1.1-2ubuntu3.24.04.2 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 
Packages
        100 /var/lib/dpkg/status

** Affects: tree (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164817

Title:
  tree --du reports wrong size

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tree/+bug/2164817/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to