]> git.ipfire.org Git - thirdparty/mdadm.git/commit
bitmap: Simplify code for bitmap_file_open()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 15 Aug 2016 20:16:05 +0000 (16:16 -0400)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 15 Aug 2016 20:16:05 +0000 (16:16 -0400)
commit9ca0de6241d0b8a2f396f06746bee50b0a5096b6
treea11f191642150898a57a290a5f8635b551f2f83e
parent00fab7459a4492f3009ab382a4ea11b3cb72845a
bitmap: Simplify code for bitmap_file_open()

By switching to open+fstat rather than stat+open the code can be
simplified and avoid duplicating the open handling.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
bitmap.c