Bug 33734 - QA0327 - eject improperly does NOT ignore comment lines in fstab
Summary: QA0327 - eject improperly does NOT ignore comment lines in fstab
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: eject
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-29 03:14 UTC by R P Herrold
Modified: 2008-05-01 15:38 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2001-03-29 21:07:28 UTC


Attachments (Terms of Use)

Description R P Herrold 2001-03-29 03:14:57 UTC
eject improperly does NOT ignore comment lines in fstab -- is is trying to
use the first line found by the grep, not the first _non-commented_ line
...
 
[root@couch /mnt]# rpm -q eject
eject-2.0.2-6
[root@couch /mnt]# umount /mnt/cdrom1
[root@couch /mnt]# eject
eject: unable to open `#'
[root@couch /mnt]# grep cdrom /etc/fstab
# /dev/hdc              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/cdrom1             /mnt/cdrom1             iso9660
noauto,owner,kudzu,ro 0
0
[root@couch /mnt]#

Comment 1 R P Herrold 2001-03-29 03:25:17 UTC
I reverse the line order, and in the comment line break up cdrom (no effect),
then iso9660 (no effect), and then the /dev/hdc -- which is not even correct --
this uses the ide-scsi module, and eh dummy SCSI emulation:

 
[root@couch /mnt]# grep rom /etc/fstab
/dev/cdrom1             /mnt/cdrom1             isoq9660 noauto,owner,kudzu,ro 0
0
# /dev/hd_c              /mnt/c_drom              iso_9660 noauto,owner,ro 0 0
[root@couch /mnt]#
[root@couch /mnt]# eject
eject: unable to eject, last error: Input/output error

There is some other error here as well.

Checking dmesg:

 
[root@couch /mnt]# dmesg | grep scsi
Kernel command line: auto BOOT_IMAGE=linux-cd ro root=305
BOOT_FILE=/boot/vmlinuz-2.4.2-0.1.40 hdc=ide-scsi
ide_setup: hdc=ide-scsi
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
[root@couch /mnt]#
 
[root@couch /mnt]# dmesg | tail
PCI: Found IRQ 11 for device 00:0c.0
ymfpci: YMF740 at 0xf4000000 IRQ 11
ac97_codec: AC97 Audio codec, id: 0x4144:0x5303 (Analog Devices AD1819)
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr0: CDROM not ready.  Make sure there is a disc in the drive.
cdrom: open failed.
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
[root@couch /mnt]#


(there WAS a CD present ... )


The hardware ..
 
[root@couch scsi]# pwd
/proc/scsi
[root@couch scsi]# cat scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: PHILIPS  Model: PCRW804          Rev:  1.1
  Type:   CD-ROM                           ANSI SCSI revision: 02
[root@couch scsi]#
 
[root@couch ide-scsi]# cat 0
SCSI host adapter emulation for IDE ATAPI devices
[root@couch ide-scsi]# pwd
/proc/scsi/ide-scsi
[root@couch ide-scsi]# cat 0
SCSI host adapter emulation for IDE ATAPI devices
[root@couch ide-scsi]#


Comment 2 Glen Foster 2001-03-29 21:05:42 UTC
This defect considered MUST-FIX for Florence Gold

Comment 3 Glen Foster 2001-03-29 21:07:24 UTC
Oops, wrong bug.  This one is NOT MUST-FIX.

Comment 4 Preston Brown 2001-04-03 16:44:07 UTC
changed in eject-2.0.2-7 and later.


Note You need to log in before you can comment on or make changes to this bug.