rlishtaba / rubyripper

Automatically exported from code.google.com/p/rubyripper
0 stars 0 forks source link

rubyripper fails to correctly predict device file on FreeBSD #481

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
FreeBSD sets its CD-ROM device files to /dev/cd# for SCSI/SATA drives, and 
/dev/acd# for IDE drives by default.  rubyripper assumes that FreeBSD will have 
a device file of /dev/cdrom by default.

I have attached a patch (for the master branch (0.7.0a)) which fixes this 
behavior.  It returns /dev/acd0 if it exists, otherwise returning /dev/cd0, if 
the user is on FreeBSD.

Original issue reported on code.google.com by comradec...@gmail.com on 16 Oct 2011 at 7:05

Attachments:

GoogleCodeExporter commented 8 years ago
I've fixed this with recent commits. According to latest spec file, the 
following will work:

  When searching for the disc drive on freebsd
    should query the device on /dev/cd# for existence
    should query the device on /dev/acd# for existence
    should detect a drive on /dev/cd0
    should detect a drive on /dev/cd9
    should detect a drive on /dev/acd0
    should detect a drive on /dev/acd9
  When searching for the disc drive on linux
    should detect a drive on /dev/cdrom
    should detect a drive on /dev/dvdrom
    should query the device on /dev/sr# for existence
    should detect a drive on /dev/sr0
    should detect a drive on /dev/sr9

Original comment by boukewou...@gmail.com on 17 Oct 2011 at 6:27