]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Factor out is_bare test.
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:06 +0000 (20:58 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:06 +0000 (20:58 +1100)
commit52e965c2969723c80fd50d393a7e15658bc217c9
treeda1a15d083cc46e9c84a8787ca13da6da5d64d80
parent403410eb97e9ae77f99fd7632f0093660748197f
Factor out is_bare test.

Instead of open coding (and using horrible gotos), make this
a separate function.

Also fix the check for end of device - SEEK_END doesn't work on
block devices.

Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c