On Mon, 13 Feb 2006, Joerg Schilling stated: > Greg KH <greg@kroah.com> wrote: > >> On Fri, Feb 10, 2006 at 04:06:39PM -0500, Bill Davidsen wrote: >> > >> > The kernel could provide a list of devices by category. It doesn't have >> > to name them, run scripts, give descriptions, or paint them blue. Just a >> > list of all block devices, tapes, by major/minor and category (ie. >> > block, optical, floppy) would give the application layer a chance to do >> > it's own interpretation. >> >> It does so today in sysfs, that is what it is there for. > > Do you really whant libscg to open _every_ non-directory file under /sys? Well, that would be overkill, but iterating across, say, /sys/class/scsi_device seems like it would be a good idea. (I doubt libscg would ever be interested in the stuff in most of the other directories: things like /dev/mem are not SCSI devices and never will be, and /sys/class/scsi_device contains *everything* Linux considers a SCSI device, no matter what transport it is on, SATA and all. However, I don't know if it handles IDE devices that you can SG_IO to because I don't have any such here. Anyone know?) -- `... follow the bouncing internment camps.' --- Peter da Silva - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Matthias Andree <matthias.andree@gmx.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "D. Hazelton" <dhazelton@enter.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- References:
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jan Engelhardt <jengelh@linux01.gwdg.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jens Axboe <axboe@suse.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jan Engelhardt <jengelh@linux01.gwdg.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jens Axboe <axboe@suse.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: <grundig@teleline.es>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jens Axboe <axboe@suse.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Matthias Andree <matthias.andree@gmx.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Nix <nix@esperi.org.uk>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Bill Davidsen <davidsen@tmr.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Greg KH <greg@kroah.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- Prev by Date: Re: RFC: Compact Flash True IDE Mode Driver
- Next by Date: Re: [PATCH] tty reference count fix
- Previous by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Next by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Index(es):
![]() |