getbmap!!!!!!!

Anshul Kundra anshul.kundra at hcl.com
Tue Mar 6 11:11:57 CST 2012


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.

-----------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20120306/de964bb3/attachment.htm>


More information about the xfs mailing list