<span style=" font-size:10pt;font-family:sans-serif">Look in gps.h....
I think the comment for acl_buffer_len is clear enough! &nbsp;</span><br><br><span style=" font-size:10pt;font-family:Courier New">/* Mapping of
buffer for gpfs_getacl, gpfs_putacl. */</span><br><span style=" font-size:10pt;font-family:Courier New">typedef struct
gpfs_opaque_acl</span><br><span style=" font-size:10pt;font-family:Courier New">{</span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; int &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;acl_buffer_len; &nbsp;/* <b>INPUT: &nbsp;Total
size of buffer (including this field).</b></span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTPUT: Actual size of the ACL
information. &nbsp;*/</span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; unsigned
short acl_version; &nbsp; &nbsp; /* INPUT: &nbsp;Set to zero.</span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTPUT: Current version of the
returned ACL. */</span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; unsigned
char &nbsp;acl_type; &nbsp; &nbsp; &nbsp; &nbsp;/* INPUT: &nbsp;Type of
ACL: access (1) or default (2). */</span><br><span style=" font-size:10pt;font-family:Courier New">&nbsp; char &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; acl_var_data[1]; /* OUTPUT: Remainder of the
ACL information. */</span><br><span style=" font-size:10pt;font-family:Courier New">} gpfs_opaque_acl_t;</span><br><br><br><br><br><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">From:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">Simon
Thompson &lt;S.J.Thompson@bham.ac.uk&gt;</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">To:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">&quot;gpfsug-discuss@spectrumscale.org&quot;
&lt;gpfsug-discuss@spectrumscale.org&gt;</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Date:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">12/17/2018
10:13 AM</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Subject:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">[gpfsug-discuss]
GPFS API</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Sent
by: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">gpfsug-discuss-bounces@spectrumscale.org</span><br><hr noshade><br><br><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Hi,</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">This
is all probably perfectly clear to someone with the GPFS source code but
\u2026 we\u2019re looking at writing some code using the API documented at:</span></p><p style="margin-top:0px;margin-Bottom:0px"><a href="https://www.ibm.com/support/knowledgecenter/STXKQY_5.0.1/com.ibm.spectrum.scale.v5r01.doc/pdf/scale_cpr.pdf"><span style=" font-size:11pt;color:#0082bf;font-family:Calibri"><u>https://www.ibm.com/support/knowledgecenter/STXKQY_5.0.1/com.ibm.spectrum.scale.v5r01.doc/pdf/scale_cpr.pdf</u></span></a></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Specifically
gpfs_getacl() function, in the docs you pass acl, and the notes say \u201cPointer
to a buffer mapped by the structure gpfs_opaque_acl_t or gpfs_acl_t, depending
on the value of flags. The first four bytes of the buffer must contain
its total size.\u201d. Reading the docs for gpfs_opaque_acl_t, this is a struct
of which the first element is an int. Is this the same 4 bytes referred
to as above containing the size, and is this the size of the struct, of
of the acl_var_data entry?</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">It
strikes me is should probably be the length of acl_var_data, but it is
not entirely clear?</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Thanks</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Simon</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span><tt><span style=" font-size:10pt">_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></span></tt><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss"><tt><span style=" font-size:10pt">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</span></tt></a><tt><span style=" font-size:10pt"><br></span></tt></p><p style="margin-top:0px;margin-Bottom:0px"></p><p style="margin-top:0px;margin-Bottom:0px"></p><BR>