Skip to content

Loading…

Fix to the flashcache OCF resource agent. #63

Merged
merged 1 commit into from

2 participants

@dvance

It seems that the flashcache_load syntax has been simplified since the OCF resource agent was written. Edited the OCF to reflect this. Tested in simple two node cluster.

@mohans mohans merged commit 332fe0f into facebook:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2012
  1. @dvance
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/ocf/flashcache
View
5 src/ocf/flashcache
@@ -102,9 +102,8 @@ flashcache_start() {
# actually start up the resource here (make sure to immediately
# exit with an $OCF_ERR_ error code if anything goes seriously
# wrong)
- ocf_run flashcache_load ${OCF_RESKEY_name} \
- ${OCF_RESKEY_cache_device} \
- ${OCF_RESKEY_device} || exit $OCF_ERR_GENERIC
+ ocf_run flashcache_load ${OCF_RESKEY_cache_device} \
+ || exit $OCF_ERR_GENERIC
# After the resource has been started, check whether it started up
# correctly. If the resource starts asynchronously, the agent may
Something went wrong with that request. Please try again.