"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "super1.c" between
mdadm-4.2-rc1.tar.xz and mdadm-4.2-rc2.tar.xz

About: mdadm is a tool for creating, managing and monitoring device arrays using the "md" driver in Linux, also known as Software RAID arrays.

super1.c  (mdadm-4.2-rc1.tar.xz):super1.c  (mdadm-4.2-rc2.tar.xz)
skipping to change at line 2634 skipping to change at line 2634
return -1; /* no error I hope... */ return -1; /* no error I hope... */
mustfree = 1; mustfree = 1;
} }
sb = st->sb; sb = st->sb;
if ((__le32_to_cpu(sb->feature_map) & MD_FEATURE_BITMAP_OFFSET)) if ((__le32_to_cpu(sb->feature_map) & MD_FEATURE_BITMAP_OFFSET))
ret = 0; ret = 0;
else else
ret = -1; ret = -1;
offset = __le64_to_cpu(sb->super_offset) + __le32_to_cpu(sb->bitmap_offse t); offset = __le64_to_cpu(sb->super_offset) + (int32_t)__le32_to_cpu(sb->bit map_offset);
if (node_num) { if (node_num) {
bms = (bitmap_super_t*)(((char*)sb)+MAX_SB_SIZE); bms = (bitmap_super_t*)(((char*)sb)+MAX_SB_SIZE);
bm_sectors_per_node = calc_bitmap_size(bms, 4096) >> 9; bm_sectors_per_node = calc_bitmap_size(bms, 4096) >> 9;
offset += bm_sectors_per_node * node_num; offset += bm_sectors_per_node * node_num;
} }
if (mustfree) if (mustfree)
free(sb); free(sb);
lseek64(fd, offset<<9, 0); lseek64(fd, offset<<9, 0);
return ret; return ret;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)