1. 修改配置的解析方式,使用建立rpc链接的时候使用一个get_config的请求同步,这样不用维护windows和linux两个配置文件

2. 修改命令行参数使其更加符合CLI交互,使用clap库实现。

遗留问题:
权限全是0777。需要改一下
This commit is contained in:
2024-08-06 08:38:35 +08:00
parent 80c7a14ff2
commit 1d49f19301
5 changed files with 180 additions and 43 deletions

View File

@ -19,6 +19,7 @@ package lws_vfs;
service LwsVfs {
// Sends a greeting
rpc SayHello(HelloRequest) returns (HelloReply) {}
rpc GetConfig(get_config) returns (get_config) {}
rpc fgetattr(getattr) returns (getattr) {}
rpc fsetxattr(setxattr) returns (setxattr) {}
@ -48,6 +49,10 @@ message HelloRequest { string name = 1; }
// The response message containing the greetings
message HelloReply { string message = 1; }
message get_config {
string config = 1;
}
message file_info {
uint32 flags = 1;
uint32 fh_old = 2;