<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" >
<div dir="ltr" >This is due to a design trade-off in mmapplypolicy. </div>

<div dir="ltr" >Mmapplypolicy bypasses locks and caches - so it doesn't "see" inode&metadata changes until they are flushed to disk.</div>

<div dir="ltr" >I believe this is hinted at in our publications.</div>

<div dir="ltr" > </div>

<div dir="ltr" >You can force a flush with`mmfsctl fsname suspend-write; mmfsctl fsname resume`</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" >----- Original message -----<br>
From: aquan <aquan@o2.pl><br>
Sent by: gpfsug-discuss-bounces@gpfsug.org<br>
To: gpfsug-discuss@gpfsug.org<br>
Cc:<br>
Subject: [gpfsug-discuss] Unix mode bits and mmapplypolicy<br>
Date: Fri, Aug 28, 2015 11:12 AM<br>
 <br>
Hello,<br>
<br>
This is my first time here. I'm a computer science student from Poland<br>
and I use GPFS during my internship at DESY. GPFS is a completely new<br>
experience to me, I don't know much about file systems and especially those<br>
used on clusters.<br>
I would like to ask about the unix mode bits and mmapplypolicy.<br>
What I noticed is that when I do the following:<br>
<br>
1. Recursively call chmod on some directory (i.e. chmod -R 0777 some_directory)<br>
2. Call mmapplypolicy to list mode (permissions),<br>
<br>
the listed modes of files don't correspond exactly to the modes that I set with chmod.<br>
However, if I wait a bit between step 1 and 2, the listed modes are correct.<br>
It seems that the mode bits are updated somewhat asynchronically and if I run<br>
mmapplypolicy too soon, they will contain old values.<br>
<br>
I would like to ask if it is possible to make sure that before calling mmputacl,<br>
the mode bits of that directory will be up to date on the list generated by a policy?<br>
<br>
- Omer Sakarya
<div><font face="Default Monospace,Courier New,Courier,monospace" size="2" >_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at gpfsug.org<br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank" >http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font></div>
</blockquote>

<div dir="ltr" > </div>
</div>