Skip to content

Commit

Permalink
fix thin_dump command
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Sergunov <anton.sergunov@flant.com>
  • Loading branch information
asergunov committed Feb 26, 2025
1 parent b21b435 commit 1d8f89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/agent/src/internal/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const (
DMSetupCmd = "/opt/deckhouse/sds/bin/dmsetup.static"
LSBLKCmd = "/opt/deckhouse/sds/bin/lsblk.dynamic"
LVMCmd = "/opt/deckhouse/sds/bin/lvm.static"
ThinDumpCmd = "thin_dump" // TODO: add static version

TypeVGConfigurationApplied = "VGConfigurationApplied"
TypeVGReady = "VGReady"
Expand Down
2 changes: 1 addition & 1 deletion images/agent/src/internal/utils/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ func ThinDumpRaw(ctx context.Context, log logger.Logger, tpool, tmeta string) (o

cmd = exec.CommandContext(ctx,
internal.NSENTERCmd,
lvmStaticExtendedArgs([]string{"thin_dump", tmeta, "-m", "-f", "xml"})...)
nsentrerExpendedArgs(internal.ThinDumpCmd, tmeta, "-m", "-f", "xml")...)

var output bytes.Buffer
cmd.Stdout = &output
Expand Down

0 comments on commit 1d8f89a

Please sign in to comment.