From mboxrd@z Thu Jan 1 00:00:00 1970 From: sandeepksinha@gmail.com (SandeepKsinha) Date: Mon, 21 Feb 2011 10:57:47 +0530 Subject: How to verify block numbers of file ? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sun, Feb 20, 2011 at 8:47 PM, kashish bhatia wrote: > > > On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri > wrote: >> >> On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia >> 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.?