search for: expected_b

Displaying 2 results from an estimated 2 matches for "expected_b".

Did you mean: expected_
2020 Feb 10
1
[PATCH] lib: allow to specify physical/logical block size for disks
...the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Test blocksize parameter of add-drive command + +set -e + +$TEST_FUNCTIONS +skip_if_skipped + +# Test valid values +for expected_bs in 0 512 4096; do + actual_bs=$(guestfish --ro add /dev/null blocksize:${expected_bs} : run : blockdev-getss /dev/sda) + if [ ${expected_bs} -eq 0 ]; then + expected_bs=512 + fi + + if [ "${actual_bs}" != "${expected_bs}" ]; then + echo "$0: error...
2020 Feb 11
2
[PATCH v2] lib: add support for disks with 4096 bytes sector size
...the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# Test blocksize parameter of add-drive command + +set -e + +$TEST_FUNCTIONS +skip_if_skipped + +# Test valid values +for expected_bs in 512 4096; do + actual_bs=$(guestfish --ro add /dev/null blocksize:${expected_bs} : run : blockdev-getss /dev/sda) + if [ "${actual_bs}" != "${expected_bs}" ]; then + echo "$0: error: actual blocksize doesn't match expected: ${actual_bs} != ${expected_bs...