Skip to content

Commit cbe49e2

Browse files
committed
Update mbrman to 0.5.0
1 parent de68eb0 commit cbe49e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ clap = { version = "4.0.4", features = ["derive"] }
1010
# The latest fatfs release (0.3.5) is old, use git instead to pick up some fixes.
1111
fatfs = { git = "https://github.com/rafalh/rust-fatfs.git", rev = "87fc1ed5074a32b4e0344fcdde77359ef9e75432" }
1212
fs-err = "2.6.0"
13-
mbrman = "0.4.2"
13+
mbrman = "0.5.0"
1414
nix = "0.25.0"
1515
regex = "1.5.4"
1616
serde_json = "1.0.73"

xtask/src/disk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::Result;
22
use fatfs::{Date, DateTime, FileSystem, FormatVolumeOptions, FsOptions, StdIoWrapper, Time};
3-
use mbrman::{MBRPartitionEntry, CHS, MBR};
3+
use mbrman::{MBRPartitionEntry, BOOT_INACTIVE, CHS, MBR};
44
use std::io::{Cursor, Read, Write};
55
use std::ops::Range;
66
use std::path::Path;
@@ -23,7 +23,7 @@ pub fn create_mbr_test_disk(path: &Path) -> Result<()> {
2323

2424
let mut mbr = MBR::new_from(&mut cur, SECTOR_SIZE as u32, [0xff; 4])?;
2525
mbr[1] = MBRPartitionEntry {
26-
boot: false,
26+
boot: BOOT_INACTIVE,
2727
first_chs: CHS::empty(),
2828
sys: 0x06,
2929
last_chs: CHS::empty(),

0 commit comments

Comments
 (0)