lkml.org 
[lkml]   [2006]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: CD writing in future Linux (stirring up a hornets' nest)
    Greg KH <greg@kroah.com> wrote:

    > On Mon, Feb 13, 2006 at 02:26:54PM +0100, Joerg Schilling wrote:
    > > 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?
    >
    > Of course not. Here's one line of bash that gets you the major:minor
    > file of every block device in the system:
    > block_devices="$(echo /sys/block/*/dev /sys/block/*/*/dev)"
    >
    > The block devices are all in a specific location.

    Are you sure you understand the problem?

    It isd most unlikely that all SCSI devices are there.

    Jörg

    --
    EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
    js@cs.tu-berlin.de (uni)
    schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
    URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
    -
    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/

    \
     
     \ /
      Last update: 2006-02-14 20:03    [W:0.028 / U:0.816 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site