Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
287ba3a3
Commit
287ba3a3
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Allow use of 256 loop devices
Because 256 is rounder than 255 I guess 8-)
parent
bfc06d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
drivers/block/loop.c
drivers/block/loop.c
+6
-3
No files found.
drivers/block/loop.c
View file @
287ba3a3
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
* Al Viro too.
* Al Viro too.
* Jens Axboe <axboe@suse.de>, Nov 2000
* Jens Axboe <axboe@suse.de>, Nov 2000
*
*
* Support up to 256 loop devices
* Heinz Mauelshagen <mge@sistina.com>, Feb 2002
*
* Still To Fix:
* Still To Fix:
* - Advisory locking is ignored here.
* - Advisory locking is ignored here.
* - Should use an own CAP_* category instead of CAP_SYS_ADMIN
* - Should use an own CAP_* category instead of CAP_SYS_ADMIN
...
@@ -927,7 +930,7 @@ static struct block_device_operations lo_fops = {
...
@@ -927,7 +930,7 @@ static struct block_device_operations lo_fops = {
* And now the modules code and kernel interface.
* And now the modules code and kernel interface.
*/
*/
MODULE_PARM
(
max_loop
,
"i"
);
MODULE_PARM
(
max_loop
,
"i"
);
MODULE_PARM_DESC
(
max_loop
,
"Maximum number of loop devices (1-25
5
)"
);
MODULE_PARM_DESC
(
max_loop
,
"Maximum number of loop devices (1-25
6
)"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
int
loop_register_transfer
(
struct
loop_func_table
*
funcs
)
int
loop_register_transfer
(
struct
loop_func_table
*
funcs
)
...
@@ -963,9 +966,9 @@ int __init loop_init(void)
...
@@ -963,9 +966,9 @@ int __init loop_init(void)
{
{
int
i
;
int
i
;
if
((
max_loop
<
1
)
||
(
max_loop
>
25
5
))
{
if
((
max_loop
<
1
)
||
(
max_loop
>
25
6
))
{
printk
(
KERN_WARNING
"loop: invalid max_loop (must be between"
printk
(
KERN_WARNING
"loop: invalid max_loop (must be between"
" 1 and 25
5
), using default (8)
\n
"
);
" 1 and 25
6
), using default (8)
\n
"
);
max_loop
=
8
;
max_loop
=
8
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment