Class renaming:

UserFileSystem -> FileSystem
  UserVolume -> Volume
  KernelUserFileSystem -> BeOSKernelFileSystem
  KernelUserVolume -> BeOSKernelVolume

The BeOSKernel* classes are indeed intended to handle FS implementations
that use the (old) BeOS FS interface. We'll see how well that will work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20239 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-02-26 16:26:02 +00:00
parent 3834597b97
commit 5d3147f66a
21 changed files with 380 additions and 384 deletions
@@ -0,0 +1,45 @@
// BeOSKernelFileSystem.cpp
#include <new>
#include "BeOSKernelFileSystem.h"
#include "BeOSKernelVolume.h"
// constructor
BeOSKernelFileSystem::BeOSKernelFileSystem(vnode_ops* fsOps)
: FileSystem(),
fFSOps(fsOps)
{
}
// destructor
BeOSKernelFileSystem::~BeOSKernelFileSystem()
{
}
// CreateVolume
status_t
BeOSKernelFileSystem::CreateVolume(Volume** volume, nspace_id id)
{
// check initialization and parameters
if (!fFSOps)
return B_BAD_VALUE;
if (!volume)
return B_BAD_VALUE;
// create the volume
*volume = new(nothrow) BeOSKernelVolume(this, id, fFSOps);
if (!*volume)
return B_NO_MEMORY;
return B_OK;
}
// DeleteVolume
status_t
BeOSKernelFileSystem::DeleteVolume(Volume* volume)
{
if (!volume || !dynamic_cast<BeOSKernelVolume*>(volume))
return B_BAD_VALUE;
delete volume;
return B_OK;
}