]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Open host file for read-only access if needed
authorSimon Glass <sjg@chromium.org>
Mon, 28 Feb 2022 22:13:47 +0000 (15:13 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Mar 2022 01:24:24 +0000 (19:24 -0600)
commit8069cb99a42b2fd8a831063dae52107794f5240f
treea034a3063575d0ab0ef246ce76705a4be0e40d97
parent0e8cfd8b2755be2e31182805b79f2256061ace1f
sandbox: Open host file for read-only access if needed

Some files cannot be written but read-only access is still useful for
tests. Add a fallback to read-only access when needed.

This is useful in CI when opening a large data file provided by docker,
where read/write access would result in copying the file, thus needing
a lot of extra disk space.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/sandbox.c