[PATCH 0/2] *** SUBJECT HERE ***
*** BLURB HERE *** Matthew Booth (2): New APIs: hopen-device hopen-file hread hwrite hseek hclose hclose-all Update pwrite to write a full buffer daemon/.gitignore | 1 + daemon/Makefile.am | 1 + daemon/file.c | 20 ++- daemon/hfile.c | 249 ++++++++++++++++++++++++++++++++++++++++ daemon/m4/gnulib-cache.m4 | 3 +- generator/generator_actions.ml | 120 ++++++++++++++++++- po/POTFILES.in | 2 + regressions/Makefile.am | 1 + regressions/test-hfile.pl | 236 +++++++++++++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 10 files changed, 620 insertions(+), 15 deletions(-) create mode 100644 daemon/hfile.c create mode 100755 regressions/test-hfile.pl -- 1.7.2.3
These APIs provide handle-based read/write streaming and random access to files and block devices. --- daemon/.gitignore | 1 + daemon/Makefile.am | 1 + daemon/hfile.c | 249 ++++++++++++++++++++++++++++++++++++++++ daemon/m4/gnulib-cache.m4 | 3 +- generator/generator_actions.ml | 114 ++++++++++++++++++ po/POTFILES.in | 2 + regressions/Makefile.am | 1 + regressions/test-hfile.pl | 236 +++++++++++++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 9 files changed, 607 insertions(+), 2 deletions(-) create mode 100644 daemon/hfile.c create mode 100755 regressions/test-hfile.pl
This patch changes pwrite such that it will never return a short write. This is a backwards compatible API change, as checking for short writes remains correct, but redundant. --- daemon/file.c | 20 +++++++++++++------- generator/generator_actions.ml | 6 ------ 2 files changed, 13 insertions(+), 13 deletions(-)
participants (1)
-
Matthew Booth