Skip to content

Commit

Permalink
Merge pull request #229 from diskfs/open-fs-ext4
Browse files Browse the repository at this point in the history
enable open ext4
  • Loading branch information
deitch authored Jun 16, 2024
2 parents dcfddd9 + db8f964 commit 6d4a43a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ func (d *Disk) GetFilesystem(part int) (filesystem.FileSystem, error) {
if err == nil {
return squashFS, nil
}
log.Debug("trying ext4")
ext4FS, err := ext4.Read(d.File, size, start, d.LogicalBlocksize)
if err == nil {
return ext4FS, nil
}
log.Debugf("ext4 failed: %v", err)
return nil, fmt.Errorf("unknown filesystem on partition %d", part)
}

Expand Down

0 comments on commit 6d4a43a

Please sign in to comment.