You should look at the IOC_MDC_GETFILEINFO ioctl.  "Example" usage can 
be found in
lustre-release/lustre/utils/liblustreapi.c::get_lmd_info_fd().

There currently isn't a convenient liblustre API call for it.  It 
doesn't poll the OSTs, it just grabs info from the MDT, so it will do 
fewer RPCs.

On 4/24/19 12:05 PM, Harms, Kevin wrote:
>    Does Lustre provide an optimized stat("filename", ...) that requires fewer 
> RPCs than fd=open("filename", ...); stat(fd); ? If so, are there any 
> descriptions of this optimization?
>
> thanks,
> kevin
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss@lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

-- 
Nathaniel Clark
Senior Software Engineer
Whamcloud / DDN

_______________________________________________
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to