1. 04 7月, 2011 2 次提交
    • A
      UBIFS: introduce helper functions for debugging checks and tests · 2b1844a8
      Artem Bityutskiy 提交于
      This patch introduces helper functions for all debugging checks, so instead of
      doing
      
      if (!(ubifs_chk_flags & UBIFS_CHK_GEN))
      
      we now do
      
      if (!dbg_is_chk_gen(c))
      
      This is a preparation to further changes where the flags will go away, and
      we'll need to only change the helper functions, but the code which utilizes
      them won't be touched.
      
      At the same time this patch removes 'dbg_force_in_the_gaps()',
      'dbg_force_in_the_gaps_enabled()', and dbg_failure_mode helpers for
      consistency.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      2b1844a8
    • A
      UBIFS: use correct flags in lprops · 37662447
      Artem Bityutskiy 提交于
      The UBIFS lpt tree is in many aspects similar to the TNC tree, and we have
      similar flags for these trees. And by mistake we use the COW_ZNODE flag for
      LPT in some places, instead of the right flag COW_CNODE. And this works
      only because these two constants have the same value.
      
      This patch makes all the LPT code to use COW_CNODE and also changes COW_CNODE
      constant value to make sure we do not misuse the flags any more.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      37662447
  2. 16 5月, 2011 4 次提交
  3. 24 3月, 2011 1 次提交
  4. 16 3月, 2011 1 次提交
    • A
      UBIFS: allocate scanning buffer on demand · cd5f7485
      Artem Bityutskiy 提交于
      Instead of using pre-allocated 'c->dbg->buf' buffer in
      'scan_check_cb()', dynamically allocate it when needed. The intend
      is to get rid of the pre-allocated 'c->dbg->buf' buffer and save
      128KiB of RAM (or more if PEB size is larger). Indeed, currently we
      allocate this memory even if the user never enables any self-check,
      which is wasteful.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      cd5f7485
  5. 15 9月, 2009 2 次提交
  6. 10 9月, 2009 1 次提交
    • A
      UBIFS: do not print scary error messages needlessly · 348709ba
      Artem Bityutskiy 提交于
      At the moment UBIFS print large and scary error messages and
      flash dumps in case of nearly any corruption, even if it is
      a recoverable corruption. For example, if the master node is
      corrupted, ubifs_scan() prints error dumps, then UBIFS recovers
      just fine and goes on.
      
      This patch makes UBIFS print scary error messages only in
      real cases, which are not recoverable. It adds 'quiet' argument
      to the 'ubifs_scan()' function, so the caller may ask 'ubi_scan()'
      not to print error messages if the caller is able to do recovery.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Reviewed-by: NAdrian Hunter <Adrian.Hunter@nokia.com>
      348709ba
  7. 26 1月, 2009 2 次提交
  8. 23 12月, 2008 1 次提交
  9. 03 12月, 2008 1 次提交
  10. 30 9月, 2008 2 次提交
  11. 15 7月, 2008 1 次提交