forked from Bananymous/banan-os
Kernel: Move Partition out of StorageDevice and rename functions
This commit is contained in:
@@ -444,7 +444,7 @@ namespace Kernel
|
||||
return index() == ext2_other.index();
|
||||
}
|
||||
|
||||
BAN::ErrorOr<Ext2FS*> Ext2FS::create(StorageDevice::Partition& partition)
|
||||
BAN::ErrorOr<Ext2FS*> Ext2FS::create(Partition& partition)
|
||||
{
|
||||
Ext2FS* ext2fs = new Ext2FS(partition);
|
||||
if (ext2fs == nullptr)
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace Kernel
|
||||
|
||||
for (auto& partition : device->partitions())
|
||||
{
|
||||
if (partition.name() == "banan-root"sv)
|
||||
if (partition.label() == "banan-root"sv)
|
||||
{
|
||||
if (root_inode())
|
||||
dwarnln("multiple root partitions found");
|
||||
@@ -127,7 +127,7 @@ namespace Kernel
|
||||
{
|
||||
for (auto& partition : device->partitions())
|
||||
{
|
||||
if (partition.name() == "mount-test"sv)
|
||||
if (partition.label() == "mount-test"sv)
|
||||
{
|
||||
auto ext2fs = TRY(Ext2FS::create(partition));
|
||||
TRY(mount(ext2fs, "/mnt"sv));
|
||||
|
||||
Reference in New Issue
Block a user