|
struct r10_private_data_s {
mddev_t *mddev;
mirror_info_t *mirrors;
int raid_disks;
int working_disks;
spinlock_t device_lock;
/* geometry */
int near_copies; /* number of copies layed out raid0 style */
int far_copies; /* number of copies layed out
* at large strides across drives
*/
int copies; /* near_copies * far_copies.
* must be <= raid_disks
*/
sector_t stride; /* distance between far copies.
* This is size / far_copies
*/
int chunk_shift; /* shift from chunks to sectors */
sector_t chunk_mask;
}结构体中,far_copies和near_copies以及copies到底是什么意思啊?看了注释也不是很明白
望哪位给我解答一下,谢谢了。 |
|