Skip to content

PS2HDD: make getFileSlot aware of the unit number#865

Merged
fjtrujy merged 1 commit into
ps2dev:masterfrom
pcm720:ps2hdd-mount-fixes
Jun 15, 2026
Merged

PS2HDD: make getFileSlot aware of the unit number#865
fjtrujy merged 1 commit into
ps2dev:masterfrom
pcm720:ps2hdd-mount-fixes

Conversation

@pcm720

@pcm720 pcm720 commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

The current implementation of getFileSlot does not account for the device unit number.
This prevents users from mounting partitions with identical names on hdd0: and hdd1: simultaneously:

  Mounting hdd0:__common to pfs0: 0
  Mounting hdd1:__common to pfs1: -16

Checking both the unit number and partition ID resolves this:

  Mounting hdd0:__common to pfs0: 0
  Mounting hdd1:__common to pfs1: 0

@fjtrujy fjtrujy merged commit 3c93034 into ps2dev:master Jun 15, 2026
5 checks passed
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.

2 participants