installer - Fix a bug in survey_storage()
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 10 Nov 2016 22:59:50 +0000 (23:59 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 13 Nov 2016 22:20:57 +0000 (23:20 +0100)
commit7dae739fad261c61cd675ae6edaa028d48eec284
treed1be7e098d1efb23b0e3c0996f0a1261eff952be
parent4d4ae2fa84d1285901e8f27b9a41889d3ae67f8d
installer - Fix a bug in survey_storage()

- survey_storage() issues DIOCGPART on every disk present in
  kern.disks in order to retrieve information about it.
  The problem was that a failure to get that information from
  any disk in the list caused the whole storage survey to be
  marked as failed. This happens, for example, with some card
  readers that present the disk devices even though there is no
  media inserted on the corresponding slot.

- Fix the logic in the installer and allow to check all disks
  in the system.
usr.sbin/installer/libinstaller/survey.c