How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to verify block numbers of file ?

2011-02-20 Thread Abhijit Hoskeri
On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@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.

Re: How to verify block numbers of file ?

2011-02-20 Thread abhi
Install sleuthkit. It has a bunch of utilities to examine metadata, blocks, etc. Specifically, checkout istat. On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri abhijithosk...@gmail.comwrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@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

Re: How to verify block numbers of file ?

2011-02-20 Thread Manish Katiyar
On Sun, Feb 20, 2011 at 5:22 AM, kashish bhatia kooles...@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? Use debugfs which comes with e2fsprogs. -- Regards, Kashish

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Hi, Manish How to use debugfs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

how to write modified inode back to disk?

2011-02-20 Thread kashish bhatia
hi all , here is my query : I made a module which access a disk inode using function named ext2_get_inode(). It returns structure pointer of disk block. I copied this structure pointer in a variable of same datatype as of disk inode which is present in my module. Then I changed some fields of

Re: pci config space

2011-02-20 Thread Asim
Thanks for your response. On Sat, Feb 19, 2011 at 11:33 PM, Greg KH g...@kroah.com wrote: On Sat, Feb 19, 2011 at 03:32:51PM -0600, Asim wrote: Hi, While this may just be connecting the dots, I am not able to fully understand how pci_save_state works. I see that the pci_save_state and

Re: How to verify block numbers of file ?

2011-02-20 Thread Manish Katiyar
On Sun, Feb 20, 2011 at 10:05 AM, kashish bhatia kooles...@gmail.com wrote: Hi, Manish How to use debugfs? debugfs: ncheck 12 Inode Pathname 12 //abc debugfs: stat 12 Inode: 12 Type: regularMode: 0644 Flags: 0x0 Generation: 143681507Version: 0x User: 1000

Re: How to verify block numbers of file ?

2011-02-20 Thread SandeepKsinha
On Sun, Feb 20, 2011 at 8:47 PM, kashish bhatia kooles...@gmail.com wrote: On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri abhijithosk...@gmail.com wrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the

Re: How to verify block numbers of file ?

2011-02-20 Thread Greg Freemyer
On Sun, Feb 20, 2011 at 9:02 AM, Abhijit Hoskeri abhijithosk...@gmail.com wrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@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