<div dir="ltr"><div>Our backup software found an unusual result when listing xattrs for directories.</div><div><br></div><div>On the client side, when requesting the buffer size for the list:</div>listxattr("foo", NULL, 0)               = 36 (bytes)<div><br><div>But when the list is actually read, it comes up short:</div><div>listxattr("foo", "trusted.link\0trusted.lma\0", 256) = 25 (bytes)<br><br>On the server side, on an ldiskfs mount, the results are more consistent.<br>listxattr("foo", NULL, 0)               = 25<br>listxattr("foo", "trusted.lma\0trusted.link\0", 256) = 25<br clear="all"><div><br></div><div>NOTE: we run this code on lot's of FS's and have not seen this anywhere else, yet.</div><div>According to the docs for listxattr, it is possible to get different results on active objects</div><div>but that is not the case here.</div><div><br></div><div>I'm reporting this because, while it does not seem to be a problem for us now,</div><div>I'd like to understand the "why"/ . Also, this seems like something that may cause</div><div>problems with more complex directory xatts's which I have not tested yet.</div><div><br></div><div>I plan to deep-dive on this one to get more information, unless someone has</div><div>a reasonable explanation as to why the inconsistency exists and that is is "ok". </div><div><br></div><div>If this is something that should be reported as a bug, just let me know and I'll submit</div><div>one with as much detail as I can get.</div><div><br></div><div>Thanks!</div><div>Kris</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">This message is NOT encrypted
<br>--------------------------------
<br>Mr. Kristen J. Webb
<br>Chief Technology Officer
<br>Teradactyl LLC.
<br>2450 Baylor Dr. S.E.
<br>Albuquerque, New Mexico 87106
<br>Phone: 1-<span style="display:inline;font-size:inherit;padding:0pt;color:rgb(80,80,80)">505-338-6000</span>
<br>Email: <a href="mailto:kwebb@teradactyl.com" target="_blank">kwebb@teradactyl.com</a>
<br>Web: <a href="http://www.teradactyl.com" target="_blank">http://www.teradactyl.com</a>
<br>
<br><img src="https://drive.google.com/a/teradactyl.com/uc?id=1AtTRUbNsHoJJEO8vs4zd6D2oON5Evwq4&export=download"><br><br>Providers of Scalable Backup Solutions
<br>   for Unique Data Environments
<br>
<br>--------------------------------
<br>NOTICE TO RECIPIENTS: Any information contained in or attached to this
<br>message is intended solely for the use of the intended recipient(s). If
<br>you are not the intended recipient of this transmittal, you are hereby
<br>notified that you received this transmittal in error, and we request
<br>that you please delete and destroy all copies and attachments in your
<br>possession, notify the sender that you have received this communication
<br>in error, and note that any review or dissemination of, or the taking of
<br>any action in reliance on, this communication is expressly prohibited.
<br>
<br>
<br>Regular internet e-mail transmission cannot be guaranteed to be secure
<br>or error-free. Therefore, we do not represent that this information is
<br>complete or accurate, and it should not be relied upon as such. If you
<br>prefer to communicate with Teradactyl LLC. using secure (i.e., encrypted
<br>and/or digitally signed) e-mail transmission, please notify the sender.
<br>Otherwise, you will be deemed to have consented to communicate with
<br>Teradactyl via regular internet e-mail transmission. Please note that
<br>Teradactyl reserves the right to intercept, monitor, and retain all
<br>e-mail messages (including secure e-mail messages) sent to or from its
<br>systems as permitted by applicable law
</div></div></div></div></div></div></div>