2009-09-11 Colin Watson <cjwatson@ubuntu.com>

* include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
	to grub_uint64_t.
	* fs/ntfs.c (init_file): Understand 64-bit sizes for
	non-resident files.
This commit is contained in:
cjwatson 2009-09-11 14:26:12 +00:00
parent 866953751f
commit cda2a409b3
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2009-09-11 Colin Watson <cjwatson@ubuntu.com>
* include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
to grub_uint64_t.
* fs/ntfs.c (init_file): Understand 64-bit sizes for
non-resident files.
2009-09-11 Colin Watson <cjwatson@ubuntu.com> 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
* configure.ac: Don't look for help2man when cross-compiling. Fixes * configure.ac: Don't look for help2man when cross-compiling. Fixes

View file

@ -543,7 +543,7 @@ init_file (struct grub_ntfs_file *mft, grub_uint32_t mftno)
if (!pa[8]) if (!pa[8])
mft->size = u32at (pa, 0x10); mft->size = u32at (pa, 0x10);
else else
mft->size = u32at (pa, 0x30); mft->size = u64at (pa, 0x30);
if ((mft->attr.flags & AF_ALST) == 0) if ((mft->attr.flags & AF_ALST) == 0)
mft->attr.attr_end = 0; /* Don't jump to attribute list */ mft->attr.attr_end = 0; /* Don't jump to attribute list */

View file

@ -133,7 +133,7 @@ struct grub_fshelp_node
{ {
struct grub_ntfs_data *data; struct grub_ntfs_data *data;
char *buf; char *buf;
grub_uint32_t size; grub_uint64_t size;
grub_uint32_t ino; grub_uint32_t ino;
int inode_read; int inode_read;
struct grub_ntfs_attr attr; struct grub_ntfs_attr attr;