Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 233921 Details for
Bug 236891
dmraid -r -E bus error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to avoid writting to non-existent memory during metadata erase
dmraid-1.0.0.rc14-solitary-meta-block.patch (text/plain), 1.31 KB, created by
Ian Kent
on 2007-10-22 07:28:18 UTC
(
hide
)
Description:
Patch to avoid writting to non-existent memory during metadata erase
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-10-22 07:28:18 UTC
Size:
1.31 KB
patch
obsolete
>diff -up 1.0.0.rc14/lib/format/ataraid/isw.c.solitary-meta-block 1.0.0.rc14/lib/format/ataraid/isw.c >--- 1.0.0.rc14/lib/format/ataraid/isw.c.solitary-meta-block 2006-09-23 02:11:37.000000000 +0800 >+++ 1.0.0.rc14/lib/format/ataraid/isw.c 2007-10-22 15:10:49.000000000 +0800 >@@ -364,21 +364,26 @@ static int isw_write(struct lib_context > { > int ret; > struct isw *isw = META(rd, isw); >+ int large = div_up(isw->mpb_size, ISW_DISK_BLOCK_SIZE) > 1; > > to_disk(isw, FULL); > >- /* >- * Copy 1st metadata sector to after the extended ones >- * and increment metadata area pointer by one block, so >- * that the metadata is filed in the proper sequence. >- */ >- memcpy((void*) isw + rd->meta_areas->size, isw, ISW_DISK_BLOCK_SIZE); >- rd->meta_areas->area += ISW_DISK_BLOCK_SIZE; >+ if (large) { >+ /* >+ * Copy 1st metadata sector to after the extended ones >+ * and increment metadata area pointer by one block, so >+ * that the metadata is filed in the proper sequence. >+ */ >+ memcpy((void*) isw + rd->meta_areas->size, isw, >+ ISW_DISK_BLOCK_SIZE); >+ rd->meta_areas->area += ISW_DISK_BLOCK_SIZE; >+ } > > ret = write_metadata(lc, handler, rd, -1, erase); > > /* Correct metadata area pointer. */ >- rd->meta_areas->area -= ISW_DISK_BLOCK_SIZE; >+ if (large) >+ rd->meta_areas->area -= ISW_DISK_BLOCK_SIZE; > > to_cpu(isw, FULL); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236891
: 233921