summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-09-28 06:20:34 +0000
committerRoland McGrath <roland@gnu.org>2001-09-28 06:20:34 +0000
commit1ddedc345c99fc374d3ed600f309515c515266f4 (patch)
treed2fb92b0ccedcc13d7fa3ac3961c91076d36d83c
parent8ef32b564620b69b018c933447e79cf2f53e9a01 (diff)
2001-09-27 Roland McGrath <roland@frob.com>
* nbd.c (store_nbd_open): Divide reported size by block size.
-rw-r--r--libstore/nbd.c1
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)
{