v0.18.17: bump version
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "libfreemkv"
|
name = "libfreemkv"
|
||||||
version = "0.18.16"
|
version = "0.18.17"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.86"
|
rust-version = "1.86"
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
|
|||||||
+1
-1
@@ -3414,7 +3414,7 @@ pub fn detect_max_batch_sectors(device_path: &str) -> u16 {
|
|||||||
// Check if optical drive (0x05 = CD/DVD)
|
// Check if optical drive (0x05 = CD/DVD)
|
||||||
let is_optical = (|| -> bool {
|
let is_optical = (|| -> bool {
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
let scsi_device_dir = format!("/sys/class/scsi_device/");
|
let scsi_device_dir = "/sys/class/scsi_device/".to_string();
|
||||||
if let Ok(entries) = std::fs::read_dir(&scsi_device_dir) {
|
if let Ok(entries) = std::fs::read_dir(&scsi_device_dir) {
|
||||||
for entry in entries.flatten() {
|
for entry in entries.flatten() {
|
||||||
let device_type_path = entry.path().join("device/type");
|
let device_type_path = entry.path().join("device/type");
|
||||||
|
|||||||
+2
-1
@@ -207,7 +207,8 @@ pub fn input(url: &str, opts: &InputOptions) -> io::Result<Box<dyn crate::pes::S
|
|||||||
// ISO file: use large batch size (16 MB) — sequential read from fast storage, no bad sectors.
|
// ISO file: use large batch size (16 MB) — sequential read from fast storage, no bad sectors.
|
||||||
// Physical drives need small batches for adaptive error handling and retry logic.
|
// Physical drives need small batches for adaptive error handling and retry logic.
|
||||||
const ISO_MUX_BATCH_SECTORS: u16 = 8192;
|
const ISO_MUX_BATCH_SECTORS: u16 = 8192;
|
||||||
let mut stream = DiscStream::new(Box::new(reader), title, keys, ISO_MUX_BATCH_SECTORS, format);
|
let mut stream =
|
||||||
|
DiscStream::new(Box::new(reader), title, keys, ISO_MUX_BATCH_SECTORS, format);
|
||||||
if opts.raw {
|
if opts.raw {
|
||||||
stream.set_raw();
|
stream.set_raw();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user