mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] Make TFTP detection more convenient
@ 2018-01-24  7:45 Sascha Hauer
  2018-01-24  7:45 ` [PATCH 1/7] startup: create /tmp Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Sascha Hauer @ 2018-01-24  7:45 UTC (permalink / raw)
  To: Barebox List

We can't lseek on files provided by TFTP, so some code copies the file
to operate on from TFTP to RAM before continuing. Make this a bit easier
by providing some helper code. We now create /tmp/, provide make_temp()
to create temporary files and also a single function to create a copy
of a file in /tmp/.

Sascha Hauer (7):
  startup: create /tmp
  fs: implement is_tftp_fs()
  libfile: implement make_temp
  libfile: implement a function to cache a file
  uimage: Use is_tftp_fs() and cache_file() to ease TFTP workaround
  fs/uimagefs: Use is_tftp_fs() and cache_file() to ease TFTP workaround
  fs: remove now unused function can_lseek_backward()

 common/startup.c   |  1 +
 common/uimage.c    | 47 ++++++++++++++++++++++-------------------------
 fs/fs.c            | 22 ++++++++++++++++++++++
 fs/uimagefs.c      | 33 ++++++++++-----------------------
 include/fs.h       | 20 +++++---------------
 include/image.h    |  1 +
 include/libfile.h  |  4 ++++
 include/uimagefs.h |  2 +-
 lib/libfile.c      | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 120 insertions(+), 64 deletions(-)

-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2018-01-25  7:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24  7:45 [PATCH 0/7] Make TFTP detection more convenient Sascha Hauer
2018-01-24  7:45 ` [PATCH 1/7] startup: create /tmp Sascha Hauer
2018-01-24  7:45 ` [PATCH 2/7] fs: implement is_tftp_fs() Sascha Hauer
2018-01-24 19:12   ` Stefan Lengfeld
2018-01-25  7:46     ` Sascha Hauer
2018-01-24  7:45 ` [PATCH 3/7] libfile: implement make_temp Sascha Hauer
2018-01-24  7:45 ` [PATCH 4/7] libfile: implement a function to cache a file Sascha Hauer
2018-01-24 19:23   ` Stefan Lengfeld
2018-01-24  7:45 ` [PATCH 5/7] uimage: Use is_tftp_fs() and cache_file() to ease TFTP workaround Sascha Hauer
2018-01-24 19:39   ` Stefan Lengfeld
2018-01-24  7:45 ` [PATCH 6/7] fs/uimagefs: " Sascha Hauer
2018-01-24 19:56   ` Stefan Lengfeld
2018-01-24  7:45 ` [PATCH 7/7] fs: remove now unused function can_lseek_backward() Sascha Hauer

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