aboutsummaryrefslogtreecommitdiff
path: root/fuse/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuse/main.c')
-rw-r--r--fuse/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fuse/main.c b/fuse/main.c
index ab8a90a..1e24efe 100644
--- a/fuse/main.c
+++ b/fuse/main.c
@@ -78,7 +78,17 @@ static int erofsfuse_read(const char *path, char *buffer,
return size;
}
+static int erofsfuse_readlink(const char *path, char *buffer, size_t size)
+{
+ int ret = erofsfuse_read(path, buffer, size, 0, NULL);
+
+ if (ret < 0)
+ return ret;
+ return 0;
+}
+
static struct fuse_operations erofs_ops = {
+ .readlink = erofsfuse_readlink,
.getattr = erofsfuse_getattr,
.readdir = erofsfuse_readdir,
.open = erofsfuse_open,