Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Fix for a flashcache_create bug where associativity is not being pass…
Browse files Browse the repository at this point in the history
…ed in correctly.

Summary: Fix for a flashcache_create bug where associativity is not being passed in
correctly to the flashcache module.

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
  • Loading branch information
Mohan Srinivasan committed Nov 15, 2012
1 parent a4a63a7 commit 4cc45e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/flashcache_create.c
Expand Up @@ -40,6 +40,8 @@
#include <linux/types.h>
#include <flashcache.h>

#undef COMMIT_REV

void
usage(char *pname)
{
Expand Down Expand Up @@ -342,7 +344,7 @@ main(int argc, char **argv)
ssd_devname, disk_devname);
check_sure();
}
sprintf(dmsetup_cmd, "echo 0 %lu flashcache %s %s %s %d 2 %lu %lu %lu %lu"
sprintf(dmsetup_cmd, "echo 0 %lu flashcache %s %s %s %d 2 %lu %lu %d %lu"
" | dmsetup create %s",
disk_devsize, disk_devname, ssd_devname, cachedev, cache_mode, block_size,
cache_size, associativity, md_block_size,
Expand Down

0 comments on commit 4cc45e1

Please sign in to comment.