int do_undel(const char *filename,uint64_t lv,uint32_t ts,char *ptr) { uint32_t inode; EAT(ptr,filename,lv,'('); GETU32(inode,ptr); EAT(ptr,filename,lv,')'); return fs_undel(ts,inode); }
uint8_t do_undel(uint64_t lv,uint32_t ts,char *ptr) { uint32_t inode; EAT(ptr,lv,'('); GETU32(inode,ptr); EAT(ptr,lv,')'); return fs_undel(ts,inode); }
void mfs_meta_rename(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname) { int status; uint32_t inode; (void)newname; if (parent!=META_TRASH_INODE && newparent!=META_UNDEL_INODE) { fuse_reply_err(req,EACCES); return; } inode = mfs_meta_name_to_inode(name); if (inode==0) { fuse_reply_err(req,ENOENT); return; } status = fs_undel(inode); status = mfs_errorconv(status); // if (status!=0) { fuse_reply_err(req, status); // } else { // fuse_reply_err(req,0); // } }