can anybody please tell how the squashfs maps the disk block numbers to file system blocks.
Basically i am saying about read_blocklist() in squashfs.
Thanks,
Kapil
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The squashfs metadata for a regular file looks roughly like this:
The block header contains the compressed size of the block. So we can calculate the position of any given block by adding up start_block and the sizes of all preceding blocks.
Playing around with my pure-ruby squashfs parser might help: https://github.com/vasi/squash.rb