I started with started with implementing the XFS superblock, in reference
to the Linux implementation. I was not able to figure out how UUID type is
obtained. This here is the superblock implementation [0] and uuid_t is
defined here [1]. I didn't properly understand how 'array b' being used and
how to reimplement the same in Haiku. Would be good if someone can help me
here.
[0]
https://github.com/torvalds/linux/blob/3e968c9f1401088abc9a19ae6ff571644d37a355/fs/xfs/libxfs/xfs_format.h#L196
[1]
https://github.com/torvalds/linux/blob/a2e5790d841658485d642196dbb0927303d6c22f/include/linux/uuid.h#L24
I am getting a segmentation fault while running xfs_shell and I am not able
to figure out the same. Here is the error log [2] and the code [3]
[2] https://gist.github.com/abhinand4858/b2436d4b0a558416847ae205c5e4c489
[3]
https://github.com/abhinand4858/haiku/tree/master/src/add-ons/kernel/file_systems/xfs