summaryrefslogtreecommitdiff
path: root/mythfs/service/inodes/abstractDynamicDirectory.cpp
blob: 0a703dbfe756dc31f7c0cc59596665ee3def6acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "abstractDynamicDirectory.h"
#include <sys/stat.h>
#include <exceptions.h>

namespace MythFS {
	NetFS::Attr
	AbstractDynamicDirectory::getattr() const
	{
		return {
			0, 0,
			S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH | S_IFDIR,
			1, "root", "root", 0, 0, 0, 0, 0, 0, 0
		};
	}

	Node::PointerType
	AbstractDynamicDirectory::getChild(const std::string &) const
	{
		throw ::NetFS::SystemError(EINVAL);
	}
}