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
a648f51e
Commit
a648f51e
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: kill devfs_register_partition
parent
3ce85683
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
fs/devfs/util.c
fs/devfs/util.c
+0
-11
fs/partitions/check.c
fs/partitions/check.c
+5
-1
No files found.
fs/devfs/util.c
View file @
a648f51e
...
...
@@ -254,14 +254,3 @@ void devfs_dealloc_devnum(umode_t mode, dev_t devnum)
}
up
(
&
device_list_mutex
);
}
void
devfs_register_partition
(
struct
gendisk
*
dev
,
int
part
)
{
char
devname
[
64
];
sprintf
(
devname
,
"%s/part%d"
,
dev
->
devfs_name
,
part
);
devfs_register
(
NULL
,
devname
,
0
,
dev
->
major
,
dev
->
first_minor
+
part
,
S_IFBLK
|
S_IRUSR
|
S_IWUSR
,
dev
->
fops
,
NULL
);
}
fs/partitions/check.c
View file @
a648f51e
...
...
@@ -251,7 +251,11 @@ void add_partition(struct gendisk *disk, int part, sector_t start, sector_t len)
p
->
start_sect
=
start
;
p
->
nr_sects
=
len
;
devfs_register_partition
(
disk
,
part
);
devfs_mk_bdev
(
MKDEV
(
disk
->
major
,
disk
->
first_minor
+
part
),
S_IFBLK
|
S_IRUSR
|
S_IWUSR
,
"%s/part%d"
,
disk
->
devfs_name
,
part
);
snprintf
(
p
->
kobj
.
name
,
KOBJ_NAME_LEN
,
"%s%d"
,
disk
->
kobj
.
name
,
part
);
p
->
kobj
.
parent
=
&
disk
->
kobj
;
p
->
kobj
.
ktype
=
&
ktype_part
;
...
...
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