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

NAME

6       nbdkit-partition-filter - nbdkit partition filter
7

SYNOPSIS

9        nbdkit --filter=partition plugin partition=PART [plugin-args...]
10

DESCRIPTION

12       "nbdkit-partition-filter" is a filter that limits requests to a single
13       partition within a disk image that is served by another plugin.
14
15       Partition numbers are specified by the required "partition" parameter,
16       and count from 1.
17
18       This works like the "qemu-nbd -P" option.
19
20       The opposite of this filter is nbdkit-partitioning-plugin(1) which adds
21       a virtual partition table to a file or files.
22

PARAMETERS

24       partition=PART
25           The partition number to serve, counting from 1.
26
27           This parameter is required.
28

EXAMPLE

30       disk.img is a partitioned disk image (eg. a virtual machine disk
31       image).  To serve the first partition only use:
32
33        nbdkit --filter=partition file disk.img partition=1
34

SEE ALSO

36       nbdkit(1), nbdkit-file-plugin(1), nbdkit-filter(3),
37       nbdkit-offset-filter(1), nbdkit-partitioning-plugin(1),
38       nbdkit-truncate-filter(1), parted(8).
39

AUTHORS

41       Eric Blake
42
43       Richard W.M. Jones
44
46       Copyright (C) 2018 Red Hat Inc.
47

LICENSE

49       Redistribution and use in source and binary forms, with or without
50       modification, are permitted provided that the following conditions are
51       met:
52
53       ·   Redistributions of source code must retain the above copyright
54           notice, this list of conditions and the following disclaimer.
55
56       ·   Redistributions in binary form must reproduce the above copyright
57           notice, this list of conditions and the following disclaimer in the
58           documentation and/or other materials provided with the
59           distribution.
60
61       ·   Neither the name of Red Hat nor the names of its contributors may
62           be used to endorse or promote products derived from this software
63           without specific prior written permission.
64
65       THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY
66       EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
67       IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
68       PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE
69       LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
70       CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
71       SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
72       BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
73       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
74       OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
75       ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
76
77
78
79nbdkit-1.12.3                     2019-05-21        nbdkit-partition-filter(1)
Impressum