Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 88471 Details for
Bug 133889
app-cdr/dvd+rw-tools - growisofs fail to close session with some pioneer dvd-r
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch to make dvd+rw-tools wait for pioneer devices
pioneer_crap_wait.patch (text/plain), 1.21 KB, created by
Florian Engelhardt
on 2006-06-05 13:38:14 UTC
(
hide
)
Description:
the patch to make dvd+rw-tools wait for pioneer devices
Filename:
MIME Type:
Creator:
Florian Engelhardt
Created:
2006-06-05 13:38:14 UTC
Size:
1.21 KB
patch
obsolete
>--- dvd+rw-tools-6.1/growisofs_mmc.cpp 2006-01-26 14:04:09.000000000 +0100 >+++ dvd+rw-tools-6.1_bugfix/growisofs_mmc.cpp 2006-06-05 22:35:18.000000000 +0200 >@@ -1512,8 +1512,17 @@ > cmd[1] = 0x01; // "IMMED" > cmd[2] = 0x02; // "Close session" > cmd[9] = 0; >- if ((err=cmd.transport())) >- sperror ("CLOSE SESSION",err); >+ >+ // it seems, that pioneer is a bit crappy >+ while (err=cmd.transport()) { >+ if (SK(err)==0x2 && ASC(err)==0x04 && ASCQ(err)==0x07) { >+ sperror ("CLOSE SESSION (but try to continue)",err); >+ usleep(10000); >+ } else { >+ sperror ("CLOSE SESSION",err); >+ break; >+ } >+ } > > if (wait_for_unit (cmd)) break; > >@@ -1600,8 +1609,17 @@ > cmd[1] = 0x01; // "IMMED" > cmd[2] = 0x02; // "Close Session" > cmd[9] = 0; >- if ((err=cmd.transport())) >- sperror ("CLOSE SESSION",err); >+ >+ // it seems, that pioneer is a bit crappy >+ while (err=cmd.transport()) { >+ if (SK(err)==0x2 && ASC(err)==0x04 && ASCQ(err)==0x07) { >+ sperror ("CLOSE SESSION (but try to continue)",err); >+ usleep(10000); >+ } else { >+ sperror ("CLOSE SESSION",err); >+ break; >+ } >+ } > > if (wait_for_unit (cmd)) break; >
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 133889
: 88471