Opened 14 years ago
Closed 14 years ago
#12 closed enhancement (fixed)
Make buffer-cache a Block device
Reported by: | Nicolas Pouillon | Owned by: | Nicolas Pouillon |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | drivers | Keywords: | |
Cc: |
Description
Block device API
Add a flag argument in requests in order to be able to optimize buffer-cache operations, we could imagine:
- nocache attribute
- some hints about the usage of blocks (write only, read once, …)
This could allow not to cache certain blocks because upper layer knows they wont be reused, and they would clean the cache, which is not wanted
Buffer cache implementation as a block-device
- A double struct:
- a linked-link implementing a LRU
- a hash-table indexed by LBA for lookups
- Have a dirty flag
Change History (2)
comment:1 Changed 14 years ago by
Component: | libvfs → drivers |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Done as of [1263]