Bug#225594: [Paul.Clements@SteelEye.com: Re: 2.6 nbd.h]

2003-12-30 Thread Wouter Verhelst
Package: linux-kernel-headers
Version: 2.5.999-test7-bk-10
Severity: normal

Hi,

There's an error in the 2.6 linux/nbd.h; to make userspace
compilations work, the following patch needs to be applied:

---cut here---
--- linux-2.6.0-test11/include/linux/nbd.h.orig Mon Dec 15 09:48:53 2003
+++ linux-2.6.0-test11/include/linux/nbd.h  Mon Dec 15 09:54:02 2003
@@ -35,6 +35,9 @@
 /* Define PARANOIA to include extra sanity checking code in here  driver */
 #define PARANOIA
 
+/* userspace doesn't need the nbd_device structure */
+#ifdef __KERNEL__
+
 struct nbd_device {
int flags;
int harderror;  /* Code of hard error   */
@@ -52,6 +55,8 @@
int blksize;
u64 bytesize;
 };
+
+#endif
 
 /* This now IS in some kind of include file... */
---cut here---

Paul Clements, the kernel-side NBD maintainer, sent this in for
inclusion in 2.6.0, but apparantly it didn't make it in time.

It would be nice if you could apply this patch to linux-kernel-headers
already; but note that it isn't really urgent since my nbd package now
includes this header in the source package (which actually is the right
thing to do, as that will allow it at some point to be compiled on
non-linux ports, too).
 
-- 
Wouter Verhelst
Debian GNU/Linux -- http://www.debian.org
Nederlandstalige Linux-documentatie -- http://nl.linux.org
Stop breathing down my neck. My breathing is merely a simulation.
So is my neck, stop it anyway!
  -- Voyager's EMH versus the Prometheus' EMH, stardate 51462.


signature.asc
Description: Digital signature


Bug#225594: [Paul.Clements@SteelEye.com: Re: 2.6 nbd.h]

2003-12-30 Thread Wouter Verhelst
Package: linux-kernel-headers
Version: 2.5.999-test7-bk-10
Severity: normal

Hi,

There's an error in the 2.6 linux/nbd.h; to make userspace
compilations work, the following patch needs to be applied:

---cut here---
--- linux-2.6.0-test11/include/linux/nbd.h.orig Mon Dec 15 09:48:53 2003
+++ linux-2.6.0-test11/include/linux/nbd.h  Mon Dec 15 09:54:02 2003
@@ -35,6 +35,9 @@
 /* Define PARANOIA to include extra sanity checking code in here  driver */
 #define PARANOIA
 
+/* userspace doesn't need the nbd_device structure */
+#ifdef __KERNEL__
+
 struct nbd_device {
int flags;
int harderror;  /* Code of hard error   */
@@ -52,6 +55,8 @@
int blksize;
u64 bytesize;
 };
+
+#endif
 
 /* This now IS in some kind of include file... */
---cut here---

Paul Clements, the kernel-side NBD maintainer, sent this in for
inclusion in 2.6.0, but apparantly it didn't make it in time.

It would be nice if you could apply this patch to linux-kernel-headers
already; but note that it isn't really urgent since my nbd package now
includes this header in the source package (which actually is the right
thing to do, as that will allow it at some point to be compiled on
non-linux ports, too).
 
-- 
Wouter Verhelst
Debian GNU/Linux -- http://www.debian.org
Nederlandstalige Linux-documentatie -- http://nl.linux.org
Stop breathing down my neck. My breathing is merely a simulation.
So is my neck, stop it anyway!
  -- Voyager's EMH versus the Prometheus' EMH, stardate 51462.


signature.asc
Description: Digital signature