It is obvious that any UM handle the relates to a stream will complete short reads. Obvious stream handles are sockets and pipes, but less obvious stream handles are files - think POSIX
Block level devices ordinarily will not complete a short read but rather fail the request. And often fail any unaligned request
Sent from Surface Pro
From: xxxxx@osr.com
Sent: Monday, January 12, 2015 9:12 PM
To: Windows System Software Devs Interest List
(thanks to Max for the most interesting question in weeks)
You’d think all of us big experts would know the answer to this simple questions right off the top of our heads, wouldn’t you. LOL…
Suppose you try to read beyond the disk’s capacity? I mean, who checks that? Does the request get to the controller.
I just don’t remember. Back in the day, I *seem* to remember that disk or partition checked to see if you attempted to read past the end of the current partition. But that code has definitely changed since the last time I paid any attention to it.
Peter
OSR
@OSRDrivers
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer