]> git.ipfire.org Git - thirdparty/mdadm.git/commit
check return status of all write/fwrite functions as required by glibc 2.4
authorNeil Brown <neilb@suse.de>
Mon, 29 May 2006 02:06:32 +0000 (02:06 +0000)
committerNeil Brown <neilb@suse.de>
Mon, 29 May 2006 02:06:32 +0000 (02:06 +0000)
commit9fca7d6236e9775d0269b9802f740c08db46f4d7
treeaef0c99d844a3eacf037294e6722079c01c44ae9
parent280a927d3d8da258a70df13df4f780d823fc1da2
check return status of all write/fwrite functions as required by glibc 2.4

From: Luca Berra <bluca@vodka.it>

glibc 2.4 is pedantic on ignoring return values from fprintf, fwrite and
write, so now we check the rval and actually do something with it.
in the Grow.c case i only print a warning, since i don't think we can do
anything in case we fail invalidating those superblocks (is should never
happen, but then...)

Signed-off-by: Neil Brown <neilb@suse.de>
Assemble.c
Grow.c
Monitor.c
bitmap.c
mdadm.h
super0.c
super1.c