*** 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
Matthew Booth
2010-Sep-21 10:23 UTC
[Libguestfs] [PATCH 1/2] New APIs: hopen-device hopen-file hread hwrite hseek hclose hclose-all
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-New-APIs-hopen-device-hopen-file-hread-hwrite-hseek-.patch Type: text/x-patch Size: 18948 bytes Desc: not available URL: <http://listman.redhat.com/archives/libguestfs/attachments/20100921/8f38bbf1/attachment.bin>
Matthew Booth
2010-Sep-21 10:23 UTC
[Libguestfs] [PATCH 2/2] Update pwrite to write a full buffer
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(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-Update-pwrite-to-write-a-full-buffer.patch Type: text/x-patch Size: 1886 bytes Desc: not available URL: <http://listman.redhat.com/archives/libguestfs/attachments/20100921/8d975306/attachment.bin>
Apparently Analagous Threads
- [PATCH] New APIs: hopen-device hopen-file hread hwrite hseek hclose hclose-all
- Proposed new file apis
- [PATCH 0/2] Implement upload-offset, download-offset APIs, and hexedit guestfish command
- [PATCH] New API: md-stop for stopping MD devices
- [PATCH] NEW API: add new api btrfs-fsck