Update Red Hat Copyright Notices
[nbdkit.git] / filters / partition / nbdkit-partition-filter.pod
blob8974c34d6627c248479a0420c932a30f8acacebc
1 =head1 NAME
3 nbdkit-partition-filter - nbdkit partition filter
5 =head1 SYNOPSIS
7  nbdkit --filter=partition plugin partition=PART [plugin-args...]
9 =head1 DESCRIPTION
11 C<nbdkit-partition-filter> is a filter that limits requests to a
12 single partition within a disk image that is served by another plugin.
14 Partition numbers are specified by the required C<partition>
15 parameter, and count from 1.
17 This works like the C<qemu-nbd -P> option.
19 The opposite of this filter is L<nbdkit-partitioning-plugin(1)> which
20 adds a virtual partition table to a file or files.
22 =head1 PARAMETERS
24 =over 4
26 =item B<partition=>PART
28 The partition number to serve, counting from 1.
30 This parameter is required.
32 =back
34 =head1 EXAMPLE
36 F<disk.img> is a partitioned disk image (eg. a virtual machine disk
37 image).  To serve the first partition only use:
39  nbdkit --filter=partition file disk.img partition=1
41 =head1 FILES
43 =over 4
45 =item F<$filterdir/nbdkit-partition-filter.so>
47 The filter.
49 Use C<nbdkit --dump-config> to find the location of C<$filterdir>.
51 =back
53 =head1 VERSION
55 C<nbdkit-partition-filter> first appeared in nbdkit 1.2.
57 =head1 SEE ALSO
59 L<nbdkit(1)>,
60 L<nbdkit-file-plugin(1)>,
61 L<nbdkit-filter(3)>,
62 L<nbdkit-offset-filter(1)>,
63 L<nbdkit-partitioning-plugin(1)>,
64 L<nbdkit-protect-filter(1)>,
65 L<nbdkit-truncate-filter(1)>,
66 L<parted(8)>.
68 =head1 AUTHORS
70 Eric Blake
72 Richard W.M. Jones
74 =head1 COPYRIGHT
76 Copyright Red Hat