Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ log_level_warn = ["log_level_error"]
log_level_info = ["log_level_warn"]
# Enable logging levels debug and up
log_level_debug = ["log_level_info"]
# Enable all logging levels: trace and up
# Enable all logging levels: trace and up
log_level_trace = ["log_level_debug"]

# Default features
Expand Down
4 changes: 2 additions & 2 deletions src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ impl<'a, IO: ReadWriteSeek, TP, OCC> DirIter<'a, IO, TP, OCC> {
}

impl<'a, IO: ReadWriteSeek, TP: TimeProvider, OCC> DirIter<'a, IO, TP, OCC> {
fn should_ship_entry(&self, raw_entry: &DirEntryData) -> bool {
fn should_skip_entry(&self, raw_entry: &DirEntryData) -> bool {
if raw_entry.is_deleted() {
return true;
}
Expand All @@ -624,7 +624,7 @@ impl<'a, IO: ReadWriteSeek, TP: TimeProvider, OCC> DirIter<'a, IO, TP, OCC> {
return Ok(None);
}
// Check if this is deleted or volume ID entry
if self.should_ship_entry(&raw_entry) {
if self.should_skip_entry(&raw_entry) {
trace!("skip entry");
lfn_builder.clear();
begin_offset = offset;
Expand Down
2 changes: 1 addition & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl<IO: ReadWriteSeek, TP: TimeProvider, OCC> Write for File<'_, IO, TP, OCC> {
} else {
// end of chain reached - allocate new cluster
let new_cluster = self.fs.alloc_cluster(self.current_cluster, self.is_dir())?;
trace!("allocated cluser {}", new_cluster);
trace!("allocated cluster {}", new_cluster);
if self.first_cluster.is_none() {
self.set_first_cluster(new_cluster);
}
Expand Down
4 changes: 2 additions & 2 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ impl<IO: Read + Write + Seek, TP, OCC> FileSystem<IO, TP, OCC> {
self.bpb.cluster_size()
}

pub(crate) fn offset_from_cluster(&self, cluser: u32) -> u64 {
self.offset_from_sector(self.sector_from_cluster(cluser))
pub(crate) fn offset_from_cluster(&self, cluster: u32) -> u64 {
self.offset_from_sector(self.sector_from_cluster(cluster))
}

pub(crate) fn bytes_from_clusters(&self, clusters: u32) -> u64 {
Expand Down