[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] Zero Cluster Dedup, Offline dedup, qemu-img ext
From: |
Shahar Frank |
Subject: |
Re: [Qemu-devel] [RFC] Zero Cluster Dedup, Offline dedup, qemu-img extentions |
Date: |
Mon, 6 Oct 2008 10:38:17 -0700 |
Adding the checkzopt script as a patch.
Signed-off-by: Shahar Frank <address@hidden>
--- checkzopt.sh 2008-09-25 13:10:36.000000000 +0300
+++ /dev/null 2007-09-21 21:12:45.000000000 +0200
@@ -1,92 +0,0 @@
-#!/bin/bash
-
-if [ -z "$1" -o -z "$2" -o ! -r "$1" -o ! -e "$2" ]; then
- echo "Usage: `basename $0` <file> <image>"
- exit 1
-fi
-
-f=$1
-i=$2
-
-function check(){
- sync
- du -a $f
- ls -l $f
- ./qemu-img map $f
- ./qemu-img check $f || exit 1
-}
-
-function title(){
- echo ""
- echo "#### " $*
-}
-
-function echodo() {
- echo "$*"
- eval "$*"
-}
-
-title "initial check"
-check
-
-title "normal two clusters"
-echodo dd bs=4k count=2 seek=0 if=/boot/vmlinuz of=$i
-check
-
-title "first zero"
-echodo dd bs=4k count=1 seek=2 if=/dev/zero of=$i
-check
-
-title "second zero"
-echodo dd bs=4k count=1 seek=3 if=/dev/zero of=$i
-check
-
-title "non zero"
-echodo dd bs=4k count=2 seek=4 if=/boot/vmlinuz of=$i
-check
-
-title "zero sequence"
-echodo dd bs=4k count=5 seek=5 if=/dev/zero of=$i
-check
-
-title "two zero -> non zero"
-echodo dd bs=4k count=2 seek=7 if=/boot/vmlinuz of=$i
-check
-
-title "restore to zero"
-echodo dd bs=4k count=2 seek=7 if=/dev/zero of=$i
-check
-
-title "partial write1"
-echodo dd bs=2k count=1 seek=15 if=/dev/zero of=$i
-check
-
-title "restore to zero 2"
-echodo dd bs=4k count=1 seek=7 if=/dev/zero of=$i
-#echodo dd bs=4k count=2 seek=7 if=/dev/zero of=$i
-check
-
-title "rewrite full to zero"
-echodo dd bs=4k count=2 seek=0 if=/dev/zero of=$i
-check
-
-title "rewrite normal"
-echodo dd bs=4k count=2 seek=2 if=/boot/vmlinuz of=$i
-check
-
-title "create long data section"
-echodo dd bs=8k count=10 seek=1 if=/boot/vmlinuz of=$i
-check
-
-title "rewrite zero two clusters at a time"
-echodo dd bs=8k count=1 seek=1 if=/dev/zero of=$i
-check
-
-title "rewrite zero three clusters at a time"
-echodo dd bs=12k count=1 seek=1 if=/dev/zero of=$i
-check
-
-title "rewrite zero four clusters at a time"
-echodo dd bs=16k count=1 seek=1 if=/dev/zero of=$i
-check
-
checkzopt.patch
Description: checkzopt.patch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [RFC] Zero Cluster Dedup, Offline dedup, qemu-img extentions,
Shahar Frank <=