1nbdkit-delay-filter(1)              NBDKIT              nbdkit-delay-filter(1)
2
3
4

NAME

6       nbdkit-delay-filter - nbdkit delay filter
7

SYNOPSIS

9        nbdkit --filter=delay plugin rdelay=SECS wdelay=SECS [plugin-args...]
10
11        nbdkit --filter=delay plugin rdelay=NNms wdelay=NNms [plugin-args...]
12
13        nbdkit --filter=delay plugin [plugin-args ...]
14                 delay-read=(SECS|NNms) delay-write=(SECS|NNms)
15                 delay-zero=(SECS|NNms) delay-trim=(SECS|NNms)
16                 delay-extents=(SECS|NNms)
17

DESCRIPTION

19       "nbdkit-delay-filter" is a filter that delays read and write requests
20       by some seconds or milliseconds.  This is used to simulate a slow or
21       remote server, or to test certain kinds of race conditions in Linux.
22       To limit server bandwidth use nbdkit-rate-filter(1) instead.
23

EXAMPLES

25       Delays reads and writes by 100ms:
26
27        nbdkit --filter=delay file disk.img rdelay=100ms wdelay=100ms
28
29       Delay only zero operations by 1 second, nothing else is affected:
30
31        nbdkit --filter=delay file disk.img delay-zero=1
32

PARAMETERS

34       rdelay=SECS
35       rdelay=NNms
36       delay-read=SECS
37       delay-read=NNms
38           Delay read operations by "SECS" seconds or "NN" milliseconds.
39
40           The two forms "rdelay" and "delay-read" work identically.
41
42       delay-write=SECS
43       delay-write=NNms
44           Delay write operations by "SECS" seconds or "NN" milliseconds.
45
46       delay-zero=SECS
47       delay-zero=NNms
48           Delay zero operations by "SECS" seconds or "NN" milliseconds.
49
50       delay-trim=SECS
51       delay-trim=NNms
52           Delay trim/discard operations by "SECS" seconds or "NN"
53           milliseconds.
54
55       delay-extents=SECS
56       delay-extents=NNms
57           Delay block status (extents) operations by "SECS" seconds or "NN"
58           milliseconds.
59
60       wdelay=SECS
61       wdelay=NNms
62           Delay write, zero and trim operations by "SECS" seconds or "NN"
63           milliseconds.
64

SEE ALSO

66       nbdkit(1), nbdkit-filter(3), nbdkit-rate-filter(1).
67

AUTHORS

69       Richard W.M. Jones
70
72       Copyright (C) 2018 Red Hat Inc.
73

LICENSE

75       Redistribution and use in source and binary forms, with or without
76       modification, are permitted provided that the following conditions are
77       met:
78
79       ·   Redistributions of source code must retain the above copyright
80           notice, this list of conditions and the following disclaimer.
81
82       ·   Redistributions in binary form must reproduce the above copyright
83           notice, this list of conditions and the following disclaimer in the
84           documentation and/or other materials provided with the
85           distribution.
86
87       ·   Neither the name of Red Hat nor the names of its contributors may
88           be used to endorse or promote products derived from this software
89           without specific prior written permission.
90
91       THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
92       EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
93       IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
94       PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
95       LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
96       CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
97       SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
98       BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
99       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
100       OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
101       ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
102
103
104
105nbdkit-1.12.3                     2019-05-21            nbdkit-delay-filter(1)
Impressum