namespace cpp lfs
namespace java lfs
namespace perl lfs
struct FileInfo {
1: i64 ID
2: i32 Size
3: i32 UsedSize
4: i32 ModifyTime
5: i32 CreateTime
}
struct ReadBuf{
1: string data;
2: i64 count;
}
service LfsService {
i32 Initialize(1: string ns_addr)
i32 Close(1: i32 fd)
i32 Open(1: string fileName, 2: i32 flags)
i32 Write(1: i32 fd, 2: string data, 3: i64 count)
ReadBuf Read(1: i32 fd)
FileInfo Fstat(1: i32 fd)
//i64 SaveFile(1: string fileName, 2: string localFile, 3: i32 flag, 4: string nsAddr)
//i32 FetchFile(1: string localFile, 2: string fileName, 3: string nsAddr)
}
namespace java lfs
namespace perl lfs
struct FileInfo {
1: i64 ID
2: i32 Size
3: i32 UsedSize
4: i32 ModifyTime
5: i32 CreateTime
}
struct ReadBuf{
1: string data;
2: i64 count;
}
service LfsService {
i32 Initialize(1: string ns_addr)
i32 Close(1: i32 fd)
i32 Open(1: string fileName, 2: i32 flags)
i32 Write(1: i32 fd, 2: string data, 3: i64 count)
ReadBuf Read(1: i32 fd)
FileInfo Fstat(1: i32 fd)
//i64 SaveFile(1: string fileName, 2: string localFile, 3: i32 flag, 4: string nsAddr)
//i32 FetchFile(1: string localFile, 2: string fileName, 3: string nsAddr)
}