[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#267227: Minor efficiency improvement for scsi device search



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`"

Reply to: