search for: truncate2

Displaying 20 results from an estimated 22 matches for "truncate2".

Did you mean: truncated
2018 Aug 01
0
[PATCH v2 nbdkit 6/6] tests: truncate: Add two simple tests of the truncate filter.
--- tests/Makefile.am | 7 +++ tests/test-truncate1.sh | 120 ++++++++++++++++++++++++++++++++++++++++ tests/test-truncate2.sh | 120 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 247 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 12b7aae..4c602d7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -79,6 +79,8 @@ EXTRA_DIST = \ test-random-sock.sh \ test-tls.sh \ test-tls...
2018 Sep 13
0
[PATCH v2 nbdkit 5/5] tests: Add a helper function which waits for nbdkit to start up.
...sts/test-pattern.sh | 27 +------------ tests/test-start.sh | 17 +-------- tests/test-tls-psk.sh | 26 ++----------- tests/test-tls.sh | 25 +------------ tests/test-truncate1.sh | 27 +------------ tests/test-truncate2.sh | 27 +------------ tests/test-zero.sh | 3 -- 24 files changed, 104 insertions(+), 553 deletions(-) diff --git a/tests/functions.sh.in b/tests/functions.sh.in index 42e3925..5c1f34c 100644 --- a/tests/functions.sh.in +++ b/tests/functions.sh.in @@ -57,6 +57,...
2018 Sep 11
0
[PATCH nbdkit 4/4] tests: Add a helper function which waits for nbdkit to start up.
...+------- tests/test-pattern.sh | 16 ++------- tests/test-start.sh | 17 ++-------- tests/test-tls-psk.sh | 18 ++--------- tests/test-tls.sh | 17 ++-------- tests/test-truncate1.sh | 16 ++------- tests/test-truncate2.sh | 16 ++------- 23 files changed, 112 insertions(+), 347 deletions(-) diff --git a/tests/functions.sh.in b/tests/functions.sh.in index 4071384..01f3a60 100644 --- a/tests/functions.sh.in +++ b/tests/functions.sh.in @@ -32,6 +32,41 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISE...
2018 Sep 13
8
[PATCH v2 nbdkit 0/5] tests: Move common functions into tests/functions.sh
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00057.html v2: - Fix tab vs spaces in configure.ac. - To generate list of plugins, use printf instead of xargs. - Use 'source ./functions.sh' instead of 'source functions'. - functions.sh: Consistent quoting in foreach_plugin function. - functions.sh: Change the contract of start_nbdkit so it
2019 Jan 23
0
[PATCH v2 nbdkit] tests: Add generic ‘requires’ function for test prerequisites.
...------ tests/test-pattern-largest.sh | 8 ++------ tests/test-single.sh | 11 ++--------- tests/test-tls-psk.sh | 12 +++--------- tests/test-tls.sh | 12 +++--------- tests/test-truncate1.sh | 8 ++------ tests/test-truncate2.sh | 8 ++------ tests/test-truncate3.sh | 8 ++------ tests/test-zero.sh | 6 +----- 33 files changed, 87 insertions(+), 233 deletions(-) diff --git a/tests/functions.sh.in b/tests/functions.sh.in index 35647f7..289584a 100644 --- a/tests/funct...
2018 Aug 01
12
[PATCH v2 nbdkit 0/6] Add truncate filter and other fixes.
I have dropped the map filter from this series for now while I try to get it working. However I think the truncate filter is in a good shape. This incorporates all feedback from Eric's review. Also there are three small fixes to the filter code, all revealed when I was testing using multiple filters which we'd not done much of before. Rich.
2019 Jan 23
2
[PATCH v2 nbdkit] tests: Add generic requires.
v1 was here: https://www.redhat.com/archives/libguestfs/2019-January/thread.html#00198 For v2 I changed most existing prerequisite tests to use the new mechanism. I only changed simple tests. There are a few more complex tests that don't fit the “requires model” and those are not changed. I normalized qemu-io/qemu-img testing to always use the --version flag, where previously we used a mix
2018 Sep 13
0
[PATCH v2 nbdkit 4/5] tests: Use a generic cleanup mechanism instead of explicit trap.
...++------- tests/test-pattern.sh | 9 ++------- tests/test-single.sh | 10 ++-------- tests/test-tls-psk.sh | 10 ++-------- tests/test-tls.sh | 10 ++-------- tests/test-truncate1.sh | 9 ++------- tests/test-truncate2.sh | 9 ++------- tests/test-zero.sh | 14 ++------------ 24 files changed, 73 insertions(+), 157 deletions(-) diff --git a/tests/functions.sh.in b/tests/functions.sh.in index 62fdfe5..42e3925 100644 --- a/tests/functions.sh.in +++ b/tests/functions.sh.in @@ -32...
2018 Aug 12
0
[PATCH nbdkit 08/10] freebsd: In scripts use 'env bash' instead of '/bin/bash'.
...hebang-python.sh | 2 +- tests/test-shebang-ruby.sh | 2 +- tests/test-single.sh | 2 +- tests/test-start.sh | 2 +- tests/test-tls-psk.sh | 2 +- tests/test-tls.sh | 2 +- tests/test-truncate1.sh | 2 +- tests/test-truncate2.sh | 2 +- tests/test-vddk.sh | 2 +- tests/test-version-filter.sh | 2 +- tests/test-version-plugin.sh | 2 +- tests/test-version.sh | 2 +- tests/test-zero.sh | 2 +- 41 files changed, 41 insertions(+), 41 deletions(-) diff --gi...
2018 Sep 11
7
[PATCH nbdkit 0/4] tests: Move common functions into tests/functions.sh
Combine much common code into tests/functions.sh. Patch 1: Preparation for patch 3. Patch 2: Fix a long-standing bug in how man pages links are generated. Patch 3: Common code for iterating a test function over every plugin. Patch 4: Common code for starting nbdkit in a test and waiting for the PID file to appear. This is the largest and most complex of the patches but is
2018 Jul 31
7
[PATCH nbdkit 0/4] Add truncate and map filters.
This patch series proposes two new filters. * truncate: This can truncate, extend, round up or round down the size of a plugin/device. A typical usage is to fix the qemu problem that it can only handle devices which are a multiple of 512-bytes: nbdkit --filter=truncate random size=500 round-up=512 This will serve a virtual device with size 512 bytes. Reading from the last 12 bytes will
2018 Sep 17
0
[PATCH nbdkit v3 2/3] common: Introduce round up, down; and divide round up functions.
...e = ROUND_DOWN (size, round_down); ret = size; pthread_mutex_unlock (&lock); diff --git a/tests/Makefile.am b/tests/Makefile.am index 23316ea..d04a7d6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -89,6 +89,7 @@ EXTRA_DIST = \ test-tls-psk.sh \ test-truncate1.sh \ test-truncate2.sh \ + test-truncate3.sh \ test-vddk.sh \ test-version.sh \ test-version-filter.sh \ @@ -703,6 +704,7 @@ test_partition_LDADD = libtest.la $(LIBGUESTFS_LIBS) # truncate filter tests. TESTS += \ test-truncate1.sh \ - test-truncate2.sh + test-truncate2.sh \ + test-truncate3.sh endif HAVE...
2019 Apr 27
0
[nbdkit PATCH 3/4] truncate: Test for safe multi-connect size handling
...++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100755 tests/test-truncate4.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index 4b7aa22..4148793 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -122,6 +122,7 @@ EXTRA_DIST = \ test-truncate1.sh \ test-truncate2.sh \ test-truncate3.sh \ + test-truncate4.sh \ test-truncate-extents.sh \ test-vddk.sh \ test-vddk-real.sh \ @@ -937,6 +938,7 @@ TESTS += \ test-truncate1.sh \ test-truncate2.sh \ test-truncate3.sh \ + test-truncate4.sh \ test-truncate-extents.sh # xz filter test. diff --git a/tes...
2019 Apr 29
1
Re: [nbdkit PATCH 3/4] truncate: Test for safe multi-connect size handling
...87 insertions(+) > create mode 100755 tests/test-truncate4.sh > > diff --git a/tests/Makefile.am b/tests/Makefile.am > index 4b7aa22..4148793 100644 > --- a/tests/Makefile.am > +++ b/tests/Makefile.am > @@ -122,6 +122,7 @@ EXTRA_DIST = \ > test-truncate1.sh \ > test-truncate2.sh \ > test-truncate3.sh \ > + test-truncate4.sh \ > test-truncate-extents.sh \ > test-vddk.sh \ > test-vddk-real.sh \ > @@ -937,6 +938,7 @@ TESTS += \ > test-truncate1.sh \ > test-truncate2.sh \ > test-truncate3.sh \ > + test-truncate4.sh \ > test-t...
2018 Aug 12
13
[PATCH nbdkit 00/10] FreeBSD support.
With these patches, a majority of tests pass. The notable things which are still broken: - Because FreeBSD links /home -> /usr/home, $(pwd) gives a different result from realpath(2). Therefore some tests which implicitly rely on (eg) a plugin which calls nbdkit_realpath internally and then checking that path against $(pwd) fail. - Shebangs (#!) don't seem to work the same way
2019 Apr 27
8
[nbdkit PATCH 0/4] Fix truncate handling of real_size
While working on adding assertions to pthread_mutex_lock calls, I noticed that the truncate filter's use of mutex didn't really protect us, and isn't really necessary. Cleaning that up also spotted a couple of other potential cleanups. Eric Blake (4): filters: Drop useless .open callbacks truncate: Fix corruption when plugin changes per-connection size truncate: Test for safe
2018 Sep 17
7
[PATCH nbdkit v3 0/3] Add partitioning plugin.
The partitioning plugin patch is the same (except for rebasing). However I have changed the first two patches based on feedback received. In particular this fixes a very serious bug found by Eric Blake in the current truncate filter. Rich.
2020 Apr 08
0
[PATCH nbdkit v3] tmpdisk: Pass any parameters as shell variables to the command.
...gt;. =head1 AUTHORS diff --git a/tests/Makefile.am b/tests/Makefile.am index ecfc3612..2aa95890 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -206,6 +206,7 @@ EXTRA_DIST = \ test-tar.sh \ test-tls.sh \ test-tls-psk.sh \ + test-tmpdisk-command.sh \ test-truncate1.sh \ test-truncate2.sh \ test-truncate3.sh \ @@ -800,6 +801,7 @@ endif HAVE_PERL # tmpdisk plugin test. LIBGUESTFS_TESTS += test-tmpdisk +TESTS += test-tmpdisk-command.sh test_tmpdisk_SOURCES = \ test-tmpdisk.c \ diff --git a/plugins/tmpdisk/tmpdisk.c b/plugins/tmpdisk/tmpdisk.c index 5e8df151..6d8efc08 100...
2020 Apr 08
2
[PATCH nbdkit v3] tmpdisk: Generalize the tmpdisk plugin.
v2 was here: https://www.redhat.com/archives/libguestfs/2020-April/msg00075.html In v3: - Add [VAR=VALUE ...] to manual. - Various minor improvements to the manual. - Work (at least, in theory - not tested) with block devices or symlinks. I didn't document this because it's hard to ensure these files or block devices would be cleaned up, so here be dragons. - Remove O_NOCTTY. -
2018 Nov 21
3
[PATCH nbdkit v2 0/3] Rewrite xz plugin as a filter.
v2: - Fixes a number of bugs in corner cases. - Uses a 1M block size to fetch from the underlying plugin. This improves performance considerably. I also tested this much more thoroughly and can't find any more bugs. Rich.