Reg Error: "UNIT NOT READY, LONG WRITE IN PROGRESS".

David Burg daviburg at windows.microsoft.com
Sat Jul 26 13:37:46 PDT 2008


* From the T10 Reflector (t10 at t10.org), posted by:
* David Burg <daviburg at windows.microsoft.com>
*
Hello Sathish,
Rather than using FUA = 1 which might affect negatively your performance,
send regular writes with FUA = 0 but then issue a Sync Cache command at the
end of your writes to flush the drive's buffer. Poll for completion of the
operation with Test Unit Ready, retry after a small delay on long write in
progress sense code, with optionally using the Get Event Status Notification
class busy event to get from the drive suitable wait intervals. After Test
Unit Ready succeeds with no sense information, you may issue read commands.
Notice this is needed for CD but some DVD won't need the buffer flush to
succeed read commands.
Now an alternative on Windows operating systems to write your CD-RW
Track-At-Once without all this complication is to use the IMAPI2 burn engine,
included in Vista & Server 2008, and for which a free upgrade is available
for XP and Server 2003. See
http://msdn.microsoft.com/en-us/library/aa366450(VS.85).aspx for
documentation of this API including code sample how to burn a multi-session
CD-RW (and DVD) in a handful of lines of code.
With regards,
David Burg,
Microsoft Corp.
-----Original Message-----
From: owner-t10 at t10.org [mailto:owner-t10 at t10.org] On Behalf Of sathish babu
Sent: Friday, July 18, 2008 9:09 AM
To: Quicksall_SCSI at Bellsouth.net; Kevin_Marks at Dell.com; t10 at t10.org
Subject: Reg Error: "UNIT NOT READY, LONG WRITE IN PROGRESS".
* From the T10 Reflector (t10 at t10.org), posted by:
* "sathish babu" <tummapudi at rediffmail.com>
*
Hi,
  I am writing my own CD/DVD burning software. I am trying to burn
my CD-RW as Track-At-Once mode.
  after I gave seris of Write commands (with FUA bit set to 1) and a Read
command
(to access the previous session data), Read command returing an error
message:
"UNIT NOT READY, LONG WRITE IN PROGRESS".
  The error is occuring when I try to burn a multi session disk by giving
series of write
commands and a read command.
  How do I resolve this problem.
  Thanks in advance
*
* For T10 Reflector information, send a message with
* 'info t10' (no quotes) in the message body to majordomo at t10.org
*
* For T10 Reflector information, send a message with
* 'info t10' (no quotes) in the message body to majordomo at t10.org



More information about the T10 mailing list