Skip to content

Commit

Permalink
Remove the partscan helper function
Browse files Browse the repository at this point in the history
This was never released and the new builder pattern api should be used instead
  • Loading branch information
mdaffin committed Apr 2, 2021
1 parent 898d7de commit bce6150
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,6 @@ impl LoopDevice {
Self::attach_with_loop_info(self, backing_file, info)
}

/// Attach the loop device with automatic partition scanning.
#[deprecated(
since = "0.2.2",
note = "use `with().part_scan(true).attach(file)` instead"
)]
pub fn attach_with_partscan<P: AsRef<Path>>(&self, backing_file: P) -> io::Result<()> {
let info = LoopInfo64 {
lo_flags: 8,
..Default::default()
};

Self::attach_with_loop_info(self, backing_file, info)
}

/// Attach the loop device to a file with loop_info.
fn attach_with_loop_info(
&self, // TODO should be mut? - but changing it is a breaking change
Expand Down

0 comments on commit bce6150

Please sign in to comment.