Linux-bcachefs Archive mirror
 help / color / mirror / Atom feed
From: Michael <mclaud@roznica.com.ua>
To: linux-bcachefs@vger.kernel.org
Subject: filefrag output
Date: Fri, 23 Feb 2024 07:25:50 +0200	[thread overview]
Message-ID: <ae2f2b23-da68-219c-1080-081ffe64ca9d@roznica.com.ua> (raw)

Can't find any information about

Are duplicates of logical extent offsets different replicas?
Are the replicas listed always sorted by number (first, second, third, 
...) or in random order?
Where "replica 2" offset 448k ?
Is the physical offset the offset on the device? Which device id?

Example:
dd if=/dev/random of=tst.dat bs=512k count=1

filefrag -v -b1024 tst.dat output:
Filesystem type is: ca451a4e
File size of tst.dat is 524288 (512 blocks of 1024 bytes)
  ext:     logical_offset:        physical_offset: length: expected: flags:
    0:        0..      63:   11856128..  11856191: 64:             encoded
    1:        0..      63:   16075264..  16075327: 64:             encoded
    2:       64..     127:   11856192..  11856255:     64: 16075328: encoded
    3:       64..     127:   16075328..  16075391:     64: 11856192: encoded
    4:      128..     191:   11856256..  11856319:     64: 16075392: encoded
    5:      128..     191:   16075392..  16075455:     64: 11856256: encoded
    6:      192..     255:   11856320..  11856383:     64: 16075456: encoded
    7:      192..     255:   16075456..  16075519:     64: 11856320: encoded
    8:      256..     319:   13653248..  13653311:     64: 16075520: encoded
    9:      256..     319:   16383488..  16383551:     64: 13653248: encoded
   10:      320..     383:   13653312..  13653375:     64: 16383552: encoded
   11:      320..     383:   16383552..  16383615:     64: 13653312: encoded
   12:      384..     447:   13653376..  13653439:     64: 16383616: encoded
   13:      384..     447:   16383616..  16383679:     64: 13653376: encoded
   14:      448..     511:   13653440..  13653503:     64: 16383680: 
last,encoded,eof
tst.dat: 14 extents found


-- 
Michael


                 reply	other threads:[~2024-02-23  5:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ae2f2b23-da68-219c-1080-081ffe64ca9d@roznica.com.ua \
    --to=mclaud@roznica.com.ua \
    --cc=linux-bcachefs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).