Skip to content
Browse files

Made it so lazy initialization only works with writeback.

  • Loading branch information...
1 parent 1ea19b6 commit 0fbfb0a2a3c96261ddaeaaeee8aaf693c9e40eca Jeff Fisher committed Sep 24, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/utils/flashcache_create.c
View
5 src/utils/flashcache_create.c
@@ -312,6 +312,11 @@ main(int argc, char **argv)
}
if (lazy) {
+ if (cache_mode != FLASHCACHE_WRITE_BACK) {
+ fprintf(stderr, "Lazy initialization can only be used with writeback mode!\n");
+ exit(1);
+ }
+
struct flash_superblock *header = (struct flash_superblock *)malloc(512);
if (!header) {

0 comments on commit 0fbfb0a

Please sign in to comment.
Something went wrong with that request. Please try again.