<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dennis</p>
    <p>Thanks for the response.  There are other reasons I want to
      suppress these messages.</p>
    <p>1) I am trying to minimize system calls.</p>
    <p>2) It's kind of overkill for llapi_file_open() to print to
      stderr.  The function already returns -1 with errno=EEXIST. 
      Shouldn't it be up to the caller to decide if a message should be
      printed.<br>
    </p>
    <p>3) There are other messages, different than the <b>stripe
        already set</b>,  that I also would like to suppress.  Most
      notably "<b>Invalid argument</b>".  I hate to think that I have to
      check validity of all the striping arguments to prevent the
      messages to stderr.  I'll also point that even <b><font
          face="Courier New, Courier, monospace">lfs setstripe</font></b>
      doesn't even go to the trouble to tell you which argument is
      invalid.</p>
    <p><font face="Courier New, Courier, monospace">    % lfs setstripe
        -c 486 -i 45 file.dat<br>
            error on ioctl 0x4008669a for 'file.dat' (3): Invalid
        argument<br>
            error: setstripe: create stripe file 'file.dat' failed<br>
            %</font><br>
    </p>
    <p>John<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 4/30/2016 12:27 PM, Dennis Nelson
      wrote:<br>
    </div>
    <blockquote cite="mid:B5F5D140-88E1-4DFA-A44E-33E46AE848B4@ddn.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>Check for existing files before making the call?  And don't
        issue the call if the file exists.  You cannot change stripe
        attributes on an existing file.<br>
        <br>
        Sent from my iPhone</div>
      <div><br>
        On Apr 30, 2016, at 11:51 AM, John Bauer <<a
          moz-do-not-send="true" href="mailto:bauerj@iodoctors.com"><a class="moz-txt-link-abbreviated" href="mailto:bauerj@iodoctors.com">bauerj@iodoctors.com</a></a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <p>I am implementing the use of<font face="Courier New,
              Courier, monospace"><b> llapi_file_open()</b></font> in my
            I/O library so I can set the striping.  If the file already
            exists I get the following message on stderr:<br>
          </p>
          <p><b><font face="Courier New, Courier, monospace">error on
                ioctl 0x4008669a for 'dd.dat' (4): stripe already set</font></b><br>
          </p>
          Is there some way to suppress this message?  The end-uers of
          my library will get these messages in stderr of their job and
          will likely have no clue as to why.  My library detects the
          failed llapi_file_open() and retrys with open64() and spits
          out its own error message to the library's log.<br>
          <br>
          Thanks<br>
          <br>
          John<br>
          <pre class="moz-signature" cols="72">-- 
I/O Doctors, LLC
507-766-0378
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:bauerj@iodoctors.com">bauerj@iodoctors.com</a></pre>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>lustre-discuss mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
          <span><a moz-do-not-send="true"
              href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
        </div>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
I/O Doctors, LLC
507-766-0378
<a class="moz-txt-link-abbreviated" href="mailto:bauerj@iodoctors.com">bauerj@iodoctors.com</a></pre>
  </body>
</html>