]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: don't allow adding a bitmap if there is no space.
authorNeilBrown <neilb@suse.de>
Fri, 15 Aug 2014 05:45:54 +0000 (15:45 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 15 Aug 2014 05:45:54 +0000 (15:45 +1000)
commit268cccac2e44e8e9166c9727e740d5d1f537b6a4
tree7e3023a5a9b38e0ffe9603bb40d47508e6bbff13
parent73ff07327198533ccb21d7ad8765365d85843c28
super1: don't allow adding a bitmap if there is no space.

If the data is too close to the superblock there may be
no space for a bitmap.
If that happens, fail the adding of the bitmap rather than
corrupt data.

Reported-by: Lars Wijtemans <rhelbugzilla@lars.wijtemans.nl>
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=922944
super1.c