Public bug reported:

I'm running coreutils 8.26-3ubuntu4 on artful amd64, kernel
4.13.0-12-generic. The file system in use is XFS on LVM2 on top of LUKS
(discard enabled).

Steps to reproduce:
1. Create a 4GB file with dd
2. Overwrite this file with another 4GB file using dd
3. Run stat and du -h on the file

Expected behavior: du should report the file as 4GB
Observed behavior: du shows the file as 8GB size

Attachment shows detailed log.

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

** Attachment added: "Detailed test case"
   https://bugs.launchpad.net/bugs/1723162/+attachment/4968863/+files/bugreport

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

Title:
  du reports wrong file size for certain files

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to