Created
February 10, 2017 12:56
-
-
Save aw/3c8576084301effb253db0d31c9b9831 to your computer and use it in GitHub Desktop.
Suppress WRITE SAME messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Suppress WRITE SAME messages | |
| disks=`find /sys | grep max_write_same_blocks` | |
| for i in $disks; do | |
| [ -f "$i" ] && echo 0 > "$i" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment