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
024548b8
Commit
024548b8
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: nbd
parent
7af15440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/block/nbd.c
drivers/block/nbd.c
+1
-7
No files found.
drivers/block/nbd.c
View file @
024548b8
...
...
@@ -568,7 +568,6 @@ static int __init nbd_init(void)
devfs_mk_dir
(
"nbd"
);
for
(
i
=
0
;
i
<
MAX_NBD
;
i
++
)
{
struct
gendisk
*
disk
=
nbd_dev
[
i
].
disk
;
char
name
[
16
];
nbd_dev
[
i
].
refcnt
=
0
;
nbd_dev
[
i
].
file
=
NULL
;
nbd_dev
[
i
].
magic
=
LO_MAGIC
;
...
...
@@ -585,13 +584,9 @@ static int __init nbd_init(void)
disk
->
private_data
=
&
nbd_dev
[
i
];
disk
->
queue
=
&
nbd_queue
;
sprintf
(
disk
->
disk_name
,
"nbd%d"
,
i
);
sprintf
(
disk
->
devfs_name
,
"nbd/%d"
,
i
);
set_capacity
(
disk
,
0x3ffffe
);
add_disk
(
disk
);
sprintf
(
name
,
"nbd/%d"
,
i
);
devfs_register
(
NULL
,
name
,
DEVFS_FL_DEFAULT
,
disk
->
major
,
disk
->
first_minor
,
S_IFBLK
|
S_IRUSR
|
S_IWUSR
,
disk
->
fops
,
NULL
);
}
return
0
;
...
...
@@ -607,7 +602,6 @@ static void __exit nbd_cleanup(void)
for
(
i
=
0
;
i
<
MAX_NBD
;
i
++
)
{
del_gendisk
(
nbd_dev
[
i
].
disk
);
put_disk
(
nbd_dev
[
i
].
disk
);
devfs_remove
(
"nbd/%d"
,
i
);
}
devfs_remove
(
"nbd"
);
blk_cleanup_queue
(
&
nbd_queue
);
...
...
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