mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
parent
16000255f8
commit
5053f96274
@ -14,6 +14,8 @@
|
||||
## See the License for the specific language governing permissions and
|
||||
## limitations under the License.
|
||||
|
||||
# This script changes protected files, and must be run as root
|
||||
|
||||
for i in $(ls -d /sys/block/*/queue/iosched 2>/dev/null); do
|
||||
iosched_dir=$(echo $i | awk '/iosched/ {print $1}')
|
||||
[ -z $iosched_dir ] && {
|
||||
@ -42,7 +44,7 @@ for i in $(ls -d /sys/block/*/queue/iosched 2>/dev/null); do
|
||||
## This is the maximum number of kilobytes
|
||||
## supported in a single data transfer at
|
||||
## block layer.
|
||||
[ -f $path/max_hw_sectors_kb ] && {
|
||||
echo "1024" > $path/max_hw_sectors_kb
|
||||
[ -f $path/max_sectors_kb ] && {
|
||||
echo "1024" > $path/max_sectors_kb || true
|
||||
}
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user