aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-07 01:32:19 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-07 01:32:19 +0200
commita295f58338b1e0d5dfb2eed57026cafacf266d7d (patch)
tree69ec8bb3a0b5e4045c31e1b1afd4b24c6a567960 /include
parentb2598623d8a4e3d3e83ee28da3ecdb0d4479a8f8 (diff)
Actually encode/decode directory inode difference as signed
The directory listing stores a signed difference of the inode number. Actually treating it as signed saves emitting extra headers if hard links or file deduplication are finally implemented. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/squashfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/squashfs.h b/include/squashfs.h
index 01047cf..545756c 100644
--- a/include/squashfs.h
+++ b/include/squashfs.h
@@ -150,7 +150,7 @@ typedef struct {
typedef struct {
uint16_t offset;
- uint16_t inode_number;
+ int16_t inode_diff;
uint16_t type;
uint16_t size;
uint8_t name[];