Skip to content

Commit ab52d67

Browse files
committed
src/shifter_core.c: respect cache block size
1 parent 4c97268 commit ab52d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shifter_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ int setupPerNodeCacheBackingStore(VolMapPerNodeCacheConfig *cache, const char *b
16121612
args[0] = _strdup(udiConfig->ddPath);
16131613
args[1] = _strdup("if=/dev/zero");
16141614
args[2] = alloc_strgenf("of=%s", buffer);
1615-
args[3] = _strdup("bs=1");
1615+
args[3] = alloc_strgenf("bs=%lu", cache->blockSize);
16161616
args[4] = _strdup("count=0");
16171617
args[5] = alloc_strgenf("seek=%lu", cache->cacheSize);
16181618
args[6] = NULL;

0 commit comments

Comments
 (0)