LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-21-2011, 08:20 AM   #1
vishaluttamsalve
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Retrieving the Indirect blocks of file.


Hi...

I need to retrieve the inode of a file on EXT3. And also display the
direct data block numbers of that file. Now,we are focusing on Indirect chain.
But finding difficulties in understanding the CODE.
We have problems with understanding the structure of Indirect.

struct Indirect
{
__le32 *p;
__le32 key;
struct buffer_head *bh;
}

Any idea,how to trace Indirect chain of file??? please suggest..

This structure has been defined in fs/ext3/inode.c

Last edited by vishaluttamsalve; 12-22-2011 at 10:34 PM.
 
Old 12-26-2011, 02:21 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you find unclear in this structure? It's quite simple. It seems to me that you want something like a function ext3_get_branch. Is it correct?
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving data from Corrupt File System netghost1115 Linux - General 1 10-27-2009 01:48 PM
Retrieving records from a file vigneshinbox Programming 1 03-27-2009 05:48 AM
retrieving original file after saved changes sankarv Linux - General 3 12-03-2008 12:29 AM
retrieving my file Chris106 Linux - Newbie 3 09-08-2008 09:48 PM
Retrieving important file on Windows General General 3 04-13-2006 07:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration