xfs: Implement xfs_fs_init() function
commitabd3b454729a3a7b6cf032ddb38e924123b72494
authorPaulo Alcantara <pcacjr@zytor.com>
Sat, 9 Jun 2012 09:19:49 +0000 (9 06:19 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sat, 21 Jul 2012 04:21:45 +0000 (21 01:21 -0300)
tree16577889b8081b070b199621f57750b9848c3390
parent28682155af7e9ec498c7d2f71962d51f48d56f28
xfs: Implement xfs_fs_init() function

The XFS filesystem driver is now able to read properly the XFS superblock
and store useful information to be used around the driver code, which is
kept (in memory) in the xfs_fs_info structure.

As XFS filesytems store their superblock's fields in big-endian format,
we need to have functions capable to transform a 16/32/64-bit big-endian
value into a 16/32/64-bit little-endian one, since Syslinux is only able
to boot up on x86 systems, which store values in litte-endian format. So,
the bexx_to_cpu() functions do this trick.

The driver isn't functional yet, but I'm looking forward to implement
the iget() family of functions ASAP, then we can to at least get a
"boot:" from a XFS filesystem.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
core/fs/xfs/misc.h [new file with mode: 0644]
core/fs/xfs/xfs.c
core/fs/xfs/xfs.h [new file with mode: 0644]
core/fs/xfs/xfs_ag.h [new file with mode: 0644]
core/fs/xfs/xfs_sb.h