code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is...
Shell
#!/bin/bash # # Make sure qemu-img can create 5TB images # # Based on a testcase from Chris Wright, # https://bugzilla.redhat.com/show_bug.cgi?id=491943 # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is...
Shell
#!/bin/bash # # Test that sub-cluster allocating writes zero the rest of the cluster # # Copyright (C) 2010 IBM, Corp. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the L...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is dist...
Shell
#!/bin/bash # # Merge backing file into test image when converting the image # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licens...
Shell
#!/bin/bash # # Nolan II qcow2 corruption - wrong used cluster # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at yo...
Shell
#!/bin/bash # # Test command line configuration of block devices and driver-specific options # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version...
Shell
#!/bin/bash # # qcow2 pattern test, empty and compressed image - 4k cluster patterns # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
Shell
#!/bin/sh export QEMU_PROG="$(pwd)/x86_64-softmmu/qemu-system-x86_64" export QEMU_IMG_PROG="$(pwd)/qemu-img" export QEMU_IO_PROG="$(pwd)/qemu-io" if [ ! -x $QEMU_PROG ]; then echo "'make check-block' requires qemu-system-x86_64" exit 1 fi cd $SRC_PATH/tests/qemu-iotests ret=0 ./check -T -nocache -raw || ret...
Shell
#!/bin/sh # We don't know which of the system emulator binaries there is (or if there is # any at all), so the 'quick' group doesn't contain any tests that require # running qemu proper. Assign a fake binary name so that qemu-iotests doesn't # complain about the missing binary. export QEMU_PROG="this_should_be_unused"...
Shell
#! /bin/sh srcdir=`dirname $0` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir autoreconf -v --install || exit 1 cd $ORIGDIR || exit $? $srcdir/configure "$@"
Shell
#!/bin/bash ######################################################## # X-TIER Start Script # # This script will: # 1) compile KVM and QEMU # 2) load the KVM modules # 3) copy the modules to the specified folder # 4) execute the specified VM # #######################...
Shell
#!/bin/bash ######################################################## # Simple Configuration Script for X-TIER ######################################################## #==================================================== # Configuration Commands # Change these as you see fit. #======================...
Shell
#!/bin/bash -e usage() { echo "usage: $0 [--upload] [--formal] commit [name]" exit 1 } [[ -f ~/.kvmreleaserc ]] && . ~/.kvmreleaserc upload= formal= releasedir=~/sf-release [[ -z "$TMP" ]] && TMP="/tmp" tmpdir="$TMP/kvm-kmod-make-release.$$" while [[ "$1" = -* ]]; do opt="$1" shift case "$opt" i...
Shell
#!/bin/bash -e usage() { echo "usage: $0 [--upload] [--formal] commit [name]" exit 1 } [[ -f ~/.kvmreleaserc ]] && . ~/.kvmreleaserc upload= formal= [[ -z "$TMP" ]] && TMP="/tmp" tmpdir="$TMP/kvm-kmod-make-release.$$" while [[ "$1" = -* ]]; do opt="$1" shift case "$opt" in --upload) upload...
Shell
#!/bin/bash # # Generate a syslinux floppy that loads a iPXE image # # gensdsk foo.sdsk foo.lkrn # # the floppy image is the first argument # followed by list of .lkrn images # case $# in 0|1) echo Usage: $0 foo.sdsk foo.lkrn ... exit 1 ;; esac case "`mtools -V`" in Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[...
Shell
#!/bin/bash # # Generate a isolinux ISO boot image # # geniso foo.iso foo.lkrn # # the ISO image is the first argument so that a list of .lkrn images # to include can be specified # case $# in 0|1) echo Usage: $0 foo.iso foo.lkrn ... exit 1 ;; esac # This should be the default location of the isolinux.bin file isol...
Shell
#!/bin/bash # # Generate a legacy floppy emulation ISO boot image # # genliso foo.liso foo.lkrn bar.lkrn ... # # The .liso image filename is the first argument followed by # a list of .lkrn images include in .liso image case $# in 0|1) echo Usage: $0 foo.liso foo.lkrn ... exit 1 ;; esac case "`mtools -V`" in Mt...
Shell
/* -*- sh -*- */ /* * Linker script for x86_64 Linux images * */ OUTPUT_FORMAT ( "elf64-x86-64", "elf64-x86-64", "elf64-x86-64" ) OUTPUT_ARCH ( i386:x86-64 ) SECTIONS { _max_align = 32; . = 0x400000; /* * The text section * */ . = ALIGN ( _max_align ); .text : { _text = .; *(.text) *(.text.*) ...
Shell
/* -*- sh -*- */ /* * Linker script for EFI images * */ SECTIONS { /* The file starts at a virtual address of zero, and sections are * contiguous. Each section is aligned to at least _max_align, * which defaults to 32. Load addresses are equal to virtual * addresses. */ _max_align =...
Shell
/* -*- sh -*- */ /* * Linker script for i386 images * */ OUTPUT_FORMAT ( "elf32-i386", "elf32-i386", "elf32-i386" ) OUTPUT_ARCH ( i386 ) SECTIONS { /* All sections in the resulting file have consecutive load * addresses, but may have individual link addresses depending on * the memory model being u...
Shell
/* -*- sh -*- */ /* * Linker script for i386 Linux images * */ OUTPUT_FORMAT ( "elf32-i386", "elf32-i386", "elf32-i386" ) OUTPUT_ARCH ( i386 ) SECTIONS { _max_align = 32; . = 0x08048000; /* * The text section * */ . = ALIGN ( _max_align ); .text : { _text = .; *(.text) *(.text.*) _etext = .;...
Shell
#!/bin/sh set -e imgloop= tmpfile= tmploop= dmname= cowlink= function cleanup () { set +e [ -n "$cowlink" ] && rm $cowlink [ -n "$dmname" ] && dmsetup remove $dmname [ -n "$tmploop" ] && losetup -d $tmploop [ -n "$tmpfile" ] && rm $tmpfile [ -n "$imgloop" ] && losetup -d $imgloop } trap clea...
Shell
#!/bin/bash awk \ 'BEGIN { }\ /^\.text/,/DATA_SEG_DEFS_HERE/ { print }\ END { }'\ $1 > temp.awk.1 awk \ 'BEGIN { i = 0; last = "hello" }\ /BLOCK_STRINGS_BEGIN/,/^\.bss/ { if ( i > 1 ) { print last } last = $0; i = i + 1 }\ END { }'\ $1 > temp.awk.2 awk \ 'BEGIN { }\ /DATA_SEG_DEFS_HERE/,/BLOCK_ST...
Shell
#!/bin/sh # Script to generate a C file with version information. OUTFILE="$1" VAR16MODE="$2" # Extract version info if [ -d .git ]; then VERSION="`git describe --tags --long --dirty`" elif [ -f .version ]; then VERSION="`cat .version`" else VERSION="?" fi VERSION="${VERSION}-`date +"%Y%m%d_%H%M%S"`-`hostn...
Shell
#!/bin/sh # Check ncurses compatibility # What library to link ldflags() { for ext in so a dylib ; do for lib in ncursesw ncurses curses ; do $cc -print-file-name=lib${lib}.${ext} | grep -q / if [ $? -eq 0 ]; then echo "-l${lib}" exit fi done done exit 1 } # Where is ncurses.h? ccflags() { if...
Shell
#!/bin/sh # Needed for systems without gettext $* -xc -o /dev/null - > /dev/null 2>&1 << EOF #include <libintl.h> int main() { gettext(""); return 0; } EOF if [ ! "$?" -eq "0" ]; then echo -DKBUILD_NO_NLS; fi
Shell
#!/bin/sh # Script to test if the build works properly. # Test IASL is installed. $IASL -h > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "The SeaBIOS project requires the 'iasl' package be installed." >&2 echo "Many Linux distributions have this package." >&2 echo "Try: sudo yum install iasl" >&2 echo "O...
Shell
# ***************************************************************************** # * Copyright (c) 2004, 2008 IBM Corporation # * All rights reserved. # * This program and the accompanying materials # * are made available under the terms of the BSD License # * which accompanies this distribution, and is available at # *...
Shell
# ***************************************************************************** # * Copyright (c) 2004, 2008 IBM Corporation # * All rights reserved. # * This program and the accompanying materials # * are made available under the terms of the BSD License # * which accompanies this distribution, and is available at # *...
Shell
#!/bin/sh config="$1" make -C seabios clean distclean cp "$config" seabios/.config make -C seabios olddefconfig
Shell
#!/bin/sh PREF="." for x in 0 1 2 3 4 5 6 7 ; do test -f $PREF/config/configure.in && break PREF="../$PREF" done ROOT=$( echo $(pwd) | sed "s,\(//*[^/][^/]*\)\{$x\}/*\$,," ) RELNAME=$( echo $(pwd) | sed "s,^$ROOT/*,,g" ) echo $RELNAME
Shell
#!/bin/sh # # MOLPATH is needed if you want to build openbios-mol.elf # MOLPATH=$HOME/mol-0.9.71 if [ x"$1" = x -o "$1" = "-help" ]; then printf "Usage:\n $0 [arch-config]...\n" printf "arch-config values supported for native or cross compiled builds:\n" printf " amd64, ppc, sparc32, sparc64, x86\n\n" printf...
Shell
#! /bin/bash # This script uses the bash <(...) extension. # If you want to change this to work with a generic /bin/sh, make sure # you fix that. DTC=dtc source_and_sort () { DT="$1" if [ -d "$DT" ]; then IFORMAT=fs elif [ -f "$DT" ]; then case "$DT" in *.dts) IFORMAT=dts ;; *.dtb) IFO...
Shell
#!/bin/sh # Print additional version information for non-release trees. usage() { echo "Usage: $0 [srctree]" >&2 exit 1 } cd "${1:-.}" || usage # Check for git and a git repo. if head=`git rev-parse --verify HEAD 2>/dev/null`; then # Do we have an untagged version? if git name-rev --tags HEAD | grep -E '^HEAD[[:...
Shell
#! /bin/sh . ./tests.sh for x; do shift if [ "$x" = "--" ]; then break; fi CHECKS="$CHECKS $x" done LOG="tmp.log.$$" rm -f $TMPFILE $LOG verbose_run_log "$LOG" $VALGRIND "$DTC" -o /dev/null "$@" ret="$?" if [ "$ret" -gt 127 ]; then signame=$(kill -l $[ret - 128]) FAIL "Killed by SIG$signa...
Shell
# Common functions for shell testcases PASS () { echo "PASS" exit 0 } FAIL () { echo "FAIL" "$@" exit 2 } DTC=../dtc verbose_run () { if [ -z "$QUIET_TEST" ]; then "$@" else "$@" > /dev/null 2> /dev/null fi } verbose_run_log () { LOG="$1" shift "$@" > "$LOG" 2>&1 ret=$...
Shell
#! /bin/sh . ./tests.sh verbose_run $VALGRIND "$DTC" -o/dev/null "$@" ret="$?" if [ "$ret" -gt 127 ]; then FAIL "dtc killed by signal (ret=$ret)" elif [ "$ret" != "1" ]; then FAIL "dtc returned incorrect status $ret instead of 1" fi PASS
Shell
#! /bin/sh . ./tests.sh if [ -z "$CC" ]; then CC=gcc fi export QUIET_TEST=1 export VALGRIND= VGCODE=126 tot_tests=0 tot_pass=0 tot_fail=0 tot_config=0 tot_vg=0 tot_strange=0 base_run_test() { tot_tests=$((tot_tests + 1)) if VALGRIND="$VALGRIND" "$@"; then tot_pass=$((tot_pass + 1)) else ret="$?"...
Shell
#!/bin/sh # Flush MySQL tables to the disk before the filesystem is frozen. # At the same time, this keeps a read lock in order to avoid write accesses # from the other clients until the filesystem is thawed. MYSQL="/usr/bin/mysql" MYSQL_OPTS="-uroot" #"-prootpassword" FIFO=/var/run/mysql-flush.fifo # Check mysql is...
Shell
#!/bin/sh # This script is executed when a guest agent receives fsfreeze-freeze and # fsfreeze-thaw command, if it is specified in --fsfreeze-hook (-F) # option of qemu-ga or placed in default path (/etc/qemu/fsfreeze-hook). # When the agent receives fsfreeze-freeze request, this script is issued with # "freeze" argum...
Shell
#!/bin/sh -e # # Update Linux kernel headers QEMU requires from a specified kernel tree. # # Copyright (C) 2011 Siemens AG # # Authors: # Jan Kiszka <jan.kiszka@siemens.com> # # This work is licensed under the terms of the GNU GPL version 2. # See the COPYING file in the top-level directory. tmpdir=`mktemp -d`...
Shell
#!/bin/sh export QTEST_QEMU_BINARY=$1 shift "$@"
Shell
#!/bin/sh # enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel # load the binfmt_misc module if [ ! -d /proc/sys/fs/binfmt_misc ]; then /sbin/modprobe binfmt_misc fi if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc fi # p...
Shell
#!/bin/bash # PXE ROM build script # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in...
Shell
#!/bin/sh # This script verifies that qerror definitions and table entries are # alphabetically ordered. check_order() { errmsg=$1 shift # sort -C verifies order but does not print a message. sort -c does print a # message. These options are both in POSIX. if ! "$@" | sort -C; then echo "$errmsg" ...
Shell
#! /bin/sh # Construct a target device config file from a default, pulling in any # files from include directives. dest=$1.tmp dep=`dirname $1`-`basename $1`.d src=$2 src_dir=`dirname $src` all_includes= process_includes () { cat $1 | grep '^include' | \ while read include file ; do all_includes="$all_include...
Shell
#!/bin/sh # Convert text files to compilable C arrays. # # Copyright (C) 2007 Free Software Foundation, Inc. # # This file is part of GDB. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; eith...
Shell
#!/bin/sh # # Copyright IBM, Corp. 2012 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # # This work is licensed under the terms of the GNU GPLv2 or later. # See the COPYING file in the top-level directory. cat <<EOF <?xml version="1.0"?> <gtester> <info> <package>qemu</package> <version>0.0</version> <r...
Shell
#!/bin/bash -e # # QEMU Release Script # # Copyright IBM, Corp. 2012 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # # This work is licensed under the terms of the GNU GPLv2 or later. # See the COPYING file in the top-level directory. src="$1" version="$2" destination=qemu-${version} git clone "${src}" ${dest...
Shell
#!/bin/sh hxtoh() { flag=1 while read -r str; do case $str in HXCOMM*) ;; STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1)) ;; *) test $flag -eq 1 && printf "%s\n" "$str" ;; esac done } hxtotexi() { flag=0 ...
Shell
#!/bin/bash # # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License...
Shell
#!/bin/bash # # Make sure qemu-img rejects > 127GB images for the vpc format as the format # doesn't support this. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foun...
Shell
#!/bin/bash # # Test qemu-img operation on zero size images # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your ...
Shell
#!/bin/bash # # Make sure we can't read and write outside of the image size. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licens...
Shell
#!/bin/bash # # Test aligned and misaligned write zeroes operations. # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
Shell
#!/bin/bash # # Test qcow2 lazy refcounts # # Copyright (C) 2012 Red Hat, Inc. # Copyright IBM, Corp. 2010 # # Based on test 038. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version...
Shell
#!/bin/bash # # Make sure we can open read-only images # # Regression fixed by commit 11a1feb6552e3a4709e454faea5e3be5ca8d9e6a. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free ...
Shell
#!/bin/bash # # When using a backing file for the output image in qemu-img convert, # the backing file clusters must not copied. The data must still be # read correctly. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General ...
Shell
#!/bin/bash # # qcow2 pattern test with various cluster sizes # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you...
Shell
#!/bin/bash # # qcow2 error path testing # # Copyright (C) 2010 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later v...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is d...
Shell
#!/bin/bash # # Test concurrent cluster allocations # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) ...
Shell
#!/bin/bash # # Test that qemu-img info --backing-chain detects infinite loops # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Lice...
Shell
#!/bin/bash # # Test handling of invalid patterns arguments to qemu-io # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or ...
Shell
#!/bin/bash # # Test bdrv_load/save_vmstate using the usual patterns # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
Shell
#!/bin/bash # # Test that backing files can be smaller than the image # # Copyright (C) 2010 IBM, Corp. # # Based on 017: # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software...
Shell
#!/bin/bash # # Test simple read/write using plain bdrv_pread/bdrv_pwrite # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, ...
Shell
#!/bin/bash # # Test COW from backing files # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any late...
Shell
#!/bin/bash # # Test loading internal snapshots where the L1 table of the snapshot # is smaller than the current L1 table. # # Copyright (C) 2011 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softw...
Shell
#!/bin/bash # # Simple backing file reads # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later ...
Shell
#!/bin/bash # # Test I/O after EOF for growable images. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your opti...
Shell
#!/bin/bash ## ## qemu-img compare test ## ## ## Copyright (C) 2013 Red Hat, Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) an...
Shell
#!/bin/bash # # Test simple asynchronous read/write operations. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at y...
Shell
#!/bin/bash # # Test bdrv_write_zeroes with backing files # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
Shell
#!/bin/bash # # Check qemu-img option parsing # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any la...
Shell
#!/bin/bash # # Test qemu-img convert when image length is not a multiple of cluster size # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 ...
Shell
#!/bin/bash # # Regression test for commit b7ab0fea (which was a corruption fix, # despite the commit message claiming otherwise) # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fre...
Shell
#!/bin/bash # # Test simple read/write using plain bdrv_read/bdrv_write # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
Shell
#!/bin/bash # # Test COW from backing files with AIO # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option)...
Shell
#!/bin/bash # # Rebasing COW images # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later versio...
Shell
#!/bin/bash # # qcow2 pattern test, complex patterns including compression and snapshots # Using patterns for 4k cluster size. # # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the ...
Shell
#!/bin/bash # # Test bdrv_read/bdrv_write using BDRV_O_SNAPSHOT # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at y...
Shell
#!/bin/bash # # Nolan I qcow2 corruption - incorrectly reports free clusters # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licens...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is dist...
Shell
#!/bin/bash # # Test that AIO requests are drained before an image is closed. This used # to segfault because the request coroutine kept running even after the # BlockDriverState was freed. # # Copyright (C) 2011 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms...
Shell
#!/bin/bash # # Test that all qcow2 header extensions survive a header rewrite # # Copyright (C) 2011 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Lice...
Shell
#!/bin/bash # # Combined test to grow the refcount table and test snapshots. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licens...
Shell
#!/bin/bash # # Test for AIO allocation on the same cluster # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your ...
Shell
#!/bin/bash # # Let a few AIO requests run in parallel and have them access different L2 # tables so that the cache has a chance to get used up. # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
Shell
#!/bin/bash # # Test that qcow2 unknown autoclear feature bits are cleared # # Copyright (C) 2011 Red Hat, Inc. # Copyright IBM, Corp. 2010 # # Based on test 031. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free So...
Shell
#!/bin/bash # # Check for one possible case of qcow2 refcount corruption. # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, ...
Shell
#!/bin/bash # # Commit changes to backing file # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any l...
Shell
#!/bin/bash # # Resizing images # # Copyright (C) 2010 IBM, Corp. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # ...
Shell
#!/bin/bash # # Test qemu-img rebase with zero clusters # # Copyright (C) 2013 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your opti...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is...
Shell
#!/bin/bash # # Make sure qemu-img can create 5TB images # # Based on a testcase from Chris Wright, # https://bugzilla.redhat.com/show_bug.cgi?id=491943 # # Copyright (C) 2009 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
Shell
#!/bin/bash # # Copyright (C) 2009 Red Hat, Inc. # Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation. # # This program is...
Shell