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
105db599
Commit
105db599
authored
Jan 06, 2017
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm raid: cleanup awkward branching in raid_message() option processing
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
977f1a0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/md/dm-raid.c
drivers/md/dm-raid.c
+4
-3
No files found.
drivers/md/dm-raid.c
View file @
105db599
...
...
@@ -3464,10 +3464,11 @@ static int raid_message(struct dm_target *ti, unsigned int argc, char **argv)
else
{
if
(
!
strcasecmp
(
argv
[
0
],
"check"
))
set_bit
(
MD_RECOVERY_CHECK
,
&
mddev
->
recovery
);
else
if
(
!!
strcasecmp
(
argv
[
0
],
"repair"
))
else
if
(
!
strcasecmp
(
argv
[
0
],
"repair"
))
{
set_bit
(
MD_RECOVERY_REQUESTED
,
&
mddev
->
recovery
);
set_bit
(
MD_RECOVERY_SYNC
,
&
mddev
->
recovery
);
}
else
return
-
EINVAL
;
set_bit
(
MD_RECOVERY_REQUESTED
,
&
mddev
->
recovery
);
set_bit
(
MD_RECOVERY_SYNC
,
&
mddev
->
recovery
);
}
if
(
mddev
->
ro
==
2
)
{
/* A write to sync_action is enough to justify
...
...
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