simfs: Use cache for sim_fs_read_info requests too.
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>
Sat, 29 Jan 2011 00:29:19 +0000 (01:29 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 3 Feb 2011 17:01:40 +0000 (11:01 -0600)
commit0cde90ff8e9b1461604d25b1433888a8003f16be
treec9d5afb375726fe9e64648d9f9aa5421f40abb6a
parent33dec0d98e92006030460cd1d8447af2ff391f88
simfs: Use cache for sim_fs_read_info requests too.

There seems to be no reason that the fileinfo is cached for file
read or block read requests but not info_only requests, so move
code around to fix this.  O_RDWR is changed to O_WRONLY for the
cache file because the file is not being read in case of cache miss.
src/simfs.c