Skip to content

PFS - Fixed faulty logic behind bitmap-management, readlink and attribute IOCTL2 calls#68

Merged
sp193 merged 2 commits into
ps2dev:masterfrom
sp193:pfs-bitmap-fix
Jun 16, 2018
Merged

PFS - Fixed faulty logic behind bitmap-management, readlink and attribute IOCTL2 calls#68
sp193 merged 2 commits into
ps2dev:masterfrom
sp193:pfs-bitmap-fix

Conversation

@sp193
Copy link
Copy Markdown
Member

@sp193 sp193 commented Jun 16, 2018

The logic behind the Bitmap-management functions was always slightly different in ours, compared to the original.
Recent logs from HDDChecker have shown that PFS may be unable to correctly update the volume bitmap. Perhaps it is due to the homebrew module dividing the index by 32 (instead of 8), before it is left-shifted by 2. As a result, 2 bits of the index will be lost.

Readlink had a faulty check around whether the inode is a symbolic link or not. However, this function still cannot be correctly used from the EE, since fileXio's RPC server does not correctly support readlink().

The IOCTL2 commands for attributes had faulty logic around the main loop corrected.

sp193 added 2 commits June 16, 2018 13:12
…on issue.

When working with 32-bit words (divide index by 32 instead of 8), the index may become truncated.
Hence work with bytes instead, as per the original.
…corrected typo in function name (loopup -> lookup) and replaced more hardcoded values with defines.

Note: readlink() currently does not work with fileXio, as the RPC server is bugged.
@sp193 sp193 merged commit 1de4bd8 into ps2dev:master Jun 16, 2018
@sp193 sp193 deleted the pfs-bitmap-fix branch June 16, 2018 12:44
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

Successfully merging this pull request may close these issues.

1 participant