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
e9d4758f
Commit
e9d4758f
authored
Mar 31, 2009
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md: add takeover support for raid4 -> raid5 conversion.
Signed-off-by:
NeilBrown
<
neilb@suse.de
>
parent
b3546035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/md/raid5.c
drivers/md/raid5.c
+5
-0
No files found.
drivers/md/raid5.c
View file @
e9d4758f
...
...
@@ -4967,6 +4967,11 @@ static void *raid5_takeover(mddev_t *mddev)
if
(
mddev
->
level
==
1
)
return
raid5_takeover_raid1
(
mddev
);
if
(
mddev
->
level
==
4
)
{
mddev
->
new_layout
=
ALGORITHM_PARITY_N
;
mddev
->
new_level
=
5
;
return
setup_conf
(
mddev
);
}
return
ERR_PTR
(
-
EINVAL
);
}
...
...
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