summaryrefslogtreecommitdiff
path: root/src/path.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-02-11 21:45:34 +0900
committerRyo Nakamura <upa@haeena.net>2024-02-11 22:04:59 +0900
commitb756654f6efdf28221e0dcee66aecc58571e75a5 (patch)
tree5937b85489bff7958b18a84645752110e64cf1b1 /src/path.h
parenta828ca3f5a4e762ff567c57c72a39e1b56fda73a (diff)
little cleanup
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/path.h b/src/path.h
index 1db6d91..6cc2a52 100644
--- a/src/path.h
+++ b/src/path.h
@@ -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;