<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have a question regarding the gluster api for retrieving quotas for a volume..</div><div><br></div><div>One of my gluster setups is v3.7.9 and the other is 3.10.11. I need information about disk quotas set and space used for a certain volume for some monitoring and reports I am working on. Basically I would run <i>sudo gluster volume quota glusterfs_main list</i> and pick out the path, hard limit and used space.</div><div><br></div><div>My first version was written in perl and it works, but it turns out that in the subsystem where this is supposed to work, I am running as a regular user and have no root access, not a sudoer etc..</div><div>I should be able to rewrite it in C++ and use setuid() for the single CLI call, but then I have to parse textual data from C++ which is less than ideal.<br></div><div><br></div><div>Is there a different method of retrieving this information? I&#39;m currently looking into the libgfapi in the <a href="https://github.com/gluster/glusterfs/tree/master/api/src" target="_blank">glustersfs git repo</a>, but since I have time constraints I figured I also drop an email in case anyone can point me in the right direction..</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Best regards,</div><div>Aleksandar<br></div></div>