mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
When configuring RAID3 with verification option, force synchronization
of parity component, because we can't return an EIO error for read of every sector which wasn't written first. Discussed with: phk
This commit is contained in:
parent
f489bf21ec
commit
edcf2d2891
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134539
@ -280,6 +280,13 @@ raid3_label(struct gctl_req *req)
|
||||
str += strlen(_PATH_DEV);
|
||||
strlcpy(md.md_provider, str, sizeof(md.md_provider));
|
||||
}
|
||||
if (*verify && md.md_no == md.md_all - 1) {
|
||||
/*
|
||||
* In "verify" mode, force synchronization of parity
|
||||
* component on start.
|
||||
*/
|
||||
md.md_syncid = 0;
|
||||
}
|
||||
raid3_metadata_encode(&md, sector);
|
||||
error = g_metadata_store(str, sector, sizeof(sector));
|
||||
if (error != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user