capture: implement directory structure capture

This commit is contained in:
2025-04-26 21:28:43 +01:00
parent d5df4d593f
commit 150b092d1b
18 changed files with 1737 additions and 32 deletions

21
src/vnode.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef VNODE_H_
#define VNODE_H_
#include "bin.h"
struct b_file_info;
struct ec3_vnode {
unsigned long v_id;
unsigned long v_ctime, v_mtime;
unsigned short v_mode;
unsigned short v_uid, v_gid;
ec3_chunk_id v_data;
};
extern enum ec3_status ec3_vnode_from_file_info(
const struct b_file_info *file_info,
struct ec3_vnode *out);
#endif