<font size=2 face="sans-serif">(John Hearns, et. al.)</font><br><br><font size=2 face="sans-serif">Some minor script hacking would be the
easiest way add test(s) for other MISC_ATTRIBUTES</font><br><br><font size=2 face="sans-serif">Notice mmfind concentrates on providing
the most popular classic(POSIX) and Linux predicates, BUT also adds a few
gpfs specific predicates</font><br><font size=2 face="sans-serif">(mmfind --help show you these)  -ea
-eaWithValue -gpfsImmut -gpfsAppOnly</font><br><br><font size=2 face="sans-serif">Look at the implementation of  -gpfsImmut
in  tr_findToPol.pl ...</font><br><br><font size=2 face="sans-serif">sub tr_gpfsImmut{</font><br><font size=2 face="sans-serif">  return "( /* -gpfsImmut
*/ MISC_ATTRIBUTES LIKE '%X%')";</font><br><font size=2 face="sans-serif">}</font><br><br><br><font size=2 face="sans-serif">So easy to extend this for any or all
the others....  True it's perl, but you don't have to be a perl expert
to cut-paste-hack another predicate into the script.</font><br><br><font size=2 face="sans-serif">Let us know how you make out with this...</font><br><font size=2 face="sans-serif">Perhaps we shall add  a general
predicate -gpfsMiscAttrLike '...'   to the next version...</font><br><font size=2 face="sans-serif"><br>-- Marc K of GPFS</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">John Hearns <john.hearns@asml.com></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">gpfsug main discussion
list <gpfsug-discuss@spectrumscale.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">03/08/2018 04:59 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [gpfsug-discuss]
mmfind -ls and so forth</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><font size=2 face="Calibri">On the subject of mmfind,</font><br><font size=2 face="Calibri">I would like to find files which have the
misc attributes relevant to AFM.</font><br><font size=2 face="Calibri">For instance files which have the attribute
ā€˜vā€™ The file is newly created, not yet copied to home</font><br><font size=2 face="Calibri">I can write a policy to do this, and I
have a relevant policy written.</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">However I would like to do this using mmfind,
which seems a nice general utility.</font><br><font size=2 face="Calibri">This syntax does not work:</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">mmfind /hpc -eaWithValue MISC_ATTRIBUTES===v</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">Before anyone says it, I am mixing up MISC_ATTRIBUTES
and extended attributes!</font><br><font size=2 face="Calibri">My question really is ā€“ has anyone done
this sort of serch using mmfind?</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">Thankyou</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri"><b>From:</b> gpfsug-discuss-bounces@spectrumscale.org
[</font><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org"><font size=2 face="Calibri">mailto:gpfsug-discuss-bounces@spectrumscale.org</font></a><font size=2 face="Calibri">]
<b>On Behalf Of </b>Marc A Kaplan<b><br>Sent:</b> Wednesday, March 07, 2018 8:16 PM<b><br>To:</b> gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><b><br>Subject:</b> Re: [gpfsug-discuss] mmfind -ls and so forth</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Arial">As always when dealing with computers and
potentially long running jobs, run a test on a handful of files first,
so you can rapidly debug.<br>Did you read the mmfind.README ?</font><font size=2 face="Calibri"><br></font><font size=2 face="Arial"><br>It mentions...that this sample utility "some user assembly required..."
 ... </font><font size=2 face="Calibri"><br></font><font size=2 face="Arial"><br>mmfindUtil_processOutputFile.c<br>  A utility to parse the "list file" produced by mmapplypolicy
and to print<br>    it in a find-compatible format<br>  mmfind invokes it once mmapplypolicy begins to populate the "list
file"</font><font size=2 face="Calibri"><br></font><font size=2 face="Arial"><br>mmfindUtil_processOutputFile.sampleMakefile<br>  copy to 'makefile', modify as needed, and run 'make' to compile
mmfindUtil_processOutputFile.c<br>  This should produce a binary called mmfindUtil_processOutputFile<br>  mmfind will not be able to run until this utility has been compiled<br>  on the node from which you launch mmfind.<br><br>Works for me...<br>[root@n2 ilm]# ./mmfind /goo/zdbig -ls<br>2463649  256 drwxr-xr-x   2 root     root    
  262144 Feb  9 11:41 /goo/zdbig<br>6804497    0 -rw-r--r--   1 root     root  
         0 Feb  9 11:41 /goo/zdbig/xy</font><p><font size=3>-- The information contained in this communication and
any attachments is confidential and may be privileged, and is for the sole
use of the intended recipient(s). Any unauthorized review, use, disclosure
or distribution is prohibited. Unless explicitly stated otherwise in the
body of this communication or the attachment thereto (if any), the information
is provided on an AS-IS basis without any express or implied warranties
or liabilities. To the extent you are relying on this information, you
are doing so at your own risk. If you are not the intended recipient, please
notify the sender immediately by replying to this message and destroy all
copies of this message and any attachments. Neither the sender nor the
company/group of companies he or she represents shall be liable for the
proper and complete transmission of the information contained in this communication,
or for any delay in its receipt. </font><tt><font size=2>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=LDC-t-w-jkuH2fJZ1lME_JUjzABDz3y90ptTlYWM3rc&s=xrFd1LD5dWq9GogfeOGs9ZCtqoptErjmGfJzD3eXhz4&e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=LDC-t-w-jkuH2fJZ1lME_JUjzABDz3y90ptTlYWM3rc&s=xrFd1LD5dWq9GogfeOGs9ZCtqoptErjmGfJzD3eXhz4&e=</font></tt></a><tt><font size=2><br></font></tt><p><p><BR>