From 312cf2f0754ab22ff0f7967041d27a071756782a Mon Sep 17 00:00:00 2001 From: cheetah Date: Wed, 22 Jan 2025 11:15:42 +0100 Subject: [PATCH] isolation cmd will unpack "empty" partitions --- commands/s19-isolate-all.go | 11 +++++------ commands/s19-isolate.go | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/commands/s19-isolate-all.go b/commands/s19-isolate-all.go index be8ca86..14df73c 100644 --- a/commands/s19-isolate-all.go +++ b/commands/s19-isolate-all.go @@ -11,8 +11,7 @@ import ( ) type S19IsolateAllPartitionsCommand struct { - FileName string `long:"file" short:"f" required:"true" description:"s19 filename"` - OutputDir string `long:"out" short:"o" required:"true" description:"output dir, format:dir+mpar/bin"` + FileName string `long:"file" short:"f" required:"true" description:"s19 filename"` } func (command *S19IsolateAllPartitionsCommand) Execute(args []string) error { @@ -59,10 +58,10 @@ func (command *S19IsolateAllPartitionsCommand) Execute(args []string) error { ), ) - if fpHeader.TotalSize == 0 { - log.Warn().Msg("cannot extract a partition thats empty") - continue - } + // if fpHeader.TotalSize == 0 { + // log.Warn().Msg("cannot extract a partition thats empty") + // continue + // } // { outMBarFile, err := os.Create(path.Join("s19-dump", path.Base(command.FileName), fmt.Sprintf("part%d.mpar", index))) diff --git a/commands/s19-isolate.go b/commands/s19-isolate.go index 85c1ef5..5977b91 100644 --- a/commands/s19-isolate.go +++ b/commands/s19-isolate.go @@ -62,10 +62,10 @@ func (command *S19IsolatePartitionCommand) Execute(args []string) error { ), ) - if fpHeader.TotalSize == 0 { - log.Error().Msg("cannot extract a partition thats empty") - return nil - } + // if fpHeader.TotalSize == 0 { + // log.Error().Msg("cannot extract a partition thats empty") + // return nil + // } // { outMBarFile, err := os.Create(command.OutputFileName)