kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: abhijithoskeri@gmail.com (Abhijit Hoskeri)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to verify block numbers of file ?
Date: Sun, 20 Feb 2011 19:32:16 +0530	[thread overview]
Message-ID: <AANLkTimziyAwkjeBvSfLB659uJMKvmooE+sTARJ3aSvm@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikr-dVZyqVnJiKJ3Ap5hRNfahEnKp1M8N=Vyg_0@mail.gmail.com>

On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia <koolest77@gmail.com> wrote:
> Is there any method/command/utility to know what are the block numbers which
> are allocated to a file in ext2 fs?
>

The FIBMAP ioctl gives you the block number give an integer, which is
the nth block attached to the inode. It includes blocks allocated to
store indirect blocks too.

-Abhijit

  reply	other threads:[~2011-02-20 14:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 13:22 How to verify block numbers of file ? kashish bhatia
2011-02-20 14:02 ` Abhijit Hoskeri [this message]
2011-02-20 15:17   ` kashish bhatia
2011-02-20 15:42     ` Abhijit Hoskeri
2011-02-21  5:27     ` SandeepKsinha
2011-02-21  5:43   ` Greg Freemyer
2011-02-20 14:18 ` abhi
2011-02-20 17:03 ` Manish Katiyar
2011-02-20 18:05   ` kashish bhatia
2011-02-20 20:39     ` Manish Katiyar
2011-03-08 10:25       ` kashish bhatia
2011-03-08 13:54         ` Vineet Agarwal
2011-03-08 15:01           ` kashish bhatia

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=AANLkTimziyAwkjeBvSfLB659uJMKvmooE+sTARJ3aSvm@mail.gmail.com \
    --to=abhijithoskeri@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 NNTP newsgroup(s).