Re: Mapping of Filename to allocated blocks

2016-07-20 Thread Manoj Rao
Thanks Arshad, Luis for the response. This project was on back burner for a while and now it's coming back to life. tl;dr: I'm looking for a way to tell if a given inode object belongs to a persistent block device or not ex: a sysfs node doesn't have a corresponding block device backing it. I

Re: Mapping of Filename to allocated blocks

2016-04-28 Thread Luis de Bethencourt
On 28/04/16 04:32, arshad hussain wrote: > On Thu, Apr 28, 2016 at 7:28 AM, Manoj Rao wrote: >> Hi All, >> >> I'm looking for a way to get a filename associated with a given physical >> block (ideally what I'd like is a mapping of filename <=> all the allocated >> blocks

Re: Mapping of Filename to allocated blocks

2016-04-27 Thread arshad hussain
On Thu, Apr 28, 2016 at 7:28 AM, Manoj Rao wrote: > Hi All, > > I'm looking for a way to get a filename associated with a given physical > block (ideally what I'd like is a mapping of filename <=> all the allocated > blocks for this file). If you have not done already,

Mapping of Filename to allocated blocks

2016-04-27 Thread Manoj Rao
Hi All, I'm looking for a way to get a filename associated with a given physical block (ideally what I'd like is a mapping of filename <=> all the allocated blocks for this file). Is there a recommended way to do this already in kernel? if not, then where should I start looking to add changes?