]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: parse bad block log in metadata on startup
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Tue, 29 Nov 2016 15:40:11 +0000 (16:40 +0100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 2 Dec 2016 16:02:09 +0000 (11:02 -0500)
commit8d67477fd13086471fe08826f3f6333819cc8a71
treed2b9f58791589cb98c50a99c9e5b1af365d51dfd
parente22fe3ae15901d723aa6a0d319cd18564156c50b
imsm: parse bad block log in metadata on startup

Always allocate memory for all log entries to avoid a need for memory
allocation when monitor requests to record a bad block.

Also some extra checks added to make static code analyzer happy.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c