<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Yeah, that seems like a killer.  Wear-leveled FAT, it is.  They
    don't support something like JFFS2, do they?  Probably overkill...<br>
    <br>
    Greg<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Mark Webb-Johnson wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:F52E1FAA-56CC-48E7-809C-693E6BD9B35B@webb-johnson.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      OK, I looked into this is more detail…
      <div class=""><br class="">
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">
          <h2 style="box-sizing: border-box; margin-top: 0px;
            font-family: "Roboto Slab", ff-tisa-web-pro,
            Georgia, Arial, sans-serif; font-size: 24px; color: rgb(64,
            64, 64);" class="">Notes</h2>
          <blockquote style="box-sizing: border-box; margin: 0px 0px
            24px 24px; line-height: 24px; color: rgb(64, 64, 64);
            font-family: Lato, proxima-nova, "Helvetica Neue",
            Arial, sans-serif; font-size: 16px;" class="">
            <div style="box-sizing: border-box;" class="">
              <ul class="simple" style="box-sizing: border-box; margin:
                0px 0px 24px; padding: 0px; list-style-position:
                initial; list-style-image: initial; line-height: 24px;">
                <li style="box-sizing: border-box; list-style: disc;
                  margin-left: 24px;" class="">Presently, spiffs does
                  not support directories. It produces a flat structure.
                  If SPIFFS is mounted under <code class="literal
                    docutils" style="box-sizing: border-box;
                    font-family: Consolas, "Andale Mono WT",
                    "Andale Mono", "Lucida Console",
                    "Lucida Sans Typewriter", "DejaVu
                    Sans Mono", "Bitstream Vera Sans
                    Mono", "Liberation Mono",
                    "Nimbus Mono L", Monaco, "Courier
                    New", Courier, monospace; font-size: 12px;
                    white-space: nowrap; max-width: 100%;
                    background-color: rgb(255, 255, 255); border: 1px
                    solid rgb(225, 228, 229); padding: 2px 5px; color:
                    rgb(231, 76, 60); overflow-x: auto;
                    background-position: initial initial;
                    background-repeat: initial initial;"><span
                      class="pre" style="box-sizing: border-box;">/spiffs</span></code> creating
                  a file with path <code class="literal docutils"
                    style="box-sizing: border-box; font-family:
                    Consolas, "Andale Mono WT", "Andale
                    Mono", "Lucida Console", "Lucida
                    Sans Typewriter", "DejaVu Sans Mono",
                    "Bitstream Vera Sans Mono",
                    "Liberation Mono", "Nimbus Mono
                    L", Monaco, "Courier New", Courier,
                    monospace; font-size: 12px; white-space: nowrap;
                    max-width: 100%; background-color: rgb(255, 255,
                    255); border: 1px solid rgb(225, 228, 229); padding:
                    2px 5px; color: rgb(231, 76, 60); overflow-x: auto;
                    background-position: initial initial;
                    background-repeat: initial initial;"><span
                      class="pre" style="box-sizing: border-box;">/spiffs/tmp/myfile.txt</span></code> will
                  create a file called <code class="literal docutils"
                    style="box-sizing: border-box; font-family:
                    Consolas, "Andale Mono WT", "Andale
                    Mono", "Lucida Console", "Lucida
                    Sans Typewriter", "DejaVu Sans Mono",
                    "Bitstream Vera Sans Mono",
                    "Liberation Mono", "Nimbus Mono
                    L", Monaco, "Courier New", Courier,
                    monospace; font-size: 12px; white-space: nowrap;
                    max-width: 100%; background-color: rgb(255, 255,
                    255); border: 1px solid rgb(225, 228, 229); padding:
                    2px 5px; color: rgb(231, 76, 60); overflow-x: auto;
                    background-position: initial initial;
                    background-repeat: initial initial;"><span
                      class="pre" style="box-sizing: border-box;">/tmp/myfile.txt</span></code> in
                  SPIFFS, instead of <code class="literal docutils"
                    style="box-sizing: border-box; font-family:
                    Consolas, "Andale Mono WT", "Andale
                    Mono", "Lucida Console", "Lucida
                    Sans Typewriter", "DejaVu Sans Mono",
                    "Bitstream Vera Sans Mono",
                    "Liberation Mono", "Nimbus Mono
                    L", Monaco, "Courier New", Courier,
                    monospace; font-size: 12px; white-space: nowrap;
                    max-width: 100%; background-color: rgb(255, 255,
                    255); border: 1px solid rgb(225, 228, 229); padding:
                    2px 5px; color: rgb(231, 76, 60); overflow-x: auto;
                    background-position: initial initial;
                    background-repeat: initial initial;"><span
                      class="pre" style="box-sizing: border-box;">myfile.txt</span></code> under
                  directory <code class="literal docutils"
                    style="box-sizing: border-box; font-family:
                    Consolas, "Andale Mono WT", "Andale
                    Mono", "Lucida Console", "Lucida
                    Sans Typewriter", "DejaVu Sans Mono",
                    "Bitstream Vera Sans Mono",
                    "Liberation Mono", "Nimbus Mono
                    L", Monaco, "Courier New", Courier,
                    monospace; font-size: 12px; white-space: nowrap;
                    max-width: 100%; background-color: rgb(255, 255,
                    255); border: 1px solid rgb(225, 228, 229); padding:
                    2px 5px; color: rgb(231, 76, 60); overflow-x: auto;
                    background-position: initial initial;
                    background-repeat: initial initial;"><span
                      class="pre" style="box-sizing: border-box;">/spiffs/tmp</span></code>.</li>
                <li style="box-sizing: border-box; list-style: disc;
                  margin-left: 24px;" class="">It is not a realtime
                  stack. One write operation might last much longer than
                  another.</li>
                <li style="box-sizing: border-box; list-style: disc;
                  margin-left: 24px;" class="">Presently, it does not
                  detect or handle bad blocks.</li>
              </ul>
            </div>
          </blockquote>
        </div>
      </blockquote>
      <div class="">
        <div>Maybe not… It seems that for our use-case, the wear
          levelled FAT maybe more suitable.</div>
        <div><br class="">
        </div>
        <div>Mark</div>
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On 19 Jan 2018, at 11:23 AM, Greg D. <<a
                href="mailto:gregd2350@gmail.com" class=""
                moz-do-not-send="true">gregd2350@gmail.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class=""> Assuming the new file system is stable, we
                should move to it.  Remind<br class="">
                me the syntax for scp...  we're using v1, right?<br
                  class="">
                <br class="">
                Just warn us when the change is checked in...<br
                  class="">
                <br class="">
                Greg<br class="">
                <br class="">
                <br class="">
                Mark Webb-Johnson wrote:<br class="">
                <blockquote type="cite" class="">ESP IDF 2.1 only had
                  FAT support as a filesystem. We used this for the
                  /store vfs mount, for config and script storage.<br
                    class="">
                  <br class="">
                  ESP IDF 3.x now has SPIFFS as an option.<br class="">
                  <br class="">
                  SPIFFS is obviously more suited to embedded flash.<br
                    class="">
                  <br class="">
                  What do people think about making the switch to SPIFFS
                  for /store now?<br class="">
                  <br class="">
                  Doing so would probably not be hard (just a few lines
                  of code change in the mounting of that /store
                  partition), but would lose all config and script data
                  in that partition (developers would have to disable
                  vfs protection in menuconfig, then scp out first, to
                  backup).<br class="">
                  <br class="">
                  Doing it later is not really an option.<br class="">
                  <br class="">
                  Thoughts?<br class="">
                  <br class="">
                  Mark<br class="">
                  <br class="">
                  _______________________________________________<br
                    class="">
                  OvmsDev mailing list<br class="">
                  <a href="mailto:OvmsDev@lists.teslaclub.hk" class=""
                    moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
                    class="">
                  <a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
                    class="">
                </blockquote>
                <br class="">
                _______________________________________________<br
                  class="">
                OvmsDev mailing list<br class="">
                <a href="mailto:OvmsDev@lists.teslaclub.hk" class=""
                  moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
                  class="">
                <a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
                  class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>