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
Kirill Smelkov
linux
Commits
2dc40f80
Commit
2dc40f80
authored
May 03, 2010
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md/linear: standardise all printk messages
md/linear:mdname: Signed-off-by:
NeilBrown
<
neilb@suse.de
>
parent
b5a20961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
drivers/md/linear.c
drivers/md/linear.c
+12
-8
No files found.
drivers/md/linear.c
View file @
2dc40f80
...
...
@@ -158,7 +158,8 @@ static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks)
sector_t
sectors
;
if
(
j
<
0
||
j
>=
raid_disks
||
disk
->
rdev
)
{
printk
(
"linear: disk numbering problem. Aborting!
\n
"
);
printk
(
KERN_ERR
"md/linear:%s: disk numbering problem. Aborting!
\n
"
,
mdname
(
mddev
));
goto
out
;
}
...
...
@@ -186,7 +187,8 @@ static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks)
}
if
(
cnt
!=
raid_disks
)
{
printk
(
"linear: not enough drives present. Aborting!
\n
"
);
printk
(
KERN_ERR
"md/linear:%s: not enough drives present. Aborting!
\n
"
,
mdname
(
mddev
));
goto
out
;
}
...
...
@@ -305,12 +307,14 @@ static int linear_make_request (mddev_t *mddev, struct bio *bio)
||
(
bio
->
bi_sector
<
start_sector
)))
{
char
b
[
BDEVNAME_SIZE
];
printk
(
"linear_make_request: Sector %llu out of bounds on "
"dev %s: %llu sectors, offset %llu
\n
"
,
(
unsigned
long
long
)
bio
->
bi_sector
,
bdevname
(
tmp_dev
->
rdev
->
bdev
,
b
),
(
unsigned
long
long
)
tmp_dev
->
rdev
->
sectors
,
(
unsigned
long
long
)
start_sector
);
printk
(
KERN_ERR
"md/linear:%s: make_request: Sector %llu out of bounds on "
"dev %s: %llu sectors, offset %llu
\n
"
,
mdname
(
mddev
),
(
unsigned
long
long
)
bio
->
bi_sector
,
bdevname
(
tmp_dev
->
rdev
->
bdev
,
b
),
(
unsigned
long
long
)
tmp_dev
->
rdev
->
sectors
,
(
unsigned
long
long
)
start_sector
);
rcu_read_unlock
();
bio_io_error
(
bio
);
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