Re: df command reports incorrect usage

2022-03-24 Thread Rob Landley
On 3/24/22 10:26 AM, Fariya F wrote: > Thank you for all the inputs.  > > I have a question what is the meaning of overhead block (its different from > reserved block) and how the number of overhead blocks is  calculated? Not really a df/coreutils question. The command fetches info from the

Re: df command reports incorrect usage

2022-03-24 Thread Fariya F
Thank you for all the inputs. I have a question what is the meaning of overhead block (its different from reserved block) and how the number of overhead blocks is calculated? The problem is the num of overhead blocks are more than the total blocks for that partition and that's why the total

Re: df command reports incorrect usage

2022-03-22 Thread Rob Landley
On 3/22/22 11:50 AM, Fariya F wrote: > > > This is a 32 bit hardware. This partition has private data in here.  Wild guess: https://github.com/torvalds/linux/commit/fe23cb65c2c3 Rob

Re: df command reports incorrect usage

2022-03-22 Thread Bob Proulx
Fariya F wrote: > Yes it is an embedded system. The package we have used is coreutils 8.25 > and not 1.35. Very sorry for the confusion. Ah! No worries. :-) Then I will ask if my assumption about /dev/mmcblk2 being an SD card is incorrect? Is it actually soldered on flash NAND? In which case

Re: df command reports incorrect usage

2022-03-22 Thread Fariya F
Yes it is an embedded system. The package we have used is coreutils 8.25 and not 1.35. Very sorry for the confusion. On Tue, 22 Mar, 2022, 10:43 pm Bob Proulx, wrote: > Rob Landley wrote: > > Fariya F wrote: > > > The version of df command is 1.85. > > A current version of Coreutils df by most

Re: df command reports incorrect usage

2022-03-22 Thread Bob Proulx
Rob Landley wrote: > Fariya F wrote: > > The version of df command is 1.85. A current version of Coreutils df by most distros would be 8.x and the upstream stable version is version 9. This leads me to believe that the df you are using is not from Coreutils but from somewhere else. But not

Re: df command reports incorrect usage

2022-03-22 Thread Fariya F
This is a 32 bit hardware. This partition has private data in here. Regards Fariya On Tue, 22 Mar, 2022, 8:48 pm Rob Landley, wrote: > On 3/22/22 9:12 AM, Fariya F wrote: > > Hi, > > > > The version of df command is 1.85. > > Kernel version 4.9.31 > > A 2016 release, plus bugfixes. > > $ git

Re: df command reports incorrect usage

2022-03-22 Thread Rob Landley
On 3/22/22 9:12 AM, Fariya F wrote: > Hi, > > The version of df command is 1.85. > Kernel version 4.9.31 A 2016 release, plus bugfixes. $ git log --no-merges v4.9..master fs/ext4 | grep ^commit | wc -l 1213 Bit of water under that bridge in the past 8 years. > The fsck check on that partition

Re: df command reports incorrect usage

2022-03-22 Thread Fariya F
Hi, The version of df command is 1.85. Kernel version 4.9.31 The fsck check on that partition succeeds. I am able to use the partition, create files etc. However df reports incorrectly the size and used percentage. Output from strace command is as follows; statfs64("/data", 88,

Re: df command reports incorrect usage

2022-03-21 Thread Bob Proulx
Fariya F wrote: > My eMMC device has a partition which reports the below output from df -h > command: > > Filesystem Size Used Avail Use% Mounted on > /dev/mmcblk2p316Z 16Z 84M 100% /data Since the df command is simply reporting back on what the Linux kernel reports, and the kernel