<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
On Jun 14, 2022, at 05:32, John Bauer &lt;<a href="mailto:bauerj@iodoctors.com" class="">bauerj@iodoctors.com</a>&gt; wrote:<br class="">
<div>
<blockquote type="cite" class=""><br class="Apple-interchange-newline">
<div class="">
<div class="">I have had little success in my search for documentation on pool functions in llapi. I've looked in:<br class="">
<br class="">
<a href="https://wiki.lustre.org/PFL2_High_Level_Design" class="">https://wiki.lustre.org/PFL2_High_Level_Design</a><br class="">
<br class="">
https://doc.lustre.org/lustre_manual.xhtml#managingstripingfreespace<br class="">
<br class="">
<br class="">
I'm looking for info on llapi_get_poollist() and llapi_get_poolmembers().&nbsp; I've found the prototype in /usr/include/lustre/lustreapi.h, but that's about it.<br class="">
<br class="">
Can anyone point me to some documentation?<br class="">
</div>
</div>
</blockquote>
<br class="">
</div>
<div>it looks like there aren't man pages for these functions, just the function comment blocks</div>
<div>in the code, and their usage internally:</div>
<div><br class="">
</div>
<div>/**<br class="">
&nbsp;* Get the list of pools in a filesystem.<br class="">
&nbsp;* \param name&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;filesystem name or path<br class="">
&nbsp;* \param poollist&nbsp; &nbsp;&nbsp;caller-allocated array of char*<br class="">
&nbsp;* \param list_size&nbsp;&nbsp;&nbsp;size of the poollist array<br class="">
&nbsp;* \param buffer&nbsp; &nbsp; &nbsp;&nbsp;caller-allocated buffer for storing pool names<br class="">
&nbsp;* \param buffer_size size of the buffer<br class="">
&nbsp;*<br class="">
&nbsp;* \return number of pools retrieved for this filesystem<br class="">
&nbsp;* \retval -error failure<br class="">
&nbsp;*/<br class="">
int&nbsp;llapi_get_poollist(const&nbsp;char&nbsp;*name,&nbsp;char&nbsp;**poollist,&nbsp;int&nbsp;list_size,<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char&nbsp;*buffer,&nbsp;int&nbsp;buffer_size)</div>
<div><br class="">
</div>
<div>/**<br class="">
&nbsp;* Get the list of pool members.<br class="">
&nbsp;* \param poolname&nbsp; &nbsp;&nbsp;string of format \&lt;fsname\&gt;.\&lt;poolname\&gt;<br class="">
&nbsp;* \param members&nbsp;&nbsp; &nbsp;&nbsp;caller-allocated array of char*<br class="">
&nbsp;* \param list_size&nbsp;&nbsp;&nbsp;size of the members array<br class="">
&nbsp;* \param buffer&nbsp; &nbsp; &nbsp;&nbsp;caller-allocated buffer for storing OST names<br class="">
&nbsp;* \param buffer_size size of the buffer<br class="">
&nbsp;*<br class="">
&nbsp;* \return number of members retrieved for this pool<br class="">
&nbsp;* \retval -error failure<br class="">
&nbsp;*/<br class="">
int&nbsp;llapi_get_poolmembers(const&nbsp;char&nbsp;*poolname,&nbsp;char&nbsp;**members,<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;int&nbsp;list_size,&nbsp;char&nbsp;*buffer,&nbsp;int&nbsp;buffer_size)</div>
<div><br class="">
</div>
<div>Patches to add&nbsp;llapi_get_poollist.3 and llapi_get_poolmembers.3 (and related) man</div>
<div>pages welcome. The pool related functions should probably be moved into a new</div>
<div>liblustreapi_pool.c file to reduce the size of liblustreapi.c.</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Cheers, Andreas</div>
<div>--</div>
<div>Andreas Dilger</div>
<div>Lustre&nbsp;Principal Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</body>
</html>