vasi/squashfuse

Why is the compressed bit being set in inode headers when its size is 0?

Closed this issue · 3 comments

I've been reading through SquashFS documentation and I've been unable to find anything indicating that the compressed bit should be set if the size is 0, what is the purpose of this code?

squashfuse/fs.c

Lines 137 to 138 in 94f998c

if (!*size)
*size = SQUASHFS_COMPRESSED_BIT;

vasi commented

@vasi I asked the author of SquashFS, apparently it only pertains to SquashFS 1.0 so it should be safe to remove

vasi commented

Oh nice, thanks for the followup.