Permalink
Browse files

Fixed the /proc path of flashcache_version

It might be due to an upgrade change. The location of flashcache_version changed.
  • Loading branch information...
1 parent a4a63a7 commit 70fd4dc51f080538cfcad505c922f8539b7e3406 @leseb leseb committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ocf/flashcache
View
@@ -92,12 +92,12 @@ flashcache_start() {
exit $OCF_ERR_INSTALLED
fi
- if [ ! -e /proc/flashcache_version ]; then
+ if [ ! -e /proc/flashcache/flashcache_version ]; then
ocf_log debug "Flashcache support not loaded, loading module"
ocf_run modprobe -v flashcache || exit $OCF_ERR_INSTALLED
fi
- ocf_log debug "Flashcache module information obtained from kernel: `cat /proc/flashcache_version`"
+ ocf_log debug "Flashcache module information obtained from kernel: `cat /proc/flashcache/flashcache_version`"
# actually start up the resource here (make sure to immediately
# exit with an $OCF_ERR_ error code if anything goes seriously

0 comments on commit 70fd4dc

Please sign in to comment.