1. 28 1月, 2015 1 次提交
  2. 07 11月, 2014 1 次提交
  3. 28 2月, 2014 1 次提交
    • E
      UBI: R/O block driver on top of UBI volumes · 9d54c8a3
      Ezequiel Garcia 提交于
      This commit introduces read-only block device emulation on top of UBI volumes.
      
      Given UBI takes care of wear leveling and bad block management it's possible
      to add a thin layer to enable block device access to UBI volumes.
      This allows to use a block-oriented filesystem on a flash device.
      
      The UBI block devices are meant to be used in conjunction with any
      regular, block-oriented file system (e.g. ext4), although it's primarily
      targeted at read-only file systems, such as squashfs.
      
      Block devices are created upon user request through new ioctls:
      UBI_IOCVOLATTBLK to attach and UBI_IOCVOLDETBLK to detach.
      Also, a new UBI module parameter is added 'ubi.block'. This parameter is
      needed in order to attach a block device on boot-up time, allowing to
      mount the rootfs on a ubiblock device.
      For instance, you could have these kernel parameters:
      
        ubi.mtd=5 ubi.block=0,0 root=/dev/ubiblock0_0
      
      Or, if you compile ubi as a module:
      
        $ modprobe ubi mtd=/dev/mtd5 block=/dev/ubi0_0
      
      Artem: amend commentaries and massage the patch a little bit.
      Signed-off-by: NEzequiel Garcia <ezequiel.garcia@free-electrons.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      9d54c8a3
  4. 02 1月, 2014 1 次提交
  5. 07 11月, 2013 1 次提交
  6. 04 7月, 2013 1 次提交
  7. 01 7月, 2013 1 次提交
  8. 16 5月, 2013 2 次提交
  9. 10 12月, 2012 1 次提交
  10. 03 12月, 2012 1 次提交
  11. 03 10月, 2012 2 次提交
  12. 26 9月, 2012 1 次提交
  13. 04 9月, 2012 12 次提交
  14. 21 5月, 2012 8 次提交
  15. 09 3月, 2012 2 次提交
  16. 10 1月, 2012 1 次提交
  17. 01 6月, 2011 2 次提交
    • A
      UBI: fix oops in error path · 01a4110d
      Artem Bityutskiy 提交于
      This patch fixes an oops in the error path of 'ubi_attach_mtd_dev()'. If
      anything after 'uif_init()' fails, we get an oops in 'cancel_pending()'. The
      reason is that 'uif_close()' drops the last reference count for 'ubi->dev' and
      whole 'struct ubi_device' is freed. And then
      'ubi_wl_close()'->'cancel_pending()' tries to access the 'ubi' pointer and
      problems begin.
      
      Note, in 'ubi_detach_mtd_dev()' function we get a device reference to
      work-around this issue. Do the same in the error path of
      'ubi_attach_mtd_dev()'.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      01a4110d
    • A
      UBI: use debugfs for the extra checks knobs · 2a734bb8
      Artem Bityutskiy 提交于
      This patch introduces debugfs support to UBI. All the UBI stuff is kept in the
      "ubi" debugfs directory, which contains per-UBI device "ubi/ubiX"
      sub-directories, containing debugging files. This file also creates
      "ubi/ubiX/chk_gen" and "ubi/ubiX/chk_io" knobs for switching general and I/O
      extra checks on and off. And it removes the 'debug_chks' UBI module parameters.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      2a734bb8
  18. 16 3月, 2011 1 次提交
    • A
      UBI: make tests modes dynamic · 28237e45
      Artem Bityutskiy 提交于
      Similarly to the debugging checks and message, make the test modes
      be dynamically selected via the "debug_tsts" module parameter or
      via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This
      is consistent with UBIFS as well.
      
      And now, since all the Kconfig knobs became dynamic, we can remove
      the Kconfig.debug file completely.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      28237e45