Re: another unusual flag for a really limited device

Matthew Dharm <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization One Eyed Alien Networks
Message-ID <[email protected]>
On Thu, Nov 15, 2007 at 12:59:20PM -0500, Alan Stern wrote:
> On Thu, 15 Nov 2007, Matthew Dharm wrote:
> 
> > On Wed, Nov 14, 2007 at 06:54:17PM -0500, Alan Stern wrote:
> > > On Wed, 14 Nov 2007, Matthew Dharm wrote:
> > > 
> > > > I'm somewhat tempted to actually just convert the _64 flag to a _MIN flag,
> > > > and make the issue of finding an "optimal" value a userspace problem.  I
> > > > think you can get to this parameter via sysfs, right?
> > > 
> > > In fact there are two separate sysfs interfaces for that parameter!  
> > > One in usb-storage and one in the generic block queue code.  In theory 
> > > we could remove ours, but it's already an established userspace API so 
> > > we should hesitate before getting rid of it.
> > 
> > We should at least be thinking about merging them.   It's not like ours
> > manipulates anything usb-storage or SCSI specific; it just calls
> > blk_queue_max_sectors
> > 
> > Perhaps we could turn ours into a symlink to the one provided by the block
> > queue code?
> 
> 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.

Matt

-- 
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
					-- Customer to Greg
User Friendly, 2/10/1999

-------------------------------------------------------------------------
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
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHPIraHL9iwnUZqnkRArXDAJ9yTCPgamYXClG3KCT1H2Lz6pn0uACdHP2J
fW1a+VUYkBgjlrimCXmYmi0=
=+roN
-----END PGP SIGNATURE-----
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.