MCPcopy Create free account
hub / github.com/Bananymous/banan-os / create

Method create

kernel/kernel/FS/Ext2/FileSystem.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 unsigned long Ext2FS::flag() const { return 0; }
47 unsigned long Ext2FS::namemax() const { return 0xFF; }
48
49 BAN::ErrorOr<BAN::RefPtr<Ext2FS>> Ext2FS::create(BAN::RefPtr<BlockDevice> block_device)
50 {
51 auto ext2fs = TRY(BAN::RefPtr<Ext2FS>::create(block_device));
52 TRY(ext2fs->initialize_superblock());
53 TRY(ext2fs->initialize_root_inode());
54 return ext2fs;
55 }
56
57 BAN::ErrorOr<void> Ext2FS::initialize_superblock()

Callers

nothing calls this directly

Calls 2

initialize_superblockMethod · 0.80
initialize_root_inodeMethod · 0.80

Tested by

no test coverage detected