• Bug#267227: Minor efficiency improvement for scsi device search

    From Osamu Aoki@1:229/2 to All on Sat Aug 21 11:40:09 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Package: rootskel
    Version: 0.79
    Severity: wishlist
    Tags: patch

    Hi,

    When playing with bugreporter-udeb, I had a good look at init code
    in this package's src-bootfloppy directory.

    find /dev/scsi

    This list many useless entries. Assuming no one wish to use partition
    after part9, changing above with

    find /dev/scsi -name 'part?'||true

    may improve code. (Or I should say, I did so in bugreporter-udeb.)

    Does this make sense or it is bad idea. If bad tell me so. Then I will
    fix bugreporter-udeb patch too.

    Osamu


    --- init.org 2004-08-21 11:08:22.000000000 +0200
    +++ init 2004-08-21 11:09:51.000000000 +0200
    @@ -96,7 +96,7 @@
    DEVS=/dev/floppy/?
    fi
    if [ -d /dev/scsi ]; then
    - DEVS="$DEVS `find /dev/scsi`"
    + DEVS="$DEVS `find /dev/scsi -name 'part?' || true`"
    fi
    else
    DEVS="`find $INSTALL_MEDIA_DEV`"

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)