mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
Fix RAID1/duplicated chunk size calculation
This commit is contained in:
1 parent
ebad0b81be
commit
099821e9e4
1 file changed
+1
-5
@@ -664,13 +664,9 @@ grub_btrfs_read_logical (struct grub_btrfs_data *data,
|
|||||||
case GRUB_BTRFS_CHUNK_TYPE_RAID1:
|
case GRUB_BTRFS_CHUNK_TYPE_RAID1:
|
||||||
/* FIXME: Use redundancy. */
|
/* FIXME: Use redundancy. */
|
||||||
{
|
{
|
||||||
grub_uint32_t stripe_length;
|
|
||||||
stripe_length = grub_divmod64 (grub_le_to_cpu64 (chunk->size),
|
|
||||||
grub_le_to_cpu16 (chunk->nstripes),
|
|
||||||
NULL);
|
|
||||||
stripen = 0;
|
stripen = 0;
|
||||||
stripe_offset = off;
|
stripe_offset = off;
|
||||||
csize = stripe_length - off;
|
csize = grub_le_to_cpu64 (chunk->size) - off;
|
||||||
redundancy = 2;
|
redundancy = 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user