mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Rename "vfs" to "vfs_ctx" inside USTAR class
This commit is contained in:
parent
177a80403f
commit
42bcdefc6b
@ -24,7 +24,7 @@ namespace VirtualFileSystem
|
|||||||
.Read = USTAR_Read,
|
.Read = USTAR_Read,
|
||||||
};
|
};
|
||||||
|
|
||||||
USTAR::USTAR(uintptr_t Address, Virtual *vfs)
|
USTAR::USTAR(uintptr_t Address, Virtual *vfs_ctx)
|
||||||
{
|
{
|
||||||
trace("Initializing USTAR with address %#llx", Address);
|
trace("Initializing USTAR with address %#llx", Address);
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ namespace VirtualFileSystem
|
|||||||
string2int(((FileHeader *)Address)->mode),
|
string2int(((FileHeader *)Address)->mode),
|
||||||
((FileHeader *)Address)->size);
|
((FileHeader *)Address)->size);
|
||||||
|
|
||||||
vfs->CreateRoot("/", &ustar_op);
|
vfs_ctx->CreateRoot("/", &ustar_op);
|
||||||
|
|
||||||
for (size_t i = 0;; i++)
|
for (size_t i = 0;; i++)
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@ namespace VirtualFileSystem
|
|||||||
if (isempty((char *)header->name))
|
if (isempty((char *)header->name))
|
||||||
goto NextFileAddress;
|
goto NextFileAddress;
|
||||||
|
|
||||||
node = vfs->Create(header->name, NodeFlags::NODE_FLAG_ERROR);
|
node = vfs_ctx->Create(header->name, NodeFlags::NODE_FLAG_ERROR);
|
||||||
debug("Added node: %s", node->Name);
|
debug("Added node: %s", node->Name);
|
||||||
if (node == nullptr)
|
if (node == nullptr)
|
||||||
{
|
{
|
||||||
|
@ -63,7 +63,7 @@ namespace VirtualFileSystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
USTAR(uintptr_t Address, Virtual *vfs);
|
USTAR(uintptr_t Address, Virtual *vfs_ctx);
|
||||||
~USTAR();
|
~USTAR();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user