mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Add tunables for channel programs
This patch adds tunables for modifying the maximum memory limit and maximum instruction limit that can be specified when running a channel program. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov Reviewed-by: Sara Hartse <sara.hartse@delphix.com> Signed-off-by: John Gallagher <john.gallagher@delphix.com> External-issue: LX-1085 Closes #7618
This commit is contained in:
committed by
Brian Behlendorf
parent
7b98f0d91f
commit
917f475fba
@@ -61,12 +61,12 @@ log_mustnot_checkerror_program "Memory limit exhausted" -m 1 $TESTPOOL - <<-EOF
|
||||
return s
|
||||
EOF
|
||||
|
||||
log_mustnot_checkerror_program "Invalid memory limit" \
|
||||
-m 1000000000000 $TESTPOOL - <<-EOF
|
||||
log_mustnot_checkerror_program "Invalid instruction or memory limit" \
|
||||
-m 200000000 $TESTPOOL - <<-EOF
|
||||
return 1;
|
||||
EOF
|
||||
|
||||
log_mustnot_checkerror_program "Invalid memory limit" \
|
||||
log_mustnot_checkerror_program "Return value too large" \
|
||||
-m 9223372036854775808 $TESTPOOL - <<-EOF
|
||||
return 1;
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user