summaryrefslogtreecommitdiff
path: root/mythfs/service/inodes/abstractDynamicDirectory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mythfs/service/inodes/abstractDynamicDirectory.cpp')
-rw-r--r--mythfs/service/inodes/abstractDynamicDirectory.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/mythfs/service/inodes/abstractDynamicDirectory.cpp b/mythfs/service/inodes/abstractDynamicDirectory.cpp
new file mode 100644
index 0000000..0a703db
--- /dev/null
+++ b/mythfs/service/inodes/abstractDynamicDirectory.cpp
@@ -0,0 +1,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);
+ }
+}
+