主权项 |
1. A system, comprising:
a memory; and a processor coupled to the memory, wherein the processor performs:
receiving data that is to be written, from an operating system, by the processor, wherein the processor is coupled to a Redundant Array of Independent Disks (RAID) controller that controls a first storage device and a second storage device, and wherein the data is indicated in one or more blocks of a first block size by the operating system;writing to the first storage device, by the RAID controller, each of the one or more blocks of the first block size in consecutive blocks of a second block size that is larger in size than the first block size, wherein each of the consecutive blocks of the second block size stores only one block of the first block size, wherein each of the consecutive blocks of the second block size has empty space remaining, subsequent to the writing of each of the one or more blocks of the first block size, and wherein the empty space remaining in each of the consecutive blocks of the second block size subsequent to the writing of each of the one or more blocks of the first block size is seven-eighth of a storage capacity of each of the consecutive blocks of the second block size;writing to the first storage device, by the RAID controller, filler data in the empty space remaining in each of the consecutive blocks of the second block size, wherein the filler data comprises a repetitive pattern of predetermined strings, and wherein the RAID controller avoids sending an indication to the operating system that a RAID configuration supported by the RAID controller does not natively support the first block size; andsubsequent to writing to the first storage device the filler data in the empty space remaining in each of the consecutive blocks of the second block size, mirroring, by the RAID controller, the consecutive blocks of the second block size from the first storage device to the second storage device. |