<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
It would be useful to add an llapi_ function for this. In connection with LSOM the client<span style="background-color: rgba(255, 255, 255, 0);"> will also be able to get the approximate file size, once </span><a href="https://jira.whamcloud.com/browse/LU-11367">https://jira.whamcloud.com/browse/LU-11367</a> is
 landed. <br>
<br>
<div id="AppleMailSignature" dir="ltr">Cheers, Andreas</div>
<div dir="ltr"><br>
On May 1, 2019, at 09:35, Nathaniel Clark <<a href="mailto:nclark@whamcloud.com">nclark@whamcloud.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span>You should look at the IOC_MDC_GETFILEINFO ioctl.  "Example" usage can
</span><br>
<span>be found in</span><br>
<span>lustre-release/lustre/utils/liblustreapi.c::get_lmd_info_fd().</span><br>
<span></span><br>
<span>There currently isn't a convenient liblustre API call for it.  It </span><br>
<span>doesn't poll the OSTs, it just grabs info from the MDT, so it will do </span>
<br>
<span>fewer RPCs.</span><br>
<span></span><br>
<span>On 4/24/19 12:05 PM, Harms, Kevin wrote:</span><br>
<blockquote type="cite"><span>  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?</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>thanks,</span><br>
</blockquote>
<blockquote type="cite"><span>kevin</span><br>
</blockquote>
<blockquote type="cite"><span>_______________________________________________</span><br>
</blockquote>
<blockquote type="cite"><span>lustre-discuss mailing list</span><br>
</blockquote>
<blockquote type="cite"><span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
</blockquote>
<blockquote type="cite"><span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
</blockquote>
<span></span><br>
<span>-- </span><br>
<span>Nathaniel Clark</span><br>
<span>Senior Software Engineer</span><br>
<span>Whamcloud / DDN</span><br>
<span></span><br>
<span>_______________________________________________</span><br>
<span>lustre-discuss mailing list</span><br>
<span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
<span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
</div>
</blockquote>
</body>
</html>