[haiku-development] Re: Contributing to Haiku

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2020 17:35:44 +0000

<snip>

Well, try to understand why the ext4 driver is not understanding what's
on your usb stick. Maybe add some TRACE statements to the drive (it's in
src/add-ons/kernel/file_systems/ext4) and look for them in the syslog.

There is no such directory as ext4 as you have mentioned. are you
talking about (src/add-ons/kernel/file_systems/ext2)?

Yes. This driver handles ext2, 3, and 4, which are just variations on the same 
thing
and have some level of compatibility with each other.


Also read about EXT4 and try to examine your filesystem. For example,
does it use 32bit or 64bit ext4? Are there other feature flags that are
enabled? Are these supported by our driver already or are we missing
some? Do you manage to mount a filesystem if you disable some of these
flags when formatting?

I want to use ext2 code in fs shell. how should i do that?
I used the following commands to make an image

dd if=/dev/zero of=system_new.img bs=4k count=600

mkfs.ext4 -F system_new.img

There is currently no fs_shell for ext4. So you will need to add one.
The fs_shells for other filesystems are here: 
https://git.haiku-os.org/haiku/tree/src/tests/add-ons/kernel/file_systems

You can look at xfs, ufs2 and btrfs which have an fs_shell there already. You'd 
need to add one for ext2 and then use Jam to build it.

Some blogposts may be useful:

XFS:

https://www.haiku-os.org/blog/abx1/
https://www.haiku-os.org/blog/cruxbox

UFS2:

https://www.haiku-os.org/blog/suhelmehta

BTRFS:
https://www.haiku-os.org/blog/hyche
https://www.haiku-os.org/blog/brj

-- 
Adrien.


Other related posts: