1. 13 12月, 2016 5 次提交
    • R
      ubifs: Implement UBIFS_FLG_DOUBLE_HASH · d63d61c1
      Richard Weinberger 提交于
      This feature flag indicates that all directory entry nodes have a 32bit
      cookie set and therefore UBIFS is allowed to perform lookups by hash.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      d63d61c1
    • R
      ubifs: Add full hash lookup support · 528e3d17
      Richard Weinberger 提交于
      UBIFS stores a 32bit hash of every file, for traditional lookups by name
      this scheme is fine since UBIFS can first try to find the file by the
      hash of the filename and upon collisions it can walk through all entries
      with the same hash and do a string compare.
      When filesnames are encrypted fscrypto will ask the filesystem for a
      unique cookie, based on this cookie the filesystem has to be able to
      locate the target file again. With 32bit hashes this is impossible
      because the chance for collisions is very high. Do deal with that we
      store a 32bit cookie directly in the UBIFS directory entry node such
      that we get a 64bit cookie (32bit from filename hash and the dent
      cookie). For a lookup by hash UBIFS finds the entry by the first 32bit
      and then compares the dent cookie. If it does not match, it has to do a
      linear search of the whole directory and compares all dent cookies until
      the correct entry is found.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      528e3d17
    • R
      ubifs: Introduce new data node field, compr_size · f1f52d6b
      Richard Weinberger 提交于
      When data of a data node is compressed and encrypted
      we need to store the size of the compressed data because
      before encryption we may have to add padding bytes.
      
      For the new field we consume the last two padding bytes
      in struct ubifs_data_node. Two bytes are fine because
      the data length is at most 4096.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      f1f52d6b
    • R
      ubifs: Add skeleton for fscrypto · d475a507
      Richard Weinberger 提交于
      This is the first building block to provide file level
      encryption on UBIFS.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      d475a507
    • R
      ubifs: Define UBIFS crypto context xattr · 6a5e98ab
      Richard Weinberger 提交于
      Like ext4 UBIFS will store the crypto context in a xattr
      attribute.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      6a5e98ab
  2. 16 5月, 2011 1 次提交
    • M
      UBIFS: add a superblock flag for free space fix-up · 9f58d350
      Matthew L. Creech 提交于
      The 'space_fixup' flag can be set in the superblock of a new filesystem by
      mkfs.ubifs to indicate that any eraseblocks with free space remaining should be
      fixed-up the first time it's mounted (after which the flag is un-set). This
      means that the UBIFS image has been flashed by a "dumb" flasher and the free
      space has been actually programmed (writing all 0xFFs), so this free space
      cannot be used. UBIFS fixes the free space up by re-writing the contents of all
      LEBs with free space using the atomic LEB change UBI operation.
      
      Artem: improved commit message, add some more commentaries to the code.
      Signed-off-by: NMatthew L. Creech <mlcreech@gmail.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      9f58d350
  3. 14 5月, 2011 1 次提交
  4. 15 9月, 2009 1 次提交
  5. 26 3月, 2009 1 次提交
  6. 03 12月, 2008 1 次提交
  7. 30 9月, 2008 1 次提交
  8. 06 9月, 2008 1 次提交
  9. 13 8月, 2008 1 次提交
    • A
      UBIFS: reserve more space for index · b364b41a
      Artem Bityutskiy 提交于
      At the moment UBIFS reserves twice old index size space for the
      index. But this is not enough in some cases, because if the indexing
      node are very fragmented and there are many small gaps, while the
      dirty index has big znodes - in-the-gaps method would fail.
      
      Thus, reserve trise as more, in which case we are guaranteed that
      we can commit in any case.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      b364b41a
  10. 15 7月, 2008 1 次提交