<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">On the subject of mmfind,<o:p></o:p></p>
<p class="MsoNormal">I would like to find files which have the misc attributes relevant to AFM.<o:p></o:p></p>
<p class="MsoNormal">For instance files which have the attribute ‘v’ The file is newly created, not yet copied to home<o:p></o:p></p>
<p class="MsoNormal">I can write a policy to do this, and I have a relevant policy written.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However I would like to do this using mmfind, which seems a nice general utility.<o:p></o:p></p>
<p class="MsoNormal">This syntax does not work:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mmfind /hpc -eaWithValue MISC_ATTRIBUTES===v<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Before anyone says it, I am mixing up MISC_ATTRIBUTES and extended attributes!<o:p></o:p></p>
<p class="MsoNormal">My question really is – has anyone done this sort of serch using mmfind?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thankyou<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org]
<b>On Behalf Of </b>Marc A Kaplan<br>
<b>Sent:</b> Wednesday, March 07, 2018 8:16 PM<br>
<b>To:</b> gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><br>
<b>Subject:</b> Re: [gpfsug-discuss] mmfind -ls and so forth<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">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 ?</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">It mentions...that this sample utility "some user assembly required..."  ...
</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">mmfindUtil_processOutputFile.c</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  A utility to parse the "list file" produced by mmapplypolicy and to print</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">    it in a find-compatible format</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  mmfind invokes it once mmapplypolicy begins to populate the "list file"</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">mmfindUtil_processOutputFile.sampleMakefile</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  copy to 'makefile', modify as needed, and run 'make' to compile mmfindUtil_processOutputFile.c</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  This should produce a binary called mmfindUtil_processOutputFile</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  mmfind will not be able to run until this utility has been compiled</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">  on the node from which you launch mmfind.</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Works for me...</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">[root@n2 ilm]# ./mmfind /goo/zdbig -ls</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">2463649  256 drwxr-xr-x   2 root     root       262144 Feb  9 11:41 /goo/zdbig</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">6804497    0 -rw-r--r--   1 root     root            0 Feb  9 11:41 /goo/zdbig/xy</span><o:p></o:p></p>
</div>
-- 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.
</body>
</html>