diff options
Diffstat (limited to 'libstore/nbd.c')
-rw-r--r-- | libstore/nbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c index d93c0e0a..b8fe1590 100644 --- a/libstore/nbd.c +++ b/libstore/nbd.c @@ -395,6 +395,7 @@ store_nbd_open (const char *name, int flags, struct store **store) err = nbdopen (name, &flags, &sock, &blocksize, &run.length); if (!err) { + run.length /= blocksize; err = _store_nbd_create (sock, flags, blocksize, &run, 1, store); if (! err) { |