Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Btrfs ExtentData class issue should be fixed #254

Open
MikeGratsas opened this issue Apr 14, 2022 · 0 comments
Open

Btrfs ExtentData class issue should be fixed #254

MikeGratsas opened this issue Apr 14, 2022 · 0 comments

Comments

@MikeGratsas
Copy link

Please modify the code of ReadFrom method in DiscUtils.Btrfs/Base/Items/ExtentData.cs file as follows:

            if (Type == ExtentDataType.Inline)
            {
                InlineData = EndianUtilities.ToByteArray(buffer, offset + 0x15, buffer.Length - (offset + 0x15));
                LogicalSize = DecodedSize;
            }

Without the mentioned correction the LogicalSize = 0 for inline extents and the uncompressed data is empty as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant