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
mailto:ncl...@whamcloud.com>>
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.
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