Redirected writing method and device
A redirection and to-be-written technology, applied in the field of communications, can solve the problems of data write failure and to-be-written data unable to be written.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] figure 1 It is a flow chart of the redirected writing method provided by Embodiment 1 of the present invention, as shown in figure 1 As shown, it specifically includes the following steps:
[0071] Step 101, receiving a write command, the write command includes data to be written and a stripe address;
[0072] Step 102, comparing the size of the data to be written with the size of the stripe corresponding to the stripe address;
[0073] Step 103. If the size of the data to be written is smaller than the size of the stripe, determine whether the first data last saved by the stripe can be successfully read;
[0074] Step 104. If the reading fails, merge the data to be written with the second data to obtain data to be written that is the same size as the stripe and write it into the stripe, wherein the The second data is used to replace the first data and the size of the second data is equal to the size of the stripe.
[0075] Redirected write (ROW) means that when sav...
Embodiment 2
[0088] This embodiment is a specific implementation step for determining whether the first data saved last time in the stripe can be successfully read in step 103 of the first embodiment, figure 2 The flow chart of the redirected writing method provided by Embodiment 2 of the present invention, such as figure 2 As shown, it specifically includes the following steps:
[0089] Step 201, read bad block mark;
[0090] Step 202, determining whether the block where the first data is located is marked as a bad block;
[0091] Step 203, if not, then determine whether the first data can be read;
[0092] Step 204, if it cannot be read, then determine whether the first data can be restored redundantly;
[0093] Step 205, if not, it can be determined that the first data cannot be successfully read;
[0094] Step 206, if the first data can be read in step 203, or the first data can be redundantly restored in step 204, then it can be determined that the first data can be read success...
Embodiment 3
[0098] Embodiment 3 is based on Embodiment 1. The data to be written is complete data, and the complete data is smaller than the size of the stripe. image 3 The flow chart of the redirected writing method provided by Embodiment 3 of the present invention, such as image 3 As shown, it specifically includes the following steps:
[0099] Step 301, receiving a complete data write instruction;
[0100] Step 302, determine whether the complete data is smaller than the stripe size;
[0101] Step 303, if the determined result of step 302 is that the complete data is smaller than the size of the stripe, then determine whether the last written first data in the stripe corresponding to the complete data can be successfully read;
[0102] Step 304, if step 303 can be read successfully, merge the complete data with the first data;
[0103] Step 305, if step 303 cannot be successfully read, then replace the first data with the second data and merge with the complete data;
[0104] Ste...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com