… | |
… | |
2 | |
2 | |
3 | Linux::NBD - interface to the linux network block device. |
3 | Linux::NBD - interface to the linux network block device. |
4 | |
4 | |
5 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
6 | |
6 | |
|
|
7 | # Kernel 2.4+ is required |
7 | use Linux::NBD; |
8 | use Linux::NBD; |
8 | |
9 | |
9 | =head1 DESCRIPTION |
10 | =head1 DESCRIPTION |
10 | |
11 | |
11 | See L<Linux::NBD::Client> and L<Linux::NBD::Server>, or no, better idea: |
12 | See L<Linux::NBD::Client> and L<Linux::NBD::Server>, or no, better idea: |
12 | use the source :) |
13 | use the source :) |
|
|
14 | |
|
|
15 | NOTICE: Only the Linux 2.4 and newer nbd device is supported by this |
|
|
16 | module. For older kernels you are on your own. |
13 | |
17 | |
14 | =head1 FUNCTIONS |
18 | =head1 FUNCTIONS |
15 | |
19 | |
16 | =over 4 |
20 | =over 4 |
17 | |
21 | |
18 | =cut |
22 | =cut |
19 | |
23 | |
20 | package Linux::NBD; |
24 | package Linux::NBD; |
21 | |
25 | |
22 | BEGIN { |
26 | BEGIN { |
23 | $VERSION = 0.1; |
27 | $VERSION = 0.2; |
24 | |
28 | |
25 | require XSLoader; |
29 | require XSLoader; |
26 | XSLoader::load Linux::NBD, $VERSION; |
30 | XSLoader::load Linux::NBD, $VERSION; |
27 | } |
31 | } |
28 | |
32 | |