diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-02-11 21:45:34 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-02-11 22:04:59 +0900 |
commit | b756654f6efdf28221e0dcee66aecc58571e75a5 (patch) | |
tree | 5937b85489bff7958b18a84645752110e64cf1b1 /src/path.h | |
parent | a828ca3f5a4e762ff567c57c72a39e1b56fda73a (diff) |
little cleanup
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -12,18 +12,15 @@ struct path { char *path; /* file path */ - size_t size; /* size of file on this path */ - mode_t mode; /* permission */ - char *dst_path; /* copy dst path */ - int state; + refcnt refcnt; /* number of associated chunks */ lock lock; - refcnt refcnt; -}; + int state; #define FILE_STATE_INIT 0 #define FILE_STATE_OPENED 1 #define FILE_STATE_DONE 2 +}; struct chunk { struct path *p; |