2 # nbd client library in userspace
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 # Stream from a sparse NBD source. The NBD source uses a bandwidth
20 # limiter so this will be very slow unless nbdcopy correctly handles
23 . ..
/tests
/functions.sh
28 requires nbdkit
--version
29 requires nbdkit
--exit-with-parent --version
30 requires nbdkit data
--version
31 requires nbdkit
--version --filter=rate null
33 # Copy rate is 512Kbps. nbdcopy should only need to copy two 32Kbyte
34 # extents (2 * 32 * 8 = 512) so this should not take longer than a
35 # second. But if nbdcopy is ignoring extents it will take much, much
38 [ nbdkit
--exit-with-parent \
39 data data
=' 1 @1073741823 1 ' \
40 --filter=rate rate
=512K \