]> git.ipfire.org Git - people/ms/u-boot.git/commit - fs/fs.c
sandbox: fs: Add support for saving files to host filesystem
authorSimon Glass <sjg@chromium.org>
Sat, 20 Apr 2013 08:42:51 +0000 (08:42 +0000)
committerTom Rini <trini@ti.com>
Wed, 1 May 2013 15:17:21 +0000 (11:17 -0400)
commit7eb2c8d573ad932bf67095f11c6b3beba41064f2
treee4f2e0f533ea14d758c09de28c143bbe60c70dbc
parenta8f6ab5229fb4cd8299df84c8698e128b5125a8e
sandbox: fs: Add support for saving files to host filesystem

This allows write of files from the host filesystem in sandbox. There is
currently no concept of overwriting the file and removing its existing
contents - all writing is done on top of what is there. This means that
writing 10 bytes to the start of a 1KB file will only update those 10
bytes, not truncate the file to 10 byte slong.

If the file does not exist it is created.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_sandbox.c
fs/fs.c
fs/sandbox/sandboxfs.c
include/sandboxfs.h