diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-06-21 20:17:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:07:47 -0400 |
commit | a654b9d8f851f4ca02649d5825cbe6c608adb10c (patch) | |
tree | 747301647f619a9f1dd48f4d6be96b5e35d2484c /include/linux/raid/md_k.h | |
parent | 3d310eb7b3df1252e8595d059d982b0a9825a137 (diff) |
[PATCH] md: allow md intent bitmap to be stored near the superblock.
This provides an alternate to storing the bitmap in a separate file. The
bitmap can be stored at a given offset from the superblock. Obviously the
creator of the array must make sure this doesn't intersect with data....
After is good for version-0.90 superblocks.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/md_k.h')
-rw-r--r-- | include/linux/raid/md_k.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 3e977025cf43..a3725b57fb7d 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -273,6 +273,10 @@ struct mddev_s | |||
273 | 273 | ||
274 | struct bitmap *bitmap; /* the bitmap for the device */ | 274 | struct bitmap *bitmap; /* the bitmap for the device */ |
275 | struct file *bitmap_file; /* the bitmap file */ | 275 | struct file *bitmap_file; /* the bitmap file */ |
276 | long bitmap_offset; /* offset from superblock of | ||
277 | * start of bitmap. May be | ||
278 | * negative, but not '0' | ||
279 | */ | ||
276 | 280 | ||
277 | struct list_head all_mddevs; | 281 | struct list_head all_mddevs; |
278 | }; | 282 | }; |