<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:9pt" ><div dir="ltr" ><font size="2" face="Default Monospace,Courier New,Courier,monospace" >> I am really not sure what the issue with the code path for this as it<br>> is 35 lines of C including comments to get the fileset if one exists<br>> for a given path on a GPFS file system. You open a random file on the<br>> path, call gpfs_fcntl and then gpfs_getfilesetid. It's then a simple<br>> call to gpfs_quotactl.</font></div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" > </div>
<div dir="ltr" >The main problem is that the API requires opening a file to query the fileset id,</div>
<div dir="ltr" >which in turn conflicts with sharemodes and can break oplocks. It also incurs</div>
<div dir="ltr" >the additional overhead of four calls. Due to another limitation, this is done</div>
<div dir="ltr" >for every I/O call in the worst case. The workaround for not opening the file</div>
<div dir="ltr" >would be to determine the directory holding the file and opening that. This</div>
<div dir="ltr" >is complicated, but still has the overhead of the additional calls.</div> 

<div dir="ltr" >The short-answer to all of that is that from a Samba perspective,</div>
<div dir="ltr" >--filesetdf is the better option to determine the fileset quota.</div>
<div dir="ltr" > </div>
<div dir="ltr" >The API calls to query for user and group quota simply take a path, so they</div>
<div dir="ltr" >don't have the same complications as the query for the fileset quota.</div>
<div dir="ltr" > </div>
<div dir="ltr" >Regards,</div>
<div dir="ltr" ><br><font size="2" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" >Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ<br>christof.schmitt@us.ibm.com  ||  +1-520-799-2469    (T/L: 321-2469)</font></font></div></div></div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk><br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><br>Cc:<br>Subject: Re: [gpfsug-discuss] SMB quotas query<br>Date: Wed, May 16, 2018 2:02 AM<br> 
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >On Wed, 2018-05-16 at 08:51 +0000, Sobey, Richard A wrote:<br>> For us the only one that matters is the fileset quota. With or<br>> without –perfileset-quota set, we simply see a quota value for one of<br>> the filesets that is mapped to a drive, and every other mapped drives<br>> inherits the same value. whether it’s true or not.<br>>  <br>> Just about to do some SMB tracing for my PMR.<br>>  <br><br>I have a fully working solution that uses the dfree option in Samba if<br>you want.<br><br>I am with you here in that a lot of places will be carving a GPFS file<br>system up with file sets with a quota that are then shared to a group<br>of users and you want the disk size, and amount free to show up  on the<br>clients based on the quota for the fileset not the whole file system.<br><br>I am really not sure what the issue with the code path for this as it<br>is 35 lines of C including comments to get the fileset if one exists<br>for a given path on a GPFS file system. You open a random file on the<br>path, call gpfs_fcntl and then gpfs_getfilesetid. It's then a simple<br>call to gpfs_quotactl.<br><br>JAB.<br><br>--<br>Jonathan A. Buzzard                         Tel: +44141-5483420<br>HPC System Administrator, ARCHIE-WeSt.<br>University of Strathclyde, John Anderson Building, Glasgow. G4 0NG<br><br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font><br> </div></blockquote>
<div dir="ltr" > </div></div><BR>