2009-07-31 Bean <bean123ch@gmail.com>
commitb3357bae8ec678ebeffaca903987c61a8b301e35
authorBean <bean123ch@gmail.com>
Fri, 31 Jul 2009 14:58:04 +0000 (31 14:58 +0000)
committerBean <bean123ch@gmail.com>
Fri, 31 Jul 2009 14:58:04 +0000 (31 14:58 +0000)
treed5d99aec2e331013736a33a01ef2347b4568470f
parentbb050371e900adcddaa484e5a78264bb15886edc
2009-07-31  Bean  <bean123ch@gmail.com>

* fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
log2_inode.
(grub_fshelp_node): Move inode field to the end.
(grub_xfs_data): Remove inode field.
(grub_xfs_inode_block): Calculate inode size using sblock.
(grub_xfs_inode_offset): Likewise.
(grub_xfs_read_inode): Calculate inode size using sblock.
(grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
(grub_xfs_iterate_dir): Calculate inode size using sblock.
(grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
to match inode size.
(grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
not accessible when data is null.
(grub_xfs_open): Likewise.

git-svn-id: svn://svn.savannah.gnu.org/grub/trunk/grub2@2458 d0de0278-0dc1-4c01-8a07-af38b3205e46
ChangeLog
fs/xfs.c