Skip to content

Commit

Permalink
fix(trim): extend the timeout
Browse files Browse the repository at this point in the history
longhorn/longhorn-6868

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
(cherry picked from commit 224fa04)
  • Loading branch information
c3y1huang authored and derekbit committed Jul 19, 2024
1 parent 3bc35a5 commit c211b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func TrimFilesystem(volumeName string, encryptedDevice bool) error {
return err
}

_, err = nsexec.Execute(nil, lhtypes.BinaryFstrim, []string{validMountpoint}, lhtypes.ExecuteDefaultTimeout)
_, err = nsexec.Execute(nil, lhtypes.BinaryFstrim, []string{validMountpoint}, time.Hour)
if err != nil {
return errors.Wrapf(err, "cannot find volume %v mount info on host", volumeName)
}
Expand Down

0 comments on commit c211b53

Please sign in to comment.