Skip to content

Commit

Permalink
Merge pull request #91 from andreivdev/macos_network_drives
Browse files Browse the repository at this point in the history
Use 4096 sector size as default when diskutil can not get drive info.
  • Loading branch information
JohnnyFFM authored May 20, 2021
2 parents e8a5036 + 5010b4c commit f3e7944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ cfg_if! {
}
}
if sector_size == 0 {
warn!("failed to determine sector size, defaulting to 4096.");
sector_size = 4096;
warn!("Abort: Unable to determine disk physical sector size from diskutil info. Using default 4096")
}
sector_size
}
Expand Down

0 comments on commit f3e7944

Please sign in to comment.