#21 Limit number of ranges in a single TRIM command

Unstable (example)
closed-fixed
nobody
None
5
2015-06-14
2010-05-15
R.
No

Both the Intel X25-M as well as the OCZ Vertex2 have limits on the maximum number of ranges that can be passed in a single TRIM command. This patch adds support for A) splitting the ranges into multiple groups and running TRIM on each group, B) a new --max-ranges command option, and C) automatically provides defaults for the max-ranges for both the above mentioned drives (by default the max-ranges is set to 65535).

I'm attaching the same patch, one for version 2.5 and one for version 2.6 of wiper.sh.

Discussion

  • Nobody/Anonymous

    i'm using the patched dmcrypt version and get the following bash warning:
    line 771: [: -gt: unary operator expected

    it seems $i is null in my case (intel x25-m) and can't be compared to zero.

     
  • R.

    R. - 2010-05-19

    Patch to wiper.sh 2.5 to (optionally) limit the number of ranges passed to a single TRIM

     
  • R.

    R. - 2010-05-19

    Patch to wiper.sh 2.6 to (optionally) limit the number of ranges passed to a single TRIM

     
  • R.

    R. - 2010-05-19

    Thanks for the report - I've attached new patches (it wasn't handling the case where there are no ranges to trim).

     
  • Mark Lord

    Mark Lord - 2015-06-14

    Fixed in hdparm itself, ages ago now.

     
  • Mark Lord

    Mark Lord - 2015-06-14
    • status: open --> closed-fixed
    • Group: --> Unstable (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks