]> git.baikalelectronics.ru Git - kernel.git/commit
block: add verifier for cmdline partition
authorWang YanQing <udknight@gmail.com>
Thu, 10 May 2018 03:06:37 +0000 (11:06 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Jun 2018 15:20:53 +0000 (09:20 -0600)
commit33c94adef00e125ca19ad0806bc4bc6e119d9678
treec454af13ed45fd16b95d8de98d47f1b4f16b708e
parent068078a72b3890b68cbac593fa65a2cab2957fd5
block: add verifier for cmdline partition

I meet strange filesystem corruption issue recently, the reason
is there are overlaps partitions in cmdline partition argument.

This patch add verifier for cmdline partition, then if there are
overlaps partitions, cmdline_partition will log a warning. We don't
treat overlaps partition as a error:
"
Caizhiyong <caizhiyong@hisilicon.com> said:
Partition overlap was intentionally designed in this cmdline partition.
reference http://lists.infradead.org/pipermail/linux-mtd/2013-August/048092.html
"

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/cmdline.c