u-boot/fs
Stephen Warren bd6fb31fab fs: fix generic save command implementation
Fix a few issues with the generic "save" shell command, and fs_write()
function.

1) fstypes[].write wasn't filled in for some file-systems, and isn't
   checked when used, which could cause crashes/... if executing save
   on e.g. fat/ext filesystems.

2) fs_write() requires the length argument to be non-zero, since it needs
   to know exactly how many bytes to write. Adjust the comments and code
   according to this.

3) fs_write() wasn't prototyped in <fs.h> like other generic functions;
   other code should be able to call this directly rather than invoking
   the "save" shell command.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
2014-02-19 09:47:33 -05:00
..
cbfs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
cramfs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
ext4 ext4fs: fix "invalid extent block" error 2014-01-20 10:09:40 -05:00
fat fs:fat: fix set file name function 2013-11-08 15:25:13 -05:00
fdos fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
jffs2 JFFS2: Correct jffs2_1pass_build_lists to use lldiv 2013-12-13 09:16:20 -05:00
reiserfs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
sandbox fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
ubifs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
yaffs2 yaffs2: Remove block number check from summary verification 2014-01-20 10:09:51 -05:00
zfs fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00
fs.c fs: fix generic save command implementation 2014-02-19 09:47:33 -05:00
Makefile fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00