Unable to read Bluray discs on macOS from /Volumes mountpoint
I'm running into an issue using libbluray on macOS. I've already extracted the VUK and put it into my KEYDB.cfg file. When I put a Bluray into my drive it will mount at /Volumes/ANIMATRIX_WW with it's physical location at /dev/disk6. I've tracked down the issue to the bd_open function. Using the example program bd_info I get two different results depending on how I reference the drive. This error occurs both in HandBrake and VLC which use libbluray.
If I reference the drive as /Volumes/ANIMATRIX_WW I will get the following error
$ BD_DEBUG_MASK=64 bd_info /Volumes/ANIMATRIX_WW ~/.config/aacs/KEYDB.cfg
Using libbluray version 1.0.2
bluray.c:1387: libbluray version 1.0.2
bluray.c:1412: BLURAY initialized!
aacs.c:79: AACS/Unit_Key_RO.inf found. Disc seems to be AACS protected.
bdplus.c:87: BDSVM/00000.svm not found. No BD+ protection.
aacs.c:105: Using libaacs for AACS
aacs.c:129: Loading aacs library (0x7fc6cdc03010)
aacs.c:140: Loaded libaacs (0x7fc6cdc03010)
syntax error: line 1
bad entry at or around line 1
dec.c:202: Opened libaacs
bluray.c:1527: BLURAY destroyed!
bd_open('/Volumes/ANIMATRIX_WW', '/Users/libbluray/.config/aacs/KEYDB.cfg') failed.
If I reference the drive as /dev/disk6 I will get the following success:
$ BD_DEBUG_MASK=64 bd_info /dev/disk6 ~/.config/aacs/KEYDB.cfg
Using libbluray version 1.0.2
bluray.c:1387: libbluray version 1.0.2
bluray.c:1412: BLURAY initialized!
aacs.c:79: AACS/Unit_Key_RO.inf found. Disc seems to be AACS protected.
bdplus.c:87: BDSVM/00000.svm not found. No BD+ protection.
aacs.c:105: Using libaacs for AACS
aacs.c:129: Loading aacs library (0x7fcc69500120)
aacs.c:140: Loaded libaacs (0x7fcc69500120)
syntax error: line 1
bad entry at or around line 1
dec.c:202: Opened libaacs
BluRay detected : yes
First Play supported: yes
Top menu supported : yes
HDMV titles : 63
BD-J titles : 0
UNSUPPORTED titles : 0
BD-J detected : no
AACS detected : yes
libaacs detected : yes
Disc ID : 6381E9D2FE422630C0DACE7EAD70A94A035B8144
AACS MKB version : 7
AACS handled : yes
BD+ detected : no
Application info:
initial mode preference : 2D
3D content exists : No
video format : ignored (0x0)
frame rate : ignored (0x0)
provider data : ' SONY'
No disc library metadata
bluray.c:1527: BLURAY destroyed!
Additionally I made an ISO of the Bluray disc with dd. When I mounted that ISO file both reference types worked just fine.