1. 05 7月, 2009 4 次提交
    • D
      UBIFS: allow more than one volume to be mounted · 7fcd9c3e
      Daniel Mack 提交于
      UBIFS uses a bdi device per volume, but does not care to hand out unique
      names to each of them. This causes an error when trying to mount more
      than one volumes. Append the UBI volume and device ID to avoid that.
      
      [Amended a bit by Artem Bityutskiy]
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Cc: Artem Bityutskiy <dedekind@infradead.org>
      Cc: Adrian Hunter <ext-adrian.hunter@nokia.com>
      Cc: linux-mtd@lists.infradead.org
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      7fcd9c3e
    • A
      UBIFS: fix assertion warning · 1fb8bd01
      Artem Bityutskiy 提交于
      When debugging is enabled and an unclean file-system is mounter,
      the following assertion is triggered:
      
      UBIFS assert failed in ubifs_tnc_start_commit at 805 (pid 1081)
      Call Trace:
      [cfaffbd0] [c0006cf8] show_stack+0x44/0x16c (unreliable)
      [cfaffc10] [c011b738] ubifs_tnc_start_commit+0xbb8/0xd18
      [cfaffc90] [c0112670] do_commit+0x150/0xa44
      [cfaffd10] [c0125234] ubifs_rcvry_gc_commit+0xd8/0x544
      [cfaffd60] [c0100e9c] ubifs_fill_super+0xe78/0x15f8
      [cfaffdf0] [c0102118] ubifs_get_sb+0x20c/0x320
      [cfaffe70] [c007f764] vfs_kern_mount+0x58/0xe0
      [cfaffe90] [c007f83c] do_kern_mount+0x40/0xf8
      [cfaffeb0] [c0095c24] do_mount+0x550/0x758
      [cfafff10] [c0095ebc] sys_mount+0x90/0xe0
      [cfafff40] [c000ed4c] ret_from_syscall+0x0/0x3c
      
      The reason is that we initialize 'c->min_leb_idx' early, and do
      not re-calculate it after journal replay.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      1fb8bd01
    • A
      UBIFS: few spelling fixes · cb54ef8b
      Artem Bityutskiy 提交于
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      cb54ef8b
    • A
      UBIFS: slightly optimize write-buffer timer usage · 0b335b9d
      Artem Bityutskiy 提交于
      This patch adds the following minor optimization:
      
      1. If write-buffer does not use the timer, indicate it with the
         wbuf->no_timer variable, instead of using the wbuf->softlimit
         variable. This is better because wbuf->softlimit is of ktime_t
         type, and the ktime_to_ns function contains 64-bit multiplication.
      
      2. Do not call the 'hrtimer_cancel()' function for write-buffers
         which do not use timers.
      
      3. Do not cancel the timer in 'ubifs_put_super()' because the
         synchronization function does this.
      
      This patch also removes a confusing comment.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      0b335b9d
  2. 16 6月, 2009 1 次提交
  3. 12 6月, 2009 3 次提交
  4. 08 6月, 2009 2 次提交
  5. 02 6月, 2009 1 次提交
  6. 26 5月, 2009 1 次提交
    • A
      UBIFS: use anonymous device · 7c83f5cb
      Artem Bityutskiy 提交于
      UBIFS has erroneuosly set 'sb->s_dev' to the UBI volume
      character device major/minor. This may lead to clashes
      if there is another FS mounted to a block device with
      the same major/minor numbers. User-space programs which
      use 'stat->st_dev' may get confused because of this.
      
      This problem was found by Al Viro. He also pointed the
      way to fix the problem - use 'set_anon_super()' and
      'kill_anon_super()' VFS helpers.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      7c83f5cb
  7. 25 5月, 2009 1 次提交
  8. 09 5月, 2009 1 次提交
  9. 06 5月, 2009 1 次提交
  10. 28 3月, 2009 1 次提交
  11. 26 3月, 2009 1 次提交
  12. 21 3月, 2009 1 次提交
    • H
      UBIFS: fix compiler warnings · fcabb347
      Hunter Adrian 提交于
      fs/ubifs/super.c: In function ‘ubifs_show_options’:
      fs/ubifs/super.c:425: warning: format not a string literal and no format arguments
      fs/ubifs/super.c: In function ‘mount_ubifs’:
      fs/ubifs/super.c:1204: warning: format not a string literal and no format arguments
      fs/ubifs/super.c: In function ‘ubifs_remount_rw’:
      fs/ubifs/super.c:1557: warning: format not a string literal and no format arguments
      Signed-off-by: NAdrian Hunter <adrian.hunter@nokia.com>
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      fcabb347
  13. 16 3月, 2009 1 次提交
  14. 15 3月, 2009 1 次提交
  15. 29 1月, 2009 4 次提交
  16. 27 1月, 2009 1 次提交
    • A
      UBIFS: fix assertions · 6ba87c9b
      Artem Bityutskiy 提交于
      I introduce wrong assertions in one of the previous commits, this
      patch fixes them.
      
      Also, initialize debugfs after the debugging check. This is a little
      nicer because we want the FS data to be accessible to external users
      after everything has been initialized.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      6ba87c9b
  17. 26 1月, 2009 4 次提交
  18. 20 1月, 2009 1 次提交
  19. 18 1月, 2009 2 次提交
  20. 07 1月, 2009 1 次提交
  21. 31 12月, 2008 7 次提交