aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-09 17:10:32 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-09 17:10:32 +0200
commit39839acc9601c1b36d1b43f4ead05ee6fdfebf45 (patch)
tree58e8da5a57e362585c5f47f29d4a95bf87b57b48 /README
parent05330a1d31228d930d54f5422b6a9ff1542e5225 (diff)
Add workaround to make empty directories with xattrs work
The problem: SquashFS uses extended inode types for inodes with xattrs, so for directories we need to generate an ldir inode. The ldir inode type includes a directory index which cannot be empty (the counter is off by 1, so 0 means 1 entry) and the entry is expected to contain a file name with the same issue (must be at least 1 byte). This has probably not really been thought through. What the mksquashfs actually does is generating an ldir inode without an index. The kernel does not bother to read the index, since the size of the directory is 0. Its a hack that just so happens to work. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'README')
-rw-r--r--README2
1 files changed, 0 insertions, 2 deletions
diff --git a/README b/README
index ff08801..ad555ff 100644
--- a/README
+++ b/README
@@ -47,8 +47,6 @@ At the moment, the following things still require some work:
- rdsquashfs ignores them entirely
- SquashFS supports deduplicating values through "out of line"
storage but this is currently not used yet.
- - empty directories cannot have xattrs. The way I understand it, this is a
- design flaw in SquashFS. I hope I'm missing something here.
- sparse files (not implemented yet; lots of zeros compress good anyway :P)
- hard links (not implemented yet; do we even want this?)
- File deduplication (not implemented; do we even need this?)