mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/6] ubi: remove character device flag from static volumes
@ 2016-11-25  8:06 Teresa Remmet
  2016-11-25  8:06 ` [PATCH 1/6] libfile: copy_file: Only open regular files with O_TRUNC Teresa Remmet
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Teresa Remmet @ 2016-11-25  8:06 UTC (permalink / raw)
  To: barebox

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-12-07 20:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25  8:06 [PATCH 0/6] ubi: remove character device flag from static volumes Teresa Remmet
2016-11-25  8:06 ` [PATCH 1/6] libfile: copy_file: Only open regular files with O_TRUNC Teresa Remmet
2016-11-25  8:06 ` [PATCH 2/6] devfs: Add optional truncate callback for device files Teresa Remmet
2016-11-25  8:06 ` [PATCH 3/6] ubi: Add truncate callback Teresa Remmet
2016-11-25  8:06 ` [PATCH 4/6] fs: Remove O_TRUNC check for devices when open files Teresa Remmet
2016-11-25  8:06 ` [PATCH 5/6] commands: ubi: ubiupdatevol: Open device with O_TRUNC Teresa Remmet
2016-11-25  8:06 ` [PATCH 6/6] ubi: barebox: Remove character device flag from static volumes Teresa Remmet
2016-12-07 20:13 ` [PATCH 0/6] ubi: remove " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox