diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-07-18 17:09:45 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-11-17 11:16:21 +0100 |
commit | 3391c127f4999b47299e51d305907c772c01167c (patch) | |
tree | 85c76a8c660b7370269a4f009f9c3786e470f7a3 /ubi-utils/libiniparser.c | |
parent | a6dcd8f3215b435ba21ce26eb230b1484417d1e3 (diff) |
nanddump: check write function result for errors
Errors may happen, it's e.g. easy on embedded devices to run out of space
when dumping big partitions. This patch adds a helper function for
writing. It deals with partial writes and just returns 0 on success or
error number.
The old code didn't check for errors at all which could result in
incomplete dumps without exiting with an error.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'ubi-utils/libiniparser.c')
0 files changed, 0 insertions, 0 deletions