mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
ZTS: change $(cat) to $(<) for speedup
It's better to use ksh/bash built in methods, rather than spawn new processes every time. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #8071
This commit is contained in:
committed by
Brian Behlendorf
parent
9553c533a6
commit
58aeb87a8f
@@ -416,7 +416,7 @@ function get_system_config
|
||||
then
|
||||
printf ",\n" >>$config
|
||||
fi
|
||||
printf " \"$tunable\": \"$(cat $zfs_tunables/$tunable)\"" \
|
||||
printf " \"$tunable\": \"$(<$zfs_tunables/$tunable)\"" \
|
||||
>>$config
|
||||
done
|
||||
printf "\n }\n" >>$config
|
||||
|
||||
Reference in New Issue
Block a user