Similar to .trim, except that it guarantees that zeroes are read
back, and also clients must obey the may_trim argument with
regards to whether a hole may be used or whether the file must
remain allocated with actual zeroes written. If the callback is
not implemented, or if the callback fails with
We always advertise this to the client (for writable exports), even
when the plugin does not have any optimized implementation, because
it allows for more efficient network traffic.
Signed-off-by: Eric Blake
---
src/connections.c | 26 --
src/protocol.h| 17 ++
On Linux, use fallocate() to punch holes as a more efficient way
of writing zeroes. If hole punching is not allowed, or if we
can't use fallocate (whether because this is not Linux, or because
the file system on Linux doesn't support it), gracefully fall
back to the write method. If wdelayms is s
Reject rather than silently ignoring unknown client request flags.
Signed-off-by: Eric Blake
---
src/connections.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/connections.c b/src/connections.c
index 16c6584..44b7530 100644
--- a/src/connections.c
+++ b/src/con
The upstream protocol recently promoted NBD_CMD_WRITE_ZEROES from
experimental to a documented extension. Exposing support for this
allows plugin writers to create sparse files when driven by a
client that knows how to use the extension; meanwhile, even if a
plugin does not support this extension,
The upstream NBD protocol allows a reduction in the length of the
handshake by both sides agreeing to skip the 124 bytes of padding
in the final server reply.
Signed-off-by: Eric Blake
---
src/connections.c | 14 +++---
src/protocol.h| 1 +
2 files changed, 12 insertions(+), 3 delet
Save the content of the environment on the conversion server, so it is
one additional help when debugging failed conversions.
---
p2v/conversion.c | 5 +
p2v/virt-p2v.pod | 6 ++
2 files changed, 11 insertions(+)
diff --git a/p2v/conversion.c b/p2v/conversion.c
index 3c379cb..b8bab34 1006
This is mostly code motion but I had to remove the compile-time
COMPILING_GUESTFISH and COMPILING_VIRT_RESCUE macros and replace them
with runtime constants and checks.
---
Makefile.am| 2 +-
align/Makefile.am | 3 +-
align/scan.c
---
.gitignore | 40 -
Makefile.am | 2 +-
align/Makefile.am| 4 +-
builder/Makefile.am | 8 +-
cat/Makefile.am | 20 ++---
cfg.mk
This patch series moves some files and directories around but is only
code motion (or supposed to be).
A new directory, common/, is created for all of the common code which
is currently shared in random ways between parts of the project.
And src/ becomes lib/ (the largest change, but mostly mechan
This commit, which is just code motion, moves the common XDR protocol
code (libprotocol) and the common errno handling (liberrnostring) into
libraries which are each built once and shared between the library and
daemon.
---
.gitignore | 20 +
Makefile.am
Just code motion.
This commit makes it clearer what is a utility and what is part of the
library. It also makes it clear that we should rename:
guestfs-internal-frontend.h -> utils.h
guestfs-internal-frontend-cleanups.h -> cleanups.h (?)
but this commit does not make that change.
---
.giti
Just code motion.
---
Makefile.am | 3 +++
cat/Makefile.am | 6 +++---
common/visit/Makefile.am | 33 +
{cat => common/visit}/visit.c | 0
{cat => common/visit}/visit.h | 0
configure.ac | 1 +
diff/Makefile
13 matches
Mail list logo