From a07a7aebf2b011c00a74f5a3829e88815b5a17ce Mon Sep 17 00:00:00 2001 From: MattJackson <1085847+MattJackson@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:06:32 -0700 Subject: [PATCH] Always unlock on DriveSession::open() Silently ignores unlock failures (unencrypted discs). Fixes disc-info on discs that gate reads behind AACS auth. --- src/drive.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/drive.rs b/src/drive.rs index ba4bb30..a33d9a2 100644 --- a/src/drive.rs +++ b/src/drive.rs @@ -55,12 +55,18 @@ impl DriveSession { } }; - Ok(DriveSession { + let mut session = DriveSession { scsi: transport, platform, profile, drive_id, - }) + }; + + // Always unlock on open — makes all reads work immediately. + // Silently ignore failures (unencrypted discs don't need it). + let _ = session.unlock(); + + Ok(session) } /// Open with an explicit profile (skip auto-detection).