diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-12-02 02:59:13 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-12-03 15:55:15 +0100 |
commit | 581ba1341017943d740ed8163d68f04671c2fdde (patch) | |
tree | e356c38fbe7b86af13593f321fa0da09a991e76f /mdadm.h | |
parent | mdadm: ask user if bitmap is not set (diff) | |
download | mdadm-581ba1341017943d740ed8163d68f04671c2fdde.tar.xz mdadm-581ba1341017943d740ed8163d68f04671c2fdde.zip |
mdadm: remove bitmap file support
Because it's marked deprecated for a long time now, and it's not worthy
to support it for new bitmap.
Now that we don't need to store filename for bitmap, also declare a new
enum type bitmap_type to simplify code.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -598,9 +598,16 @@ enum prefix_standard { }; enum bitmap_update { - NoUpdate, - NameUpdate, - NodeNumUpdate, + NoUpdate, + NameUpdate, + NodeNumUpdate, +}; + +enum bitmap_type { + BitmapNone, + BitmapInternal, + BitmapCluster, + BitmapUnknown, }; enum flag_mode { @@ -640,8 +647,7 @@ struct mddev_ident { int spare_disks; struct supertype *st; char *spare_group; - char *bitmap_file; - int bitmap_fd; + enum bitmap_type btype; char *container; /* /dev/whatever name of container, or * uuid of container. You would expect @@ -693,7 +699,7 @@ struct shape { char *layout_str; int chunk; int bitmap_chunk; - char *bitmap_file; + enum bitmap_type btype; int assume_clean; bool write_zeroes; int write_behind; |