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
772393f4
Commit
772393f4
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: device-mapper
parent
9d46f485
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
drivers/md/dm-ioctl.c
drivers/md/dm-ioctl.c
+3
-8
No files found.
drivers/md/dm-ioctl.c
View file @
772393f4
...
...
@@ -14,6 +14,7 @@
#include <linux/wait.h>
#include <linux/blk.h>
#include <linux/slab.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/uaccess.h>
...
...
@@ -174,16 +175,10 @@ static void free_cell(struct hash_cell *hc)
static
int
register_with_devfs
(
struct
hash_cell
*
hc
)
{
struct
gendisk
*
disk
=
dm_disk
(
hc
->
md
);
char
*
name
=
kmalloc
(
DM_NAME_LEN
+
strlen
(
DM_DIR
)
+
1
,
GFP_KERNEL
);
if
(
!
name
)
{
return
-
ENOMEM
;
}
sprintf
(
name
,
DM_DIR
"/%s"
,
hc
->
name
);
devfs_register
(
NULL
,
name
,
0
,
disk
->
major
,
disk
->
first_minor
,
devfs_mk_bdev
(
MKDEV
(
disk
->
major
,
disk
->
first_minor
),
S_IFBLK
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
,
&
dm_blk_dops
,
NULL
);
kfree
(
name
);
DM_DIR
"/%s"
,
hc
->
name
);
return
0
;
}
...
...
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