diff options
author | NeilBrown <neilb@suse.de> | 2012-04-04 06:00:42 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-04-04 06:03:45 +0200 |
commit | fbdef49811c9e2b54e2064d9af68cfffa77c6e77 (patch) | |
tree | 15dde5a1335015a70397be8041e5c7028489bcf8 /sysfs.c | |
parent | parse_size: distinguish between 0 and error. (diff) | |
download | mdadm-fbdef49811c9e2b54e2064d9af68cfffa77c6e77.tar.xz mdadm-fbdef49811c9e2b54e2064d9af68cfffa77c6e77.zip |
Bitmap_offset is a signed number
As the bitmap can be before the superblock, bitmap_offset is signed.
But some of the code didn't honour that :-(
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'sysfs.c')
-rw-r--r-- | sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -226,7 +226,7 @@ struct mdinfo *sysfs_read(int fd, int devnum, unsigned long options) else if (strncmp(buf, "none", 4) == 0) sra->bitmap_offset = 0; else if (buf[0] == '+') - sra->bitmap_offset = strtoul(buf+1, NULL, 10); + sra->bitmap_offset = strtol(buf+1, NULL, 10); else goto abort; } |