Commit 02a78c6f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] more raw driver minor numbers

From: Badari Pulavarty <pbadari@us.ibm.com>

Since we have larger dev_t now, here is the patch to support large
number of RAW devices.  The userlevel command "raw" also needs changes to
use this support - which in turn needs new glibc.
parent ba87c108
......@@ -954,6 +954,15 @@ config RAW_DRIVER
Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
See the raw(8) manpage for more details.
config MAX_RAW_DEVS
int "Maximum number of RAW devices to support (1-8192)"
depends on RAW_DRIVER
default "256"
help
The maximum number of RAW devices that are supported.
Default is 256. Increase this number in case you need lots of
raw devices.
config HANGCHECK_TIMER
tristate "Hangcheck timer"
depends on X86_64 || X86
......
......@@ -20,8 +20,6 @@
#include <asm/uaccess.h>
#define MAX_RAW_MINORS 256
struct raw_device_data {
struct block_device *binding;
int inuse;
......
......@@ -13,4 +13,6 @@ struct raw_config_request
__u64 block_minor;
};
#define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS
#endif /* __LINUX_RAW_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment