From 1ddedc345c99fc374d3ed600f309515c515266f4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 28 Sep 2001 06:20:34 +0000 Subject: 2001-09-27 Roland McGrath * nbd.c (store_nbd_open): Divide reported size by block size. --- libstore/nbd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libstore') 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) { -- cgit v1.2.3