[PATCH 1/1] NBD: raise max number of nbd devices to 1024

From: Paul Clements
Date: Tue Jan 29 2008 - 16:31:21 EST


The limit was 128. This changes it to 1024.

--
Paul

Signed-Off-By: Paul Clements <paul.clements@xxxxxxxxxxxx>

--- ./include/linux/nbd.h.TIMEOUT 2007-08-22 13:18:12.000000000 -0400
+++ ./include/linux/nbd.h 2008-01-29 14:35:17.000000000 -0500
@@ -35,7 +35,7 @@ enum {
};

#define nbd_cmd(req) ((req)->cmd[0])
-#define MAX_NBD 128
+#define MAX_NBD 1024

/* userspace doesn't need the nbd_device structure */
#ifdef __KERNEL__