diff options
Diffstat (limited to 'mythfs/service/inodes/symlink.cpp')
-rw-r--r-- | mythfs/service/inodes/symlink.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mythfs/service/inodes/symlink.cpp b/mythfs/service/inodes/symlink.cpp new file mode 100644 index 0000000..8dcc0df --- /dev/null +++ b/mythfs/service/inodes/symlink.cpp @@ -0,0 +1,25 @@ +#include "symlink.h" +#include <sys/stat.h> + +namespace MythFS { + Symlink::Symlink(const std::string & t) : + target(t) + { + + } + + NetFS::Attr + Symlink::getattr() const + { + return { + 0, 0, + S_IRUSR | S_IRGRP | S_IROTH | S_IFLNK, + 1,"root","root",0,0,0,0,0,0,0}; + } + + std::string + Symlink::readlink() const + { + return target; + } +} |