[lustre-discuss] stat

Nathaniel Clark nclark at whamcloud.com
Wed May 1 08:35:10 PDT 2019


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 at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

-- 
Nathaniel Clark
Senior Software Engineer
Whamcloud / DDN



More information about the lustre-discuss mailing list