Skip to content

Instantly share code, notes, and snippets.

@aw
Created February 10, 2017 12:56
Show Gist options
  • Select an option

  • Save aw/3c8576084301effb253db0d31c9b9831 to your computer and use it in GitHub Desktop.

Select an option

Save aw/3c8576084301effb253db0d31c9b9831 to your computer and use it in GitHub Desktop.
Suppress WRITE SAME messages
# 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