Changed the get_file_system() call to accept a Partition instead of a Node.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4675 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-09-14 16:39:03 +00:00
parent da42afdf62
commit 1b9d001b66
3 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,8 @@
#include <sys/stat.h>
class Node;
namespace BFS {

View File

@ -8,7 +8,9 @@
#include <SupportDefs.h>
class Node;
namespace boot {
class Partition;
}
namespace BFS {
@ -19,7 +21,7 @@ class Directory;
class Volume {
public:
Volume(Node *device);
Volume(boot::Partition *partition);
~Volume();
status_t InitCheck();

View File

@ -21,11 +21,11 @@
using namespace BFS;
Volume::Volume(Node *device)
Volume::Volume(boot::Partition *partition)
:
fRootNode(NULL)
{
fDevice = open_node(device, O_RDONLY);
fDevice = open_node(partition, O_RDONLY);
if (fDevice < B_OK)
return;
@ -124,9 +124,9 @@ Volume::ToBlockRun(off_t block) const
static status_t
bfs_get_file_system(Node *device, ::Directory **_root)
bfs_get_file_system(boot::Partition *partition, ::Directory **_root)
{
Volume *volume = new Volume(device);
Volume *volume = new Volume(partition);
if (volume == NULL)
return B_NO_MEMORY;