Skip to content

Commit

Permalink
utils/nvme: Add support for format to WipeDisk
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed May 10, 2024
1 parent fc1a921 commit fbc982b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nvme.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (n *Nvme) wipe(ctx context.Context, logger *logrus.Logger, device string, c
l.WithError(err).Info("failed")
}

l := logger.WithField("method", "format").WithField("setting", CryptographicErase)
l := logger.WithField("method", "format").WithField("setting", UserDataErase)
l.Info("trying wipe")
err := n.Format(ctx, device, UserDataErase)
if err == nil {
Expand Down

0 comments on commit fbc982b

Please sign in to comment.