mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-22 23:30:54 +00:00
d4a7107bde
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@404 aa027e90-d47c-11dd-86d7-074df07e0730
67 lines
889 B
C++
67 lines
889 B
C++
#include "Entry.h"
|
|
#include "Exception.h"
|
|
|
|
using namespace NuFX;
|
|
|
|
|
|
Entry::Entry() :
|
|
_inode(0)
|
|
{
|
|
}
|
|
|
|
Entry::Entry(const std::string& name) :
|
|
_name(name), _inode(0)
|
|
{
|
|
}
|
|
|
|
|
|
Entry::~Entry()
|
|
{
|
|
}
|
|
|
|
|
|
unsigned Entry::inode() const
|
|
{
|
|
return _inode;
|
|
}
|
|
|
|
const std::string& Entry::name() const
|
|
{
|
|
return _name;
|
|
}
|
|
|
|
void Entry::setName(const std::string& name)
|
|
{
|
|
_name = name;
|
|
}
|
|
|
|
VolumeEntryWeakPointer Entry::volume() const
|
|
{
|
|
return _volume;
|
|
}
|
|
|
|
void Entry::setVolume(VolumeEntryWeakPointer volume)
|
|
{
|
|
_volume = volume;
|
|
}
|
|
|
|
int Entry::stat(struct stat *st) const
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
ssize_t Entry::read(size_t size, off_t offset) const
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
ssize_t Entry::listxattr(char *namebuf, size_t size, int options) const
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
ssize_t Entry::getxattr(const std::string &name, void *value, size_t size, u_int32_t position, int options) const
|
|
{
|
|
return -1;
|
|
}
|