[pve-devel] [PATCH 19/20] modules load : add nbd

Alexandre Derumier aderumier at odiso.com
Thu Jul 27 17:06:52 CEST 2017


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 Makefile                 | 2 ++
 debian/rules             | 2 ++
 modules-load.conf        | 1 +
 nbd-modules-load.conf    | 1 +
 nbd-modules-options.conf | 1 +
 5 files changed, 7 insertions(+)
 create mode 100644 nbd-modules-load.conf
 create mode 100644 nbd-modules-options.conf

diff --git a/Makefile b/Makefile
index 301a835..945c6b8 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,8 @@ install: ${PKGSOURCES}
 	install -s -m 0755 vmtar ${DESTDIR}${LIBDIR}
 	install -s -m 0755 sparsecp ${DESTDIR}${LIBDIR}
 	install -D -m 0644 modules-load.conf ${DESTDIR}/etc/modules-load.d/qemu-server.conf
+	install -D -m 0644 nbd-modules-load.conf ${DESTDIR}/etc/modules-load.d/nbd.conf
+	install -D -m 0644 nbd-modules-options.conf ${DESTDIR}/etc/modprobe.d/nbd.conf
 	install -m 0755 qmextract ${DESTDIR}${LIBDIR}
 	install -m 0644 qm.1 ${DESTDIR}/${MAN1DIR}
 	gzip -9 -n ${DESTDIR}/${MAN1DIR}/qm.1
diff --git a/debian/rules b/debian/rules
index 955dd78..7450d63 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,3 +11,5 @@
 
 %:
 	dh $@
+
+
diff --git a/modules-load.conf b/modules-load.conf
index aee7d42..d0fa296 100644
--- a/modules-load.conf
+++ b/modules-load.conf
@@ -1 +1,2 @@
 vhost_net
+nbd
diff --git a/nbd-modules-load.conf b/nbd-modules-load.conf
new file mode 100644
index 0000000..cb3ca60
--- /dev/null
+++ b/nbd-modules-load.conf
@@ -0,0 +1 @@
+nbd
diff --git a/nbd-modules-options.conf b/nbd-modules-options.conf
new file mode 100644
index 0000000..08ea250
--- /dev/null
+++ b/nbd-modules-options.conf
@@ -0,0 +1 @@
+options nbd nbds_max=256
-- 
2.11.0




More information about the pve-devel mailing list