<p>Before sending a bug report:</p>
<ul>
+ <li>make sure you use up-to-date UBI; pull the latest UBI patches
+ from corresponding UBIFS back-port trees if needed, see
+ <a href="ubifs.html#L_source">here</a> (we do not maintain separate UBI
+ back-ports trees, and UBIFS trees also contain all UBI updates); no one
+ is interested in digging already fixed problems;</li>
+
<li>make sure you have compiled kernel symbols in
(<code>CONFIG_KALLSYMS_ALL=y</code> in <code>.config</code>);</li>
in <code>.config</code>); please, mark only the "<b>UBI debugging</b>"
check-box and do not mark other debugging sub-options like "UBI
debugging messages" unless you know what you are doing.</li>
+
+ <li>include all the messages UBI prints, not only those you see at
+ the console, but also those you see when running <code>dmesg</code>; or
+ before running your UBI test, which reproduces the error, just
+ invoke <code>dmesg -n8</code> command to make all kernel messages
+ to go to the console; another possibility is to boot the kernel
+ with <code>ignore_loglevel</code> option, in which makes the kernel
+ print all messages to the console unconditionally;
+ <a href="../faq/ubi.xml#L_how_debug">this</a> section contains some
+ more information about how the messages can be collected.</li>
+
+ <li>provide UBI configuration from you your <code>.config</code>
+ file, or just attach whole file;</li>
+
+ <li>describe your flash device, attach the
+ "<code>cat /proc/mtd</code>" output;</li>
+
+ <li>specify which kernel version you are using; if your kernel is not
+ the latest one, please, explicitly tell whether you updated UBI by
+ pulling one of the back-port trees or not; if you did not, you will
+ probably be asked to do this, depending on the problem;</li>
+
+ <li>describe how the problem can be reproduced;</li>
</ul>
<p>Please, attach all the bug-related messages including the UBI messages from
<h2><a name="L_how_send_bugreport">How to send an UBIFS bugreport?</a></h2>
+<p>Before sending a bug report, please, try to do the following:</p>
+<ol>
+ <li>run the MTD tests to validate your flash (see
+ <a href="general.html#L_mtd_tests">here</a>);</li>
+
+ <li>enable the UBIFS extra self checks and try to reproduce the
+ problem; to enable the extra self-checks, you have to first mark the
+ <b>Enable debugging</b> check-box in the UBIFS kernel configuration
+ menu (<code>CONFIG_UBIFS_FS_DEBUG=y</code> in <code>.config</code>);
+ then mark the "Enable extra checks" check-box
+ (<code>CONFIG_UBIFS_FS_DEBUG_CHKS=y</code>); do not touch the
+ "Default message level" (<code>CONFIG_UBIFS_FS_DEBUG_MSG_LVL</code>)
+ option unless you know what you are doing. For more information about
+ how to play with UBIFS debugging option, read the
+ <code>Documentation/filesystems/ubifs.txt</code> file.</li>
+</ol>
+
<p>When sending a bug report, please:</p>
<ol>
<li>make sure you use up-to-date UBIFS; pull the latest UBIFS patches
<li>mark the <b>Enable debugging</b> check-box in the UBIFS kernel
configuration menu (<code>CONFIG_UBIFS_FS_DEBUG=y</code> in
- <code>.config</code>); please, do not enable other UBIFS debugging
+ <code>.config</code>); this option will make UBIFS print more
+ informative error messages; please, do not enable other UBIFS debugging
sub-options like extra debugging messages unless you know what you are
doing; <b>note</b>, you should enable UBIFS debugging, not UBI
debugging - distinguish between UBI and UBIFS please, they are
invoke <code>dmesg -n8</code> command to make all kernel messages
to go to the console; another possibility is to boot the kernel
with <code>ignore_loglevel</code> option, in which makes the kernel
- print all messages to the console unconditionally;</li>
+ print all messages to the console unconditionally;
+ <a href="../faq/ubi.xml#L_how_debug">this</a> section contains some
+ more information about how the messages can be collected (it is for
+ UBI, but the part about collecting the messages is not
+ UBI-specific).</li>
+
+ <li>explicitly tell about whether you did any checking as described in
+ the previous list of "actions before sending a bug-report" (running MTD
+ tests, enabling UBIFS extra self-checks; and tell the results; if you
+ saw any errors/warnings, describe them and include all corresponding
+ prints from tests / UBIFS / etc;</li>
+
+ <li>provide UBIFS configuration from you your <code>.config</code>
+ file, or just attach whole file;</li>
<li>describe your flash device, attach the
"<code>cat /proc/mtd</code>" output;</li>
- <li>specify which kernel version you are using;</li>
+ <li>specify which kernel version you are using; if your kernel is not
+ the latest one, please, explicitly tell whether you updated UBIFS by
+ pulling one of the back-port trees or not; if you did not, you will
+ probably be asked to do this, depending on the problem;</li>
- <li>describe how the problem cab be reproduced;</li>
+ <li>describe how the problem can be reproduced;</li>
</ol>
<p>The bugreport should be sent to the