Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 184474 Details for
Bug 261880
eject -T does not work with certain drives.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openSUSE eject -T fix
bug-374526_eject-2.1.0-toggle.diff (text/plain), 591 bytes, created by
Peter Tworek
on 2009-03-09 17:10:45 UTC
(
hide
)
Description:
openSUSE eject -T fix
Filename:
MIME Type:
Creator:
Peter Tworek
Created:
2009-03-09 17:10:45 UTC
Size:
591 bytes
patch
obsolete
>--- eject.c >+++ eject.c >@@ -471,8 +471,23 @@ > { > struct timeval time_start, time_stop; > int time_elapsed; >+ int status; > > #ifdef CDROMCLOSETRAY >+ >+ status = ioctl(fd, CDROM_DRIVE_STATUS); >+ >+ if (status == CDS_TRAY_OPEN){ >+ CloseTray(fd); >+ return; >+ } >+ else if (status == CDS_NO_DISC || status == CDS_DISC_OK){ >+ if (ioctl(fd, CDROMEJECT, 0) < 0) { >+ perror("ioctl"); >+ exit(1); >+ } >+ return; >+ } > > /* Try to open the CDROM tray and measure the time therefor > * needed. In my experience the function needs less than 0.05
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261880
: 184474