Instead of marking static volume device files as character devices introduced a truncate callback for device files. This makes it possible to dump static ubi volumes from flash. Teresa Remmet (6): libfile: copy_file: Only open regular files with O_TRUNC devfs: Add optional truncate callback for device files ubi: Add truncate callback fs: Remove O_TRUNC check for devices when open files commands: ubi: ubiupdatevol: Open device with O_TRUNC ubi: barebox: Remove character device flag from static volumes commands/ubi.c | 2 +- drivers/mtd/ubi/barebox.c | 19 ++++++++++++++++--- fs/devfs.c | 5 +++++ fs/fs.c | 2 +- include/driver.h | 1 + lib/libfile.c | 22 ++++++++++++++++------ 6 files changed, 40 insertions(+), 11 deletions(-) -- 1.9.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox