Skip to content

Commit

Permalink
make volume_status_dirty public
Browse files Browse the repository at this point in the history
so it can be also used outside of tests
  • Loading branch information
Murmele committed Jun 3, 2024
1 parent 2fd18cb commit 9d6865a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/fat/fat_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ impl<'a> FatTable<'a> {
const FAT16_DIRTY_BIT: u16 = 15;
const FAT32_DIRTY_BIT: u32 = 27;

#[cfg(test)]
pub(crate) fn dirty(&self) -> bool {
match self.fat_type {
FatType::Fat16 => {
Expand Down
5 changes: 3 additions & 2 deletions src/volume_mgr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,9 @@ where
}
Ok(())
}
#[cfg(test)]
fn volume_status_dirty(&self, volume: &FatVolume) -> Result<bool, Error<D::Error>> {

/// Checking if the volume is dirty or was unmounted correctly in a previous usage
pub fn volume_status_dirty(&self, volume: &FatVolume) -> Result<bool, Error<D::Error>> {
let mut blocks = [Block::new()];
let fat_table1_start = volume.lba_start + volume.fat_start;
self.block_device
Expand Down

0 comments on commit 9d6865a

Please sign in to comment.