* getbmap!!!!!!!
@ 2012-03-06 17:11 Anshul Kundra
2012-03-06 23:51 ` getbmap!!!!!!! Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: Anshul Kundra @ 2012-03-06 17:11 UTC (permalink / raw)
To: xfs@oss.sgi.com
[-- Attachment #1.1: Type: text/plain, Size: 1899 bytes --]
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 ) ,
- 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
________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 6075 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: getbmap!!!!!!!
2012-03-06 17:11 getbmap!!!!!!! Anshul Kundra
@ 2012-03-06 23:51 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2012-03-06 23:51 UTC (permalink / raw)
To: Anshul Kundra; +Cc: xfs@oss.sgi.com
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
>
>
> ------------------------------------------------------------------------
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-06 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 17:11 getbmap!!!!!!! Anshul Kundra
2012-03-06 23:51 ` getbmap!!!!!!! Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox