summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-01-18 11:08:56 +0000
committerRichard Jones <rjones@redhat.com>2010-02-04 11:06:33 +0000
commit4718aeb9f0f743a05dfa342bc797617f3b9f96b3 (patch)
tree06d2895a0973e41a877fe1edfbb733518262ae0a /bootstrap
parentdb8a46aa1165479ddf2b551e81a7e96bb06fc942 (diff)
downloadlibguestfs-4718aeb9f0f743a05dfa342bc797617f3b9f96b3.tar.gz
libguestfs-4718aeb9f0f743a05dfa342bc797617f3b9f96b3.tar.xz
libguestfs-4718aeb9f0f743a05dfa342bc797617f3b9f96b3.zip
hivex: Add HIVEX_OPEN_WRITE flag to allow hive to be opened for writing.
If this flag is omitted (as in the case for all existing callers) then the hive is still opened read-only. We add a 'writable' flag to the hive handle, and we change the way that the hive file (data) is stored. The data is still mmapped if the file is opened read-only, since that is more efficient and allows us to handle larger hives. However if we need to write to the file then we have to read it all into memory, since if we had to extend the file we need to realloc that data. Note the manpage section L</WRITING TO HIVE FILES> comes in a later commit.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 7010ecae..e743a4b5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -60,6 +60,7 @@ modules='
arpa_inet
c-ctype
closeout
+full-read
full-write
gitlog-to-changelog
gnu-make