Storage: tree timestamps (#1971)

* Storage: tree timestamps
* Rpc: add storage timestamp
* Storage: correct timestamp owner
* Storage: update timestamp at sd mount

Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
あく
2022-11-04 14:26:04 +09:00
committed by GitHub
parent e3ea5bca76
commit d68ac50efd
15 changed files with 142 additions and 2 deletions

View File

@@ -42,6 +42,11 @@ typedef struct {
uint16_t name_length;
} SADataDRead;
typedef struct {
const char* path;
uint32_t* timestamp;
} SADataCTimestamp;
typedef struct {
const char* path;
FileInfo* fileinfo;
@@ -78,6 +83,7 @@ typedef union {
SADataDOpen dopen;
SADataDRead dread;
SADataCTimestamp ctimestamp;
SADataCStat cstat;
SADataCFSInfo cfsinfo;
@@ -112,6 +118,7 @@ typedef enum {
StorageCommandDirClose,
StorageCommandDirRead,
StorageCommandDirRewind,
StorageCommandCommonTimestamp,
StorageCommandCommonStat,
StorageCommandCommonRemove,
StorageCommandCommonMkDir,