summaryrefslogtreecommitdiff
path: root/libstore/remap.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-23 17:40:16 +0000
committerRoland McGrath <roland@gnu.org>1999-05-23 17:40:16 +0000
commit73149455f0cf8b73e8c85320c99ad6c994b870d8 (patch)
tree9e3fc521064d31fb00a70b8ce54f592ab2cbe04a /libstore/remap.c
parentd9f2b83786d358e2294e9f1b457caa7a4b3a8425 (diff)
1999-05-23 Roland McGrath <roland@baalperazim.frob.com>
* remap.c (remap_open): Don't multiply by 512. Offsets and sizes are in blocks, not bytes.
Diffstat (limited to 'libstore/remap.c')
-rw-r--r--libstore/remap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstore/remap.c b/libstore/remap.c
index 01e84f3a..eb883b2f 100644
--- a/libstore/remap.c
+++ b/libstore/remap.c
@@ -109,20 +109,20 @@ remap_open (const char *name, int flags,
do
{
char *endp;
- runs[nruns].start = strtoul (p, &endp, 0) * 512; /* ? */
+ runs[nruns].start = strtoul (p, &endp, 0);
if (*endp == '+')
{
if (endp == p) /* Syntax "+5,+7" means "0+5,0+7". */
runs[nruns].start = 0;
p = endp + 1;
- runs[nruns].length = strtoul (p, &endp, 0) * 512;
+ runs[nruns].length = strtoul (p, &endp, 0);
if (endp == p)
return EINVAL;
}
else if (endp == p) /* Must have a number unless starts with +. */
return EINVAL;
else
- runs[nruns].length = 512;
+ runs[nruns].length = 1;
++nruns;
p = endp;
if (*p == ',')