summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-13 15:00:54 +0200
committerSimon Rettberg2024-05-13 15:00:54 +0200
commit848b21334ff6f9363f0dd96d5db9f9f8a9b07846 (patch)
treeccc0b7b19f31af95874e8ee13b055260533bf085
parent[FUSE] Don't exit on SIGQUIT, just stop uploading (diff)
downloaddnbd3-848b21334ff6f9363f0dd96d5db9f9f8a9b07846.tar.gz
dnbd3-848b21334ff6f9363f0dd96d5db9f9f8a9b07846.tar.xz
dnbd3-848b21334ff6f9363f0dd96d5db9f9f8a9b07846.zip
[FUSE] Fix hang when trying to chmod/chown /img or /statusfuse_cow_2
No reply was ever given for unhandled requests. Return EACCES.
-rw-r--r--src/fuse/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c
index 3269d15..f76cfb6 100644
--- a/src/fuse/main.c
+++ b/src/fuse/main.c
@@ -307,8 +307,10 @@ static void image_ll_setattr( fuse_req_t req, fuse_ino_t ino, struct stat *attr,
return;
}
if (to_set & FUSE_SET_ATTR_SIZE) {
- cowfile_setSize( req, attr->st_size, ino, fi);
+ cowfile_setSize( req, attr->st_size, ino, fi);
+ return;
}
+ fuse_reply_error( req, EACCES );
}
/* map the implemented fuse operations */