md - when setdiskinfo, also set no of blocks
authorAlex Hornung <ahornung@gmail.com>
Sun, 20 Sep 2009 19:52:44 +0000 (20:52 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sun, 20 Sep 2009 19:55:15 +0000 (20:55 +0100)
commitd34ac8d012ca65a25351f4be0c12b31d9d0d3447
tree5279cac852ebd4bbb23a63954a2890ab14d59706
parent3021968a96629ec4c89d457239155ec61eaecfa6
md - when setdiskinfo, also set no of blocks

* Before calling disk_setdiskinfo, make sure that the number of blocks
  is also set or no probing will be triggered at that point.

* Also disable setdiskinfo on open, as it shouldn't be needed.

* Fix nomenclature md0c -> md0s0.

* This also fixes root mount from md disk image.

Reported By: Alexander Polakov
Dragonfly-bug: http://bugs.dragonflybsd.org/issue1522
sys/dev/disk/md/md.c