1. 27 1月, 2007 1 次提交
  2. 23 12月, 2006 1 次提交
    • N
      [PATCH] md: fix a few problems with the interface (sysfs and ioctl) to md · 3f9d7b0d
      NeilBrown 提交于
      While developing more functionality in mdadm I found some bugs in md...
      
      - When we remove a device from an inactive array (write 'remove' to
        the 'state' sysfs file - see 'state_store') would should not
        update the superblock information - as we may not have
        read and processed it all properly yet.
      
      - initialise all raid_disk entries to '-1' else the 'slot sysfs file
        will claim '0' for all devices in an array before the array is
        started.
      
      - all '\n' not to be present at the end of words written to
        sysfs files
      
      - when we use SET_ARRAY_INFO to set the md metadata version,
        set the flag to say that there is persistant metadata.
      
      - allow GET_BITMAP_FILE to be called on an array that hasn't
        been started yet.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3f9d7b0d
  3. 11 12月, 2006 3 次提交
  4. 09 12月, 2006 3 次提交
  5. 08 12月, 2006 1 次提交
  6. 09 11月, 2006 2 次提交
  7. 04 11月, 2006 1 次提交
  8. 29 10月, 2006 2 次提交
  9. 22 10月, 2006 1 次提交
  10. 17 10月, 2006 1 次提交
  11. 06 10月, 2006 1 次提交
  12. 04 10月, 2006 1 次提交
  13. 03 10月, 2006 6 次提交
  14. 28 8月, 2006 1 次提交
    • N
      [PATCH] md: avoid backward event updates in md superblock when degraded. · 84692195
      NeilBrown 提交于
      If we
        - shut down a clean array,
        - restart with one (or more) drive(s) missing
        - make some changes
        - pause, so that they array gets marked 'clean',
      the event count on the superblock of included drives
      will be the same as that of the removed drives.
      So adding the removed drive back in will cause it
      to be included with no resync.
      
      To avoid this, we only update the eventcount backwards when the array
      is not degraded.  In this case there can (should) be no non-connected
      drives that we can get confused with, and this is the particular case
      where updating-backwards is valuable.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      84692195
  15. 11 7月, 2006 6 次提交
  16. 04 7月, 2006 1 次提交
    • I
      [PATCH] lockdep: annotate blkdev nesting · 663d440e
      Ingo Molnar 提交于
      Teach special (recursive) locking code to the lock validator.
      
      Effects on non-lockdep kernels:
      
      - the introduction of the following function variants:
      
        extern struct block_device *open_partition_by_devnum(dev_t, unsigned);
      
        extern int blkdev_put_partition(struct block_device *);
      
        static int
        blkdev_get_whole(struct block_device *bdev, mode_t mode, unsigned flags);
      
       which on non-lockdep are the same as open_by_devnum(), blkdev_put()
       and blkdev_get().
      
      - a subclass parameter to do_open(). [unused on non-lockdep]
      
      - a subclass parameter to __blkdev_put(), which is a new internal
        function for the main blkdev_put*() functions. [parameter unused
        on non-lockdep kernels, except for two sanity check WARN_ON()s]
      
      these functions carry no semantical difference - they only express
      object dependencies towards the lockdep subsystem.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      663d440e
  17. 01 7月, 2006 1 次提交
  18. 27 6月, 2006 7 次提交