1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 05:05:07 +00:00

BlockDevice -> DiskDevice.

BlockDevice was the wrong name for this abstraction, since a block device
is a type of file in a unix system, and we should use that name for that
concept in the fs implementation.
This commit is contained in:
Andreas Kling 2018-10-16 11:21:49 +02:00
parent 72bb80a9ae
commit 9cd0a34b5c
12 changed files with 62 additions and 64 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include "DeviceBackedFileSystem.h"
#include "DiskBackedFileSystem.h"
#include "UnixTypes.h"
#include <AK/Buffer.h>
#include <AK/OwnPtr.h>
@ -9,9 +9,9 @@ struct ext2_group_desc;
struct ext2_inode;
struct ext2_super_block;
class Ext2FileSystem final : public DeviceBackedFileSystem {
class Ext2FileSystem final : public DiskBackedFileSystem {
public:
static RetainPtr<Ext2FileSystem> create(RetainPtr<BlockDevice>);
static RetainPtr<Ext2FileSystem> create(RetainPtr<DiskDevice>&&);
virtual ~Ext2FileSystem() override;
private:
@ -19,7 +19,7 @@ private:
typedef unsigned GroupIndex;
typedef unsigned InodeIndex;
explicit Ext2FileSystem(RetainPtr<BlockDevice>);
explicit Ext2FileSystem(RetainPtr<DiskDevice>&&);
const ext2_super_block& superBlock() const;
const ext2_group_desc& blockGroupDescriptor(unsigned groupIndex) const;