Implementing ext4

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Implementing ext4

Post by PavelChekov »

How would I implement the ext4 filesystem in my OS? The only detailed article on the wiki concerning ext is ext2.

Thanks :mrgreen:
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Octocontrabass
Member
Member
Posts: 5418
Joined: Mon Mar 25, 2013 7:01 pm

Re: Implementing ext4

Post by Octocontrabass »

User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Implementing ext4

Post by PavelChekov »

Thanks!
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Implementing ext4

Post by PavelChekov »

Where is the superblock located on the harddisk?

(I know this is probably a better question for a Linux forum, but I'll ask it here anyway.)
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Octocontrabass
Member
Member
Posts: 5418
Joined: Mon Mar 25, 2013 7:01 pm

Re: Implementing ext4

Post by Octocontrabass »

User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Implementing ext4

Post by PavelChekov »

Is there an all-in-one doc containing all the specifications of ext4?

Also, I cannot find documentation on XFS, JFS, BTRFS, UFS, or ZFS . . .
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Octocontrabass
Member
Member
Posts: 5418
Joined: Mon Mar 25, 2013 7:01 pm

Re: Implementing ext4

Post by Octocontrabass »

PavelCheckov wrote:Is there an all-in-one doc containing all the specifications of ext4?
This is the closest you're going to get.
PavelCheckov wrote:Also, I cannot find documentation on XFS, JFS, BTRFS, UFS, or ZFS . . .
You're not looking very hard.
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Implementing ext4

Post by PavelChekov »

Allow me to be more specific: I cannot find any up-to-date documentation from the original site, and not from some unknown webpage on the corner of the web, which has a scan of it.
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
Korona
Member
Member
Posts: 999
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: Implementing ext4

Post by Korona »

Few FSes have formal specs (though counterexamples such as FAT exist). For most FSes that are originally implemented for Linux, the source is the most reliable documentation.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply