Lines Matching refs:blocks
122 struct grub_fs_block *blocks;
124 /* First, count the number of blocks. */
135 blocks = grub_zalloc (sizeof (struct grub_fs_block) * (num + 1));
136 if (! blocks)
145 blocks[i].offset = grub_strtoull (p, &p, 0);
155 blocks[i].length = grub_strtoul (p, &p, 0);
157 || blocks[i].length == 0
165 if (disk->total_sectors < blocks[i].offset + blocks[i].length)
171 file->size += (blocks[i].length << GRUB_DISK_SECTOR_BITS);
175 file->data = blocks;
180 grub_free (blocks);