Commit 0ae1c9d3 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Song Liu

md: deprecate bitmap file support

The support for bitmaps on files is a very bad idea abusing various kernel
APIs, and fundamentally requires the file to not be on the actual array
without a way to check that this is actually the case.  Add a deprecation
warning to see if we might be able to eventually drop it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230615064840.629492-12-hch@lst.de
parent a34d4ef8
...@@ -51,7 +51,7 @@ config MD_AUTODETECT ...@@ -51,7 +51,7 @@ config MD_AUTODETECT
If unsure, say Y. If unsure, say Y.
config MD_BITMAP_FILE config MD_BITMAP_FILE
bool "MD bitmap file support" bool "MD bitmap file support (deprecated)"
default y default y
help help
If you say Y here, support for write intent bitmaps in files on an If you say Y here, support for write intent bitmaps in files on an
......
...@@ -7049,6 +7049,8 @@ static int set_bitmap_file(struct mddev *mddev, int fd) ...@@ -7049,6 +7049,8 @@ static int set_bitmap_file(struct mddev *mddev, int fd)
mdname(mddev)); mdname(mddev));
return -EINVAL; return -EINVAL;
} }
pr_warn("%s: using deprecated bitmap file support\n",
mdname(mddev));
f = fget(fd); f = fget(fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment