User: Password:
|
|
Subscribe / Log in / New account

Supporting block I/O contexts

Supporting block I/O contexts

Posted Jun 22, 2012 9:11 UTC (Fri) by arnd (subscriber, #8866)
In reply to: Supporting block I/O contexts by etienne
Parent article: Supporting block I/O contexts

We already have the "data tag" support, which is used to annotate metadata. In eMMC 4.5 any request can be tagged either metadata or belonging to one of 5 to 15 contexts, or being unspecified. Any request that a file system flags as a REQ_META write uses the data tag.

Since FAT is both very simple and very common, a lot of the flash devices actually have logic in them to detect the access patterns even without those annotations. Usually the FAT area is known to be at the beginning of the device (partition-less SD cards and older USB sticks) or an erase block that receives lots of random I/O is expected to be the FAT. Further, devices often expect a FAT cluster size of 32KB, so all requests of that size are taken to be data while all smaller ones are treated as directory updates.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds