All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Issue reading >4GB loopback image via grub exfat
@ 2016-08-24 13:36 Carlo Caione
  2016-08-24 13:36 ` [PATCH] FAT/exFAT: Fix wrong size detection for files > 4GB Carlo Caione
  2016-08-24 15:53 ` [PATCH] Issue reading >4GB loopback image via grub exfat Vladimir 'phcoder' Serbinenko
  0 siblings, 2 replies; 9+ messages in thread
From: Carlo Caione @ 2016-08-24 13:36 UTC (permalink / raw)
  To: grub-devel, linux; +Cc: Carlo Caione

From: Carlo Caione <carlo@endlessm.com>

We have a big image (~6GB) in an exFAT partition. We want to read the content
of the image using the loopback command in grub.

What we get is an error message:

grub> loopback loop0 (hd1,gpt1)/endless/endless.img
grub> ls (loop0,gpt3)/boot
error: attempt to read or write outside of disk `loop0'.

We traced this error back to the wrong type for the 'file_size' variable in the
'grub_fat_data' struct. When MODE_EXFAT is defined and grub is compiled for
i386-pc, 'file_size' is still a 32bit variable when it should really be a 64bit
variable to fully contain the size of the >4GB file we are dealing with.

Carlo Caione (1):
  FAT/exFAT: Fix wrong size detection for files > 4GB

 grub-core/fs/fat.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-01-27 22:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-24 13:36 [PATCH] Issue reading >4GB loopback image via grub exfat Carlo Caione
2016-08-24 13:36 ` [PATCH] FAT/exFAT: Fix wrong size detection for files > 4GB Carlo Caione
2016-08-24 16:08   ` Vladimir 'phcoder' Serbinenko
2016-08-24 16:12     ` Carlo Caione
2016-08-24 19:37   ` Andrei Borzenkov
2016-08-25 10:52     ` Carlo Caione
2017-01-27 22:12       ` Vladimir 'phcoder' Serbinenko
2016-08-24 15:53 ` [PATCH] Issue reading >4GB loopback image via grub exfat Vladimir 'phcoder' Serbinenko
2016-08-24 15:58   ` Carlo Caione

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.