1. 23 10月, 2018 1 次提交
    • S
      ubifs: Format changes for authentication support · 5125cfdf
      Sascha Hauer 提交于
      This patch adds the changes to the on disk format needed for
      authentication support. We'll add:
      
      * a HMAC covering super block node
      * a HMAC covering the master node
      * a hash over the root index node to the master node
      * a hash over the LPT to the master node
      * a flag to the filesystem flag indicating the filesystem is
        authenticated
      * an authentication node necessary to authenticate the nodes written
        to the journal heads while they are written.
      * a HMAC of a well known message to the super block node to be able
        to check if the correct key is provided
      
      And finally, not visible in this patch, nevertheless explained here:
      
      * hashes over the referenced child nodes in each branch of a index node
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      5125cfdf
  2. 15 8月, 2018 2 次提交
  3. 09 5月, 2017 1 次提交
  4. 30 3月, 2017 2 次提交
  5. 13 12月, 2016 1 次提交
  6. 24 5月, 2016 1 次提交
  7. 04 10月, 2015 1 次提交
  8. 25 3月, 2015 1 次提交
    • S
      UBIFS: extend debug/message capabilities · 235c362b
      Sheng Yong 提交于
      In the case where we have more than one volumes on different UBI
      devices, it may be not that easy to tell which volume prints the
      messages.  Add ubi number and volume id in ubifs_msg/warn/error
      to help debug. These two values are passed by struct ubifs_info.
      
      For those where ubifs_info is not initialized yet, ubifs_* is
      replaced by pr_*. For those where ubifs_info is not avaliable,
      ubifs_info is passed to the calling function as a const parameter.
      
      The output looks like,
      
      [   95.444879] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 696
      [   95.484688] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "test1"
      [   95.484694] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
      [   95.484699] UBIFS (ubi0:1): FS size: 30220288 bytes (28 MiB, 238 LEBs), journal size 1523712 bytes (1 MiB, 12 LEBs)
      [   95.484703] UBIFS (ubi0:1): reserved for root: 1427378 bytes (1393 KiB)
      [   95.484709] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 40DFFC0E-70BE-4193-8905-F7D6DFE60B17, small LPT model
      [   95.489875] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 699
      [   95.529713] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "test2"
      [   95.529718] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
      [   95.529724] UBIFS (ubi1:0): FS size: 19808256 bytes (18 MiB, 156 LEBs), journal size 1015809 bytes (0 MiB, 8 LEBs)
      [   95.529727] UBIFS (ubi1:0): reserved for root: 935592 bytes (913 KiB)
      [   95.529733] UBIFS (ubi1:0): media format: w4/r0 (latest is w4/r0), UUID EEB7779D-F419-4CA9-811B-831CAC7233D4, small LPT model
      
      [  954.264767] UBIFS error (ubi1:0 pid 756): ubifs_read_node: bad node type (255 but expected 6)
      [  954.367030] UBIFS error (ubi1:0 pid 756): ubifs_read_node: bad node at LEB 0:0, LEB mapping status 1
      Signed-off-by: NSheng Yong <shengyong1@huawei.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      235c362b
  9. 28 1月, 2015 1 次提交
  10. 30 9月, 2014 1 次提交
  11. 26 9月, 2014 1 次提交
  12. 27 5月, 2014 1 次提交
  13. 24 1月, 2014 1 次提交
  14. 26 10月, 2013 1 次提交
  15. 16 8月, 2013 1 次提交
  16. 15 1月, 2013 1 次提交
  17. 18 12月, 2012 1 次提交
  18. 21 9月, 2012 1 次提交
  19. 31 8月, 2012 3 次提交
  20. 22 8月, 2012 1 次提交
  21. 20 7月, 2012 1 次提交
    • A
      UBIFS: add debugfs knob to switch to R/O mode · 06bef945
      Artem Bityutskiy 提交于
      This patch adds another debugfs knob which switches UBIFS to R/O mode.
      I needed it while trying to reproduce the 'first log node is not CS node'
      bug. Without this debugfs knob you have to perform a power cut to repruduce
      the bug. The knob is named 'ro_error' and all it does is it sets the
      'ro_error' UBIFS flag which makes UBIFS disallow any further writes - even
      write-back will fail with -EROFS. Useful for debugging.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      06bef945
  22. 27 6月, 2012 1 次提交
  23. 07 6月, 2012 1 次提交
  24. 21 5月, 2012 1 次提交
  25. 17 5月, 2012 4 次提交
  26. 29 2月, 2012 2 次提交
  27. 13 1月, 2012 2 次提交
  28. 22 8月, 2011 1 次提交
  29. 04 7月, 2011 3 次提交