Skip to content
Snippets Groups Projects
Commit 22b7509e authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Tom Rini
Browse files

fs: ext4 write: return file len on success


After rework of the file system API, the size of ext4
write was missed. This causes printing unreliable write
size at the end of the file system write operation.

Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
parent b31f9d7a
No related branches found
No related tags found
No related merge requests found
......@@ -1000,10 +1000,13 @@ int ext4_write_file(const char *filename, void *buf, loff_t offset,
}
ext4fs_close();
*actwrite = len;
return 0;
fail:
ext4fs_close();
*actwrite = 0;
return -1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment