Function bootsector::list_partitions
[−]
[src]
pub fn list_partitions<R>(
reader: R,
options: &Options
) -> Result<Vec<Partition>> where
R: Read + Seek,
Read the list of partitions.
Returns
- A possibly empty list of partitions.
ErrorKind::NotFound
if the boot magic is not found, or you asked for partition types that are not thereErrorKind::InvalidData
if anything is not as we expect, including it looking like there should be GPT but its magic is missing.- Other IO errors directly from the underlying reader, including
UnexpectedEOF
.