git: DragonFly_RELEASE_3_8 installer: Fix disk_find() on systems that have both da1 and da10.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu May 29 07:40:51 PDT 2014


commit 599135edc0246d793ed2cf386380a32afabeece6
Author: Sascha Wildner <saw at online.de>
Date:   Thu May 29 08:26:47 2014 +0200

    installer: Fix disk_find() on systems that have both da1 and da10.
    
    In addition to comparing names (up to the length of the disk which
    was found previously), also compare name lengths.
    
    While here, remove the disk_find() check in disk_new(). disk_new()
    didn't deal with it returning NULL. But because the list of disks
    we offer as targets for installing is taken from sysctl kern.disks'
    output, it will not have duplicates (else it would likely be a bug
    in the kernel).
    
    Reported-by: BSDUX on IRC

Summary of changes:
 usr.sbin/installer/libinstaller/diskutil.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/599135edc0246d793ed2cf386380a32afabeece6


-- 
DragonFly BSD source repository


More information about the Commits mailing list