@ -18,6 +18,7 @@
#pragma once
#include "assert.hpp"
#include "fh.hpp"
#include "base_types.h"
@ -55,6 +55,9 @@ FUSE::ftruncate(const fuse_req_ctx_t *ctx_,
});
}
if(fh == 0)
return -ENOENT;
FileInfo *fi = FileInfo::from_fh(fh);
return ::_ftruncate(fi->fd,size_);
@ -57,6 +57,9 @@ FUSE::futimens(const fuse_req_ctx_t *ctx_,
return ::_futimens(fi->fd,ts_);