xfs.c revision 2
2N/A * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2N/Astruct grub_xfs_sblock
2N/Astruct grub_xfs_dir_header
2N/Astruct grub_xfs_dir_entry
2N/Astruct grub_xfs_dir2_entry
2N/Astruct grub_xfs_btree_node
2N/Astruct grub_xfs_btree_root
2N/Astruct grub_xfs_time
2N/Astruct grub_xfs_inode
2N/Astruct grub_xfs_dirblock_tail
2N/Astruct grub_fshelp_node
2N/A int inode_read;
2N/Astruct grub_xfs_data
2N/Astatic inline grub_uint64_t
2N/Astatic inline grub_uint64_t
2N/Astatic inline grub_disk_addr_t
2N/Astatic inline grub_uint64_t
2N/Astatic inline grub_uint64_t
2N/Astatic inline grub_uint64_t
2N/Astatic inline grub_uint64_t
2N/Astatic grub_err_t
2N/A return grub_errno;
2N/Astatic grub_disk_addr_t
2N/A GRUB_XFS_FSB_TO_BLOCK (node->data, grub_be_to_cpu64 (keys[i - 1 + recoffset])) << (node->data->sblock.log2_bsize - GRUB_DISK_SECTOR_BITS),
2N/Astatic grub_ssize_t
case XFS_INODE_FORMAT_INO:
case XFS_INODE_FORMAT_EXT:
char *symlink;
if (!symlink)
return symlink;
static enum grub_fshelp_filetype
return GRUB_FSHELP_DIR;
return GRUB_FSHELP_SYMLINK;
return GRUB_FSHELP_REG;
return GRUB_FSHELP_UNKNOWN;
int NESTED_FUNC_ATTR
- sizeof (struct grub_xfs_inode)
if (!fdiro)
fdiro);
case XFS_INODE_FORMAT_INO:
if (smallino)
+ sizeof (struct grub_xfs_dir_entry)
if (smallino)
case XFS_INODE_FORMAT_BTREE:
case XFS_INODE_FORMAT_EXT:
char *dirblock;
if (! dirblock)
for (blk = 0;
>> dirblk_log2);
blk++)
int entries;
- sizeof (struct grub_xfs_dirblock_tail));
- (int) sizeof (struct grub_xfs_dir2_entry)))
char *filename;
entries--;
if (!entries)
static struct grub_xfs_data *
if (!data)
goto fail;
goto fail;
sizeof (struct grub_xfs_data)
- sizeof (struct grub_xfs_inode)
if (! data)
goto fail;
return data;
fail:
static grub_err_t
if (!data)
goto mount_fail;
if (grub_errno)
goto fail;
fail:
return grub_errno;
static grub_err_t
if (!data)
goto mount_fail;
if (grub_errno)
goto fail;
if (grub_errno)
goto fail;
sizeof (struct grub_fshelp_node)
- sizeof (struct grub_xfs_inode)
fail:
return grub_errno;
static grub_ssize_t
static grub_err_t
return GRUB_ERR_NONE;
static grub_err_t
if (data)
*label = 0;
return grub_errno;
static grub_err_t
if (data)
return grub_errno;
#ifdef GRUB_UTIL
.reserved_first_sector = 0,
.next = 0