It would be useful to add an llapi_ function for this. In connection with LSOM 
the client will also be able to get the approximate file size, once 
https://jira.whamcloud.com/browse/LU-11367 is landed.

Cheers, Andreas

On May 1, 2019, at 09:35, Nathaniel Clark 
<[email protected]<mailto:[email protected]>> wrote:

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
[email protected]<mailto:[email protected]>
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

--
Nathaniel Clark
Senior Software Engineer
Whamcloud / DDN

_______________________________________________
lustre-discuss mailing list
[email protected]<mailto:[email protected]>
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to