get files in FS by their hash number

This commit is contained in:
2025-11-05 15:20:05 +02:00
parent 473ec81b7a
commit 2bf6402099
5 changed files with 140 additions and 68 deletions
+5 -2
View File
@@ -49,7 +49,9 @@ typedef struct {
size_t size;
size_t rest;
uint32_t hash;
} session_file;
uint32_t id;
uint32_t owner_id;
} s_file_t;
typedef struct fl_t {
char *name;
@@ -59,6 +61,7 @@ typedef struct fl_t {
uint32_t owner_id;
uint32_t hash;
size_t size;
uint32_t id;
struct fl_t *next;
} fl_t;
@@ -74,7 +77,7 @@ typedef struct session {
uint32_t uid;
int fd;
int sd; /* session descriptor */
session_file *file;
s_file_t *file;
fl_t *fl_start;
fl_t *fl_current;
} session;