xfs
[Top] [All Lists]

Re: getbmap!!!!!!!

To: Anshul Kundra <anshul.kundra@xxxxxxx>
Subject: Re: getbmap!!!!!!!
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 06 Mar 2012 17:51:32 -0600
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
In-reply-to: <CACBF2D716C5104BAC48A16827DE5B150A220515A6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <CACBF2D716C5104BAC48A16827DE5B150A220515A6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.10
On 03/06/2012 11:11 AM, Anshul Kundra wrote:
> To Developers ,
> 
>  
> 
> Please provide me some description regarding the xfs_getbmap what it
> suppose to do , suppose I want to create a fiule and write on it I got
> the inode of file then what fields I will send to the xfs getbmap
> (called via xfs_ioc_getbmapx ) ,

Please see the "XFS_IOC_GETBMAP" section in the xfsctl(3) man page.

-Eric

> -          What fields of getbmapx structure will be initialized  before
> passing in the xfs_ioc_getbmapx ?
> 
> -          What it will do after passing the fields (Function overview
> if possible)
> 
> -          Why the arg+1 is being passed in the xfs_ioc_getbmapx
> 
> I know the reason of formatter
> 
>  
> 
> Xfs_ioc_getbmapx(arguments)
> 
> {
> 
>  
> 
>         Xfs_getbmap();
> 
>         Copy_to_user() ; // why the copying done here as in the function
> itself for every entry it is copying the information into user buffer
> then why outside the function call here it needs the copy again
> 
> }
> 
>  
> 
> Thanks & Best Regards
> 
> Anshul Kundra
> 
> 
> ------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>