From 73149455f0cf8b73e8c85320c99ad6c994b870d8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 23 May 1999 17:40:16 +0000 Subject: 1999-05-23 Roland McGrath * remap.c (remap_open): Don't multiply by 512. Offsets and sizes are in blocks, not bytes. --- libstore/remap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libstore/remap.c') 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 == ',') -- cgit v1.2.3