1. 修改文件权限问题。将777改成755

2. 支持客户端获取config,避免两边维护两个config文件,修改维护比较麻烦。

待完善:
使用clip支持命令行参数的解析和交互。
This commit is contained in:
2024-08-06 08:45:24 +08:00
parent e044ac77b0
commit db35d8c9b2
4 changed files with 24 additions and 11 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;