Re: iso-scan question

2004-01-28 Thread Joey Hess
Stephen R Marenka wrote: > Would you prefer > > for type in discs cdroms hda hdb hdc hdd sda sdb sdc sdd; do > > or just walk through /proc/partitions? > > I should think the latter would be superior. I'm not very familiar with /proc/partitions; if it works that would be fine. -- see sh

Re: iso-scan question

2004-01-28 Thread Stephen R Marenka
On Wed, Jan 28, 2004 at 12:37:33PM -0500, Joey Hess wrote: > > > > for type in discs cdroms; do > > > > As far as I can tell, this gives you the same results, except I > > don't have to mimic the /dev/ide or /dev/scsi directories for a > > 2.2.25 kernel. (Okay, at least I haven't nee

Re: iso-scan question

2004-01-28 Thread Joey Hess
Stephen R Marenka wrote: > iso-scan currently uses > > for type in scsi ide; do >if [ -d /dev/$type ]; then >find /dev/$type -type b >fi > done > > to find available devices. > > What do ya'll think about changing that to the