添加rename的support

This commit is contained in:
2024-07-16 08:00:29 +08:00
parent 017c52ce13
commit 53d62dc0a9
3 changed files with 36 additions and 6 deletions

View File

@ -37,8 +37,9 @@ service LwsVfs {
rpc fflush(flush) returns (flush) {}
rpc fopendir(opendir) returns (opendir) {}
rpc freleasedir(releasedir) returns (releasedir) {}
rpc fcreate (create) returns (create) {}
rpc fcreate(create) returns (create) {}
rpc funlink(unlink) returns (unlink) {}
rpc frename(rename) returns (rename) {}
}
// The request message containing the user's name.
@ -179,26 +180,32 @@ message flush {
int32 ret = 15;
}
message opendir{
message opendir {
string path = 1;
file_info fi = 2;
int32 ret = 15;
}
message releasedir{
message releasedir {
string path = 1;
file_info fi = 2;
int32 ret = 15;
}
message create{
message create {
string path = 1;
uint32 mode = 2;
file_info fi = 3;
int32 ret = 15;
}
message unlink{
message unlink {
string path = 1;
int32 ret = 15;
}
message rename {
string path = 1;
string new = 2;
int32 ret = 15;
}