mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
Implement rename operation for WinFsp to work around crash
This commit is contained in:
parent
741fb17d3f
commit
6f210daf93
@ -899,6 +899,17 @@ int op_listxattr(char const* path, char* list, size_t size) {
|
|||||||
|
|
||||||
return all_xattr.size();
|
return all_xattr.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX: Not implementing this currently crashes WinFsp when a file is renamed
|
||||||
|
template <typename LoggerPolicy>
|
||||||
|
int op_rename(char const* from, char const* to, unsigned int flags) {
|
||||||
|
dUSERDATA;
|
||||||
|
LOG_PROXY(LoggerPolicy, userdata->lgr);
|
||||||
|
|
||||||
|
LOG_DEBUG << __func__ << "(" << from << ", " << to << ", " << flags << ")";
|
||||||
|
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void usage(char const* progname) {
|
void usage(char const* progname) {
|
||||||
@ -1003,6 +1014,7 @@ void init_fuse_ops(struct fuse_operations& ops) {
|
|||||||
ops.statfs = &op_statfs<LoggerPolicy>;
|
ops.statfs = &op_statfs<LoggerPolicy>;
|
||||||
ops.getxattr = &op_getxattr<LoggerPolicy>;
|
ops.getxattr = &op_getxattr<LoggerPolicy>;
|
||||||
ops.listxattr = &op_listxattr<LoggerPolicy>;
|
ops.listxattr = &op_listxattr<LoggerPolicy>;
|
||||||
|
ops.rename = &op_rename<LoggerPolicy>;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user