LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2020, 10:05 PM   #1
DoorDaesh
LQ Newbie
 
Registered: Jul 2020
Posts: 23

Rep: Reputation: Disabled
Question Btrfs disk usage utility reports sizes of 0 bytes for some non-empty files


The disk usage command provided by btrfs-progs reports sizes of zero bytes for some files, which seems strange because the files aren't empty. Other disk usage commands report non-zero values for the same files.

Code:
$ stat -c %s example_file.conf
383

$ du -s example_file.conf
4

$ test -s example_file.conf & echo $?
0

$ btrfs filesystem du -s example_file.conf
    Total   Exclusive  Set shared  Filename
    0.00B       0.00B       0.00B  example_file.conf
Similar behavior with some directories.

Code:
$ stat -c %s example_directory.d
30

$ du -s example_directory.d
4

$ btrfs filesystem du -s example_directory.d
    Total   Exclusive  Set shared  Filename
    0.00B       0.00B       0.00B  example_directory.d
Why is that? These files are all on a btrfs filesystem; I thought the btrfs utility would be the most accurate.
 
Old 07-18-2020, 03:15 AM   #2
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
I did report to https://bugzilla.kernel.org/show_bug.cgi?id=208601
think it's bug
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 02:53 AM
Mounted disk still reports 0 bytes on Rhel 5 even when files are delete boberey Linux - Newbie 4 05-09-2011 11:37 PM
Disk Usage Analyzer reports too much disk space? ler0nldb2 Linux - Newbie 1 09-12-2009 10:27 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration