[haiku-development] Re: Contribute to "Create an XFS file system driver"

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 10 Nov 2014 17:48:12 +0100

Hi Saket,

On 10.11.2014 07:19, Saket Sinha wrote:
1) Different VFS interface between Haiku and Linux- In Linux, more
generic operations are performed by VFS on filesystem's behalf  as
compared to that in Haiku so XFS on Haiku will have to take care of
many other things.

That would be interesting, anyway. I haven't had a close look on the Linux VFS interface. So once your working on the differences, it might be a good time to reevaluate if our current VFS interface could be improved.
In the end, having the VFS do as much as possible is always a good idea.

2) Direct I/O implementation - I have no idea as of now how this is
implemented in Haiku.

Currently, the way one does it is by using a file_map, and a file_cache object. The former is optional, and translates on-disk mappings to file mappings. The latter is the actual file cache I/O implementation.
You could have a look at the bfs_io() hook to see how to interface that.

Tony, since Haiku doesn't support XFS why would it be installed on XFS
partition. My initial approach would be to provide read-only support
for XFS on Haiku.

Please ignore Tony, he just seems to be another incarnation of our list troll. He changes his name from time to time for effect.

Anyway, he does have a point that Haiku currently needs query support for a bootable disk (or any disk where you want to launch applications from). That might change one day, though, as our use of attributes is kind of problematic in a multi-user environment.

Bye,
   Axel.


Other related posts: