sendfile_test.sh (d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf) | sendfile_test.sh (ea82362219ee715cfbb195b2114e73fdc8599fa5) |
---|---|
1# SPDX-License-Identifier: BSD-2-Clause 2# 3# Copyright (c) 2020 Netflix, Inc. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 110 unchanged lines hidden (view full) --- 119 atf_add_test_case io_fail_sync 120 atf_add_test_case io_fail_async 121} 122 123alloc_md() 124{ 125 local md 126 | 1# SPDX-License-Identifier: BSD-2-Clause 2# 3# Copyright (c) 2020 Netflix, Inc. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 110 unchanged lines hidden (view full) --- 119 atf_add_test_case io_fail_sync 120 atf_add_test_case io_fail_async 121} 122 123alloc_md() 124{ 125 local md 126 |
127 [ -c /dev/mdctl ] || atf_skip "no /dev/mdctl to create md devices" |
|
127 md=$(mdconfig -a -t swap -s 256M) || atf_fail "mdconfig -a failed" 128 echo ${md} >> $MD_DEVS 129 echo ${md} 130} 131 132common_body_setup() 133{ 134 us=$1 --- 33 unchanged lines hidden --- | 128 md=$(mdconfig -a -t swap -s 256M) || atf_fail "mdconfig -a failed" 129 echo ${md} >> $MD_DEVS 130 echo ${md} 131} 132 133common_body_setup() 134{ 135 us=$1 --- 33 unchanged lines hidden --- |