From: sandeepksinha@gmail.com (SandeepKsinha)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to verify block numbers of file ?
Date: Mon, 21 Feb 2011 10:57:47 +0530 [thread overview]
Message-ID: <AANLkTikDuOK++8stNjVaZ1ZNZ_5e9GKpJ7rydSMBPSKR@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=HbuW=WnO8aotREDMiDGvLT9RLM6mtrq-fRa4K@mail.gmail.com>
On Sun, Feb 20, 2011 at 8:47 PM, kashish bhatia <koolest77@gmail.com> wrote:
>
>
> On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri <abhijithoskeri@gmail.com>
> wrote:
>>
>> 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?
>> >
>>
You can use debugfs utility. Otherwise if you want to use the API, you
can use FIBMAP.
Google for usage of FIBMAP, you will get it for sure !
>> 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
>
>
> What exactly FIBMAP is? and how to use it ?
>
> For instance , if I made my own module and I am using ioctl. Then how should
> I use it?
>
> Is it a function?
>
>
> --
> Regards,
> Kashish
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
Regards,
Sandeep.
?To learn is to change. Education is a process that changes the learner.?
next prev parent reply other threads:[~2011-02-21 5:27 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
2011-02-20 15:17 ` kashish bhatia
2011-02-20 15:42 ` Abhijit Hoskeri
2011-02-21 5:27 ` SandeepKsinha [this message]
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=AANLkTikDuOK++8stNjVaZ1ZNZ_5e9GKpJ7rydSMBPSKR@mail.gmail.com \
--to=sandeepksinha@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).