[lustre-discuss] stat

Andreas Dilger adilger at whamcloud.com
Mon May 6 11:13:47 PDT 2019


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 <nclark at whamcloud.com<mailto:nclark at whamcloud.com>> 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
lustre-discuss at lists.lustre.org<mailto:lustre-discuss at 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 at lists.lustre.org<mailto:lustre-discuss at lists.lustre.org>
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20190506/1a102a15/attachment.html>


More information about the lustre-discuss mailing list