lkml.org 
[lkml]   [1999]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Confused about RAW devices ...
Hi,

On Sat, 23 Oct 1999 13:31:20 +0100 (MET), DAVID BALAZIC
<david.balazic@uni-mb.si> said:

> How does it test the disk change ?

With a TEST_UNIT_READY low-level command.

> My program is :
> open//dev/cdrom)
> seek to 12000345
> read one byte
> close

> If I call this program from shell twice , each will spin up the
> drive.

If the block device is unused (as will be the case between your calls to
the program), and you open the device, it will check disk change. If
the disk has not been changed, then the cache will remain valid.
Whether your cdrom chooses to spin up the drive or not on a
TEST_UNIT_READY command is not a kernel matter!

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.068 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site