From 19dff1ba9dfe6f474d22224267a7407c949d6803 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 30 Oct 2001 15:06:52 +0000 Subject: x --- fusepro.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'fusepro.c') diff --git a/fusepro.c b/fusepro.c index cbe80aa..4f593e7 100644 --- a/fusepro.c +++ b/fusepro.c @@ -108,6 +108,28 @@ static int pro_rmdir(const char *path) return 0; } +static int pro_rename(const char *from, const char *to) +{ + int res; + + res = rename(from, to); + if(res == -1) + return -errno; + + return 0; +} + +static int pro_link(const char *from, const char *to) +{ + int res; + + res = link(from, to); + if(res == -1) + return -errno; + + return 0; +} + static void exit_handler() { exit(0); @@ -152,6 +174,8 @@ static struct fuse_operations pro_oper = { symlink: pro_symlink, unlink: pro_unlink, rmdir: pro_rmdir, + rename: pro_rename, + link: pro_link, }; int main(int argc, char *argv[]) -- cgit v1.2.3