Uploaded image for project: 'libdiscid'
  1. libdiscid
  2. LIB-45

Linux/BSD/Solaris: search for an existing default device from a list of devices

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • libdiscid 0.6.0
    • None
    • None
    • Linux, *BSD, Solaris

      We have a complicated way of finding currently available drives on Mac OS X (see LIB-28) and proposed ways for Windows (LIB-43).
      The difficult part there is, that device names can also be used as disc drives so we have to distinguish these.

      For Linux and the BSDs there are already default device names by convention.
      The defaults we currently use mostly work, but could be improved. Especially Debian/ubuntu don't create /dev/cdrom automatically anymore but /dev/cdrom1.
      For Solaris we have /vol/dev/aliases/cdrom0, but I also found /volumes/dev/aliases/cdrom0.
      For NetBSD /dev/rcd0d is supposed to only be available for x86 installations, but this isn't sure.

      It should be easy to do a quick check which devices actually exist (try open for reading) to find out which of these 2-3 options actually works.

      For Linux we possibly could do what picard is doing with /proc/sys/dev/cdrom/info if /dev/cdrom* doesn't yield results.

            jonnyjd Johannes Dewender
            jonnyjd Johannes Dewender
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                libdiscid 0.6.0