提交 aaa1c1cc 编写于 作者: H Hongze Cheng

refactor

上级 c510e513
...@@ -22,6 +22,16 @@ ...@@ -22,6 +22,16 @@
extern "C" { extern "C" {
#endif #endif
typedef struct {
int level;
int id;
} SDiskID;
typedef struct {
SDiskID did;
char fname[TSDB_FILENAME_LEN];
} STfsFile;
int tfsInit(SDiskCfg *pDiskCfg, int ndisk); int tfsInit(SDiskCfg *pDiskCfg, int ndisk);
void tfsDestroy(); void tfsDestroy();
int tfsUpdateInfo(); int tfsUpdateInfo();
......
...@@ -20,11 +20,6 @@ ...@@ -20,11 +20,6 @@
extern "C" { extern "C" {
#endif #endif
typedef struct {
int level;
int id;
} SDiskID;
typedef struct { typedef struct {
uint64_t size; uint64_t size;
uint64_t free; uint64_t free;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "tsdb.h" #include "tsdb.h"
#include "tskiplist.h" #include "tskiplist.h"
#include "tutil.h" #include "tutil.h"
#include "tmount.h" #include "tfs.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -189,9 +189,10 @@ typedef struct { ...@@ -189,9 +189,10 @@ typedef struct {
} STsdbFileInfo; } STsdbFileInfo;
typedef struct { typedef struct {
char fname[TSDB_FILENAME_LEN]; // char fname[TSDB_FILENAME_LEN];
int fd; // int fd;
STfsFile tfile;
STsdbFileInfo info; STsdbFileInfo info;
} SFile; } SFile;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册