Re: another unusual flag for a really limited device

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, 15 Nov 2007, Matthew Dharm wrote:

> > I wish we could.  Our file handles values in units of sectors (512 
> > bytes) and the other sysfs entry handles values in units of KB.  It's 
> > even named "max_sectors_kb".
> 
> I'm guessing that it's worse than that... I'll bet that we handle a number
> of sectors, regardless of sector size.  So a sector might not be 512 bytes.

No, things aren't _that_ bad!  The block layer documentation states the
value is in terms of "logical" sectors that are always 512 bytes, not
"hardware" sectors that are whatever the device wants them to be.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.