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
b2520184
Commit
b2520184
authored
Aug 12, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Aug 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] cciss partitioning stuff, per-disk gendisks
parent
ac654455
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
119 deletions
+78
-119
drivers/block/cciss.c
drivers/block/cciss.c
+75
-113
drivers/block/cciss.h
drivers/block/cciss.h
+2
-1
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+1
-0
fs/partitions/check.c
fs/partitions/check.c
+0
-5
No files found.
drivers/block/cciss.c
View file @
b2520184
This diff is collapsed.
Click to expand it.
drivers/block/cciss.h
View file @
b2520184
...
...
@@ -81,7 +81,8 @@ struct ctlr_info
int
nr_frees
;
// Disk structures we need to pass back
struct
gendisk
gendisk
;
struct
gendisk
gendisk
[
NWD
];
char
names
[
12
*
NWD
];
// indexed by minor numbers
struct
hd_struct
hd
[
256
];
int
sizes
[
256
];
...
...
drivers/block/cpqarray.c
View file @
b2520184
...
...
@@ -1483,6 +1483,7 @@ static int revalidate_allvol(kdev_t dev)
if
(
!
drv
->
nr_blks
)
continue
;
(
BLK_DEFAULT_QUEUE
(
MAJOR_NR
+
ctlr
))
->
hardsect_size
=
drv
->
blk_size
;
disk
->
major_name
=
ida_names
+
(
ctlr
*
NWD
+
i
)
*
10
;
add_gendisk
(
disk
);
register_disk
(
disk
,
mk_kdev
(
disk
->
major
,
disk
->
first_minor
),
...
...
fs/partitions/check.c
View file @
b2520184
...
...
@@ -137,11 +137,6 @@ char *disk_name (struct gendisk *hd, int minor, char *buf)
sprintf
(
s
,
"%s%d"
,
"md"
,
unit
);
maj
=
s
;
break
;
case
COMPAQ_CISS_MAJOR
...
COMPAQ_CISS_MAJOR
+
7
:
sprintf
(
s
,
"cciss/c%dd%d"
,
hd
->
major
-
COMPAQ_CISS_MAJOR
,
unit
);
maj
=
s
;
break
;
case
ATARAID_MAJOR
:
sprintf
(
s
,
"ataraid/d%d"
,
unit
);
maj
=
s
;
...
...
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