[haiku-development] Re: XFS support for Haiku - updates
- From: Abhinand N <01abhinandn@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 14 Jun 2018 23:48:39 +0530
Hi,
On Wed, Jun 13, 2018 at 1:00 AM Abhinand N <01abhinandn@xxxxxxxxx> wrote:
I just figured that out while writing the blog post, that I was not
checking that with the default magic number.
I was able to figure out this problem yesterday. I read thorugh the
documentation again and was able to understand that the first superblock
start from offset 0 and I just have to use memcpy() to get the same. There
was also a problem with the magic number which I was getting. It was in
little endian format and had to be converted to big endian to check it with
the magic number. I also tried printing few of the values for which I used
getters. So now reading the superblock seems to be working. I have pushed
the code to github. In between I made some slight changes to code that I
borrowed from BTRFS also, which I didn't push.
As Axel said, I looked into the publishing vnode. I read into the codebase
of BFS and BTRFS, which was making use of class Inode and Vnode. I tried to
figure out how it functions, by reading through the codebase. I'll look
more into this tomorrow. Parallely I was reading the XFS documentation to
see which all on disk structures that I have to implement to get to a rough
overview and have a plan ahead.
Thanks
--
Abhinand N
About <
http://www.abhinand7.me/> | Blog
<
https://abhilovesto.wordpress.com/> | Github
<
https://github.com/abhinand4858>
*"Explore.Dream.Discover"*
Other related posts: