<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><tt>Greetings,<br>
<br>
I hope this is the correct place to post this, if not I apologize.<br>
<br>
I'm attempting work with extended attributes on gpfs using the C API interface. I'm wanting to be able to read attributes and then based off that value, change the attribute.<br>
<br>
What I've done so far is a policy scan that collects certain inodes based of an xattr value. From there I collect inode numbers. Just to clarify, I'm trying to not work with a path name of any sorts, just inode.<br>
<br>
There are these functions:<br>
<br>
</tt>
<pre class="pre codeblock"><code>int gpfs_igetattrsx(gpfs_ifile_t *ifile, 
                    int flags, 
                    void *buffer, 
                    int bufferSize, 
                    int *attrSize);</code></pre>
<tt>and<br>
</tt>
<pre class="pre codeblock"><code>int gpfs_iputattrsx(gpfs_ifile_t *ifile,
                    int flags, 
                    void *buffer,
                    const char *pathName);  <br><br>I'm looking at how to use iputattrsx but the void *buffer part confuses me on what struct to use. I've been playing with igetattrsx to try to attempt and figure out what struct to use based off the data I am seeing. I've come across gpfsGetSetXAttr_t but haven't had any luck using it.<br><br>My question is, is this even possible to manipulate custom XATTRs via the gpfs api? If so any ideas on what am I doing wrong?<br><br>Thanks,<br><br>Christopher<br></code></pre>
<br>
</div>
</body>
</html>