All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emmanouil Vamvakopoulos <emmanouil.vamvakopoulos@ijclab.in2p3.fr>
To: linux-xfs@vger.kernel.org
Subject: s_bmap and  flags explanation
Date: Wed, 3 Aug 2022 16:56:43 +0200 (CEST)	[thread overview]
Message-ID: <1106593372.70825641.1659538603200.JavaMail.zimbra@ijclab.in2p3.fr> (raw)
In-Reply-To: <1586129076.70820212.1659538177737.JavaMail.zimbra@ijclab.in2p3.fr>



Hello developers 

It is possible to explain the FLAGS field in xfs_bmap output of a file 

 EXT: FILE-OFFSET           BLOCK-RANGE              AG AG-OFFSET                 TOTAL FLAGS
   0: [0..7]:               49700520968..49700520975 30 (8..15)                       8 001111
   1: [8..4175871]:         49708756480..49712932343 30 (8235520..12411383)     4175864 000111
   2: [4175872..19976191]:  49715788288..49731588607 30 (15267328..31067647)   15800320 000011
   3: [19976192..25153535]: 49731588608..49736765951 30 (31067648..36244991)    5177344 000011
   4: [25153536..41930743]: 49767625216..49784402423 30 (67104256..83881463)   16777208 000111
   5: [41930744..58707951]: 49784402424..49801179631 30 (83881464..100658671)  16777208 001111
   6: [58707952..58959935]: 49801179632..49801431615 30 (100658672..100910655)   251984 001111
   7: [58959936..75485159]: 49801431616..49817956839 30 (100910656..117435879) 16525224 001111

with 

[disk06]# du -sh ./00000869/014886f4
36G	./00000869/014886f4
[disk06]# du -sh --apparent-size  ./00000869/014886f4
29G	./00000869/014886f4

I try to understand if  this file contains unused externs 
and how those file are created like this (if we assume that the free space was not fragmented ) 

we are running CentOS Stream release 8 with 4.18.0-383.el8.x86_64 

if I defrag the file above the difference bewteen apparent size and size with du disappered !

thank you in advance
best
e.v.

       reply	other threads:[~2022-08-03 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1586129076.70820212.1659538177737.JavaMail.zimbra@ijclab.in2p3.fr>
2022-08-03 14:56 ` Emmanouil Vamvakopoulos [this message]
2022-08-03 15:54   ` s_bmap and flags explanation Carlos Maiolino
2022-08-03 21:59   ` Dave Chinner
2022-08-04 10:25     ` Emmanouil Vamvakopoulos
2022-08-04 13:30       ` Carlos Maiolino
2022-08-04 22:55       ` Dave Chinner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1106593372.70825641.1659538603200.JavaMail.zimbra@ijclab.in2p3.fr \
    --to=emmanouil.vamvakopoulos@ijclab.in2p3.fr \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.