git: installer - Fix a bug in survey_storage()

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Sun Nov 13 14:23:56 PST 2016


commit 7dae739fad261c61cd675ae6edaa028d48eec284
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Thu Nov 10 23:59:50 2016 +0100

    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.

Summary of changes:
 usr.sbin/installer/libinstaller/survey.c | 32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7dae739fad261c61cd675ae6edaa028d48eec284


-- 
DragonFly BSD source repository



More information about the Commits mailing list