Skip to content

Commit e498c3b

Browse files
committed
1 parent 8b6e4cc commit e498c3b

7 files changed

+50
-16
lines changed

COPYING.LIB

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
This is the general license covering libnbd. The example code (in the
2+
examples/ subdirectory) is distributed under a different license, see
3+
examples/LICENSE-FOR-EXAMPLES.
4+
5+
----------------------------------------------------------------------
6+
17
GNU LESSER GENERAL PUBLIC LICENSE
28
Version 2.1, February 1999
39

examples/LICENSE-FOR-EXAMPLES

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
The files in the examples/ directory are licensed under this very
2+
permissive BSD license. This means that you can copy, use, adapt and
3+
modify them without any significant restrictions. You can also
4+
combine them with proprietary code or include them in code that is
5+
distributed under other open source licenses.
6+
7+
----------------------------------------------------------------------
8+
9+
libnbd examples
10+
Copyright (C) 2013-2019 Red Hat Inc.
11+
12+
Redistribution and use in source and binary forms, with or without
13+
modification, are permitted provided that the following conditions are
14+
met:
15+
16+
* Redistributions of source code must retain the above copyright
17+
notice, this list of conditions and the following disclaimer.
18+
19+
* Redistributions in binary form must reproduce the above copyright
20+
notice, this list of conditions and the following disclaimer in the
21+
documentation and/or other materials provided with the distribution.
22+
23+
* Neither the name of Red Hat nor the names of its contributors may be
24+
used to endorse or promote products derived from this software without
25+
specific prior written permission.
26+
27+
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
28+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
30+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
31+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
34+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
35+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
37+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38+
SUCH DAMAGE.

examples/Makefile.am

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
include $(top_srcdir)/subdir-rules.mk
1919

20+
EXTRA_DIST = LICENSE-FOR-EXAMPLES
21+
2022
noinst_PROGRAMS = \
2123
batched-read-write \
2224
simple-fetch-first-sector \

examples/batched-read-write.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/* This example can be copied, used and modified for any purpose
2-
* without restrictions.
3-
*
4-
* Example usage with nbdkit:
1+
/* Example usage with nbdkit:
52
*
63
* nbdkit -U - --filter=noparallel memory 2M \
74
* --run './batched-read-write $unixsocket'

examples/simple-fetch-first-sector.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/* This example can be copied, used and modified for any purpose
2-
* without restrictions.
3-
*
4-
* Example usage with nbdkit:
1+
/* Example usage with nbdkit:
52
*
63
* nbdkit -U - pattern 1M --run './simple-fetch-first-sector $unixsocket sector'
74
*

examples/simple-reads-and-writes.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/* This example can be copied, used and modified for any purpose
2-
* without restrictions.
3-
*
4-
* Example usage with nbdkit:
1+
/* Example usage with nbdkit:
52
*
63
* nbdkit -U - memory 1M --run './simple-reads-and-writes $unixsocket'
74
*

examples/threaded-reads-and-writes.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/* This example can be copied, used and modified for any purpose
2-
* without restrictions.
3-
*
4-
* Example usage with nbdkit:
1+
/* Example usage with nbdkit:
52
*
63
* nbdkit -U - memory 1M --run './threaded-reads-and-writes $unixsocket'
74
*

0 commit comments

Comments
 (0)