1. 17 5月, 2012 2 次提交
  2. 04 7月, 2011 2 次提交
  3. 06 2月, 2011 1 次提交
  4. 30 8月, 2010 2 次提交
    • A
      UBIFS: mark unused key objects as invalid · ba2f48f7
      Artem Bityutskiy 提交于
      When scanning the flash, UBIFS builds a list of flash nodes of type
      'struct ubifs_scan_node'. Each scanned node has a 'snod->key' field. This field
      is valid for most of the nodes, but invalid for some node type, e.g., truncation
      nodes. It is safer to explicitly initialize such keys to something invalid,
      rather than leaving them initialized to all zeros, which has key type of
      UBIFS_INO_KEY.
      
      This patch introduces new "fake" key type UBIFS_INVALID_KEY and initializes
      unused 'snod->key' objects to this type. It also adds debugging assertions in
      the TNC code to make sure no one ever tries to look these nodes up in the TNC.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      ba2f48f7
    • A
      UBIFS: do not write rubbish into truncation scanning node · 5b7a3a2e
      Artem Bityutskiy 提交于
      In the scanning code, in 'ubifs_add_snod()', we write rubbish into
      'snod->key', because we assume that on-flash truncation nodes have a key, but
      they do not. If the other parts of UBIFS then mistakenly try to look-up
      the truncation node key (they should not do this, but may do because of a bug),
      we can succeed and corrupt TNC. It looks like we did have such a situation in
      'sort_nodes()' in gc.c.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      5b7a3a2e
  5. 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
  6. 09 7月, 2009 2 次提交
  7. 30 9月, 2008 1 次提交
    • A
      UBIFS: add no_chk_data_crc mount option · 2953e73f
      Adrian Hunter 提交于
      UBIFS read performance can be improved by skipping the CRC
      check when data nodes are read.  This option can be used if
      the underlying media is considered to be highly reliable.
      Note that CRCs are always checked for metadata.
      
      Read speed on Arm platform with OneNAND goes from 19 MiB/s
      to 27 MiB/s with data CRC checking disabled.
      Signed-off-by: NAdrian Hunter <ext-adrian.hunter@nokia.com>
      2953e73f
  8. 15 7月, 2008 1 次提交