From patchwork Tue Aug 1 14:19:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 9874771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B4CC6038F for ; Tue, 1 Aug 2017 14:31:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89869285D9 for ; Tue, 1 Aug 2017 14:31:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D2EE286A4; Tue, 1 Aug 2017 14:31:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85BD928599 for ; Tue, 1 Aug 2017 14:31:02 +0000 (UTC) Received: from localhost ([::1]:42911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcYCL-0001aP-N9 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 01 Aug 2017 10:31:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcY1N-0000Vc-Ag for qemu-devel@nongnu.org; Tue, 01 Aug 2017 10:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcY1J-0002Vy-Ol for qemu-devel@nongnu.org; Tue, 01 Aug 2017 10:19:41 -0400 Received: from mail-he1eur01on0132.outbound.protection.outlook.com ([104.47.0.132]:46811 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcY1J-0002Tv-1w; Tue, 01 Aug 2017 10:19:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9lFWBoJNMg4I73awPGHC1xhuOL7KDC6eeLJU2hu2KHE=; b=iEHd/N9GhNSzhTAZsqssnWsP3Ux44cXe4gb7W6CcAECKuqK7EQP96d4HVgXsLUiB+QXzjh1llngY14cLxaBupQnPLZccfensmQRvkQ9UOz0Hu6IF57aOI50bUI7tAPIycHdLCbChjXL0tCFZvp0E1HC7Pqk93ivoVs+C8hu4+zc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by HE1PR0801MB1996.eurprd08.prod.outlook.com (2603:10a6:3:50::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Tue, 1 Aug 2017 14:19:33 +0000 From: Anton Nefedov To: qemu-devel@nongnu.org Date: Tue, 1 Aug 2017 17:19:07 +0300 Message-Id: <1501597152-25342-11-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501597152-25342-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1501597152-25342-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0202CA0002.eurprd02.prod.outlook.com (2603:10a6:3:8c::12) To HE1PR0801MB1996.eurprd08.prod.outlook.com (2603:10a6:3:50::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 21533ede-db25-4471-c178-08d4d8e85517 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0801MB1996; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 3:sEcIpXXZgPh6ddJMRPEtcGf26Z5pZrkb/4cYzY3jYRe+NbZRlmQrpqBVfCio30hE94JOsadwUhDwoj07mBxPhj6GSZ6KZt7IoMO2oDDz03Z3DdB/jWWSW2u/6UjjLXNiYNiNtPscAksRddBHJRN1uiO4QzlH79QBpVItB6R7lePFIhqzNWiu0wdHqus8GDNkVC8B7KPXm/08tK56QQdSxNSMxro34okJwWyZn1c3Uq9HXd9jb218xsU/G5yOkHF4QkQosSKLsNiFkyynLTKdF/axcmcgqZoLZDpXPRYNNptW7YZ03/ODoKY87XVW/MU8frJkf1jAxFty8UlFRUiHUIeKoefmHulO98QL2SnOGRF9FYIrU4tX1UR2e2jWYcirGbOYJ25aHX1sXRzrpqI/xMsbbnrI/AUNKS30ouc/rulBsm8292ta/t99Cr2rtKzhbVh4bcmPjHgELyz4W9oLsDPvaJ9oGhS1UQi0KpEJt4z9K8dQc4eB55jYbGjF27lI5vMkXUIKfojUix5qfFiy5V6PVIvimiA3iAnGZKzCGwL/nbsHPhpY/mDq1aOZADjSd6NGbtkOdttrJwnuzp5f4W0TO6Jru/weR6E2YNto27OKqG7seiOsSkCAAKGX1DeuiVzFjvTYy5TRa8poEluCmvYuygXUP+eBncLiuMLMYbyAl+6NaWU/NU9i0FNPWrHkDRPZlXS1mzD0M25cMeXk5fAWaT3jIbiZ2awc8kbXNWjQ8LqOnTJzmokL1Lnsa+85PTXQrcbKN+IZLyxbgQEBRPuzCw/KqQyyDEmb+IGL+qd2nhFDd4syjuhXJDmJYxzM X-MS-TrafficTypeDiagnostic: HE1PR0801MB1996: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 25:9jUfJf4aJAQ1mEhoQjdAPMYQ1lAuzarRtX1i4OJVnMtKkQR0Ke1orAQIRkXgb/rBon2IisqWjX7pfFO5LGldWtGbO2FkyXqrk9P4ijzxhU15MNsC2deiIKkvSHvzyoDDJM5gA57PY+nGCiSIOJtM5MmzT5fHbUWePP6EH4cTAR0qDv/MH76qZKB2B9wcK6ZfwOMMLYTLH5BIU0R8G1vGtxbs304H5l05zKk3FbKEW9KOTRbBtGQfh/B9bSYa3uZsyqNSoMHHydvvdME8612GTnvvY2+ckNeKv3+msQ6GfMzUexjNzM7sXY5hQebx0Ssnoiny17rL1DGhMqcPpNu0eDjUtJgldWczOxGsrdIROnRqe9m4bgWTv0Mi06SicGpHIW6Ooi1embIV9wBAUdSCISxoO9Sm90yE6pOt/9oPm4DobOrtMGVcjg5RaoRLrTwkUedbLQ6Z0V4TEuak8e5NqSzi/eNFyIkmlN9h5a/b3D88itXrj4Y1EHLBaPTb630zppgJnVJunA4ahrhEVbaG8+dmlD9UvW2k5psQn6evoHGCelKd4VHvoQADlug2/yfRm56F2XUmeF+53RzITFIxia0mTDWWJgYIlhcGVgqs0BIttOnFy193g3Z4ECHN3px+WEYNA5ENW8Iiwo75Y0QYvWGgSwK9b0Jq9Pe7P/9hQGUZOCxwECkqVIshrDyeMvn61iXHtTbOm8Mxgz9/Kg4r8xo7UhBFXLDlbfmZ+8eqHqVIf623s93SexhZlMDlEwzlR8OEyj55gO9aezuPQZisTU4W8u1dA0Lu8+qvmP2fCQ6BN3KYguwJMv+/rLhnxWJsH1AFXnufNJJdDnmV8E/GqFGMQSrRrCq5smSFlPcsjLp6eDmGnikjw4Q/lUaIRTt9hWUHOww/K+d0g26W6IXbZ7ZVC3f25fck8cv4neMUd6I= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 31:NRDTT6AeVIS7jyB5BqxD0b4ksCXqJWLR5s9NfXwfHXUUA14VcgTnp7mqBRCBN0aUzb+68Dsz1XXOjGdP6D6vP+wwhuiDHhKdOjPlGqBQyjjfbqKuHm0ajl3c1ywRaQ3cEn/ldb+rdUmYnvuCVJDJKBt90gO1S8BdgMV4P6NRcPajRGSbIftLsaBLAM/9Emb11Ohn/sM6d/qXq1WC3KJyeIV3y5KXFQqw/bTy0F0F2NxB31TvfPbkhDJMVEr3aEX/pJq+H5/Pc5S16AihHrMgLjo543BVUbiB+eMUhS/O/09PISJIS7NhmjmNb1k5u+bgAxM9prSOgsCXL1wx+yht3Wx078OOnkErovvFZJgQH98lQNoGVqf6STDmPWZFedqltxX974n3OmB/B22mwVEkJQCX1GP22JD7fQXq301VbZR+ALjS+JkDi8mnSUB8oBe5mXtbOhVSbYaKMvEFki5M/y5h9JjBgRDEVT1GuHiUkfRUWr+m9c9b4UvZqEkTMSS0OdsTftTSHzIukS0BaSSoFQu1+OX69Eg8/eFsUHwBSH+r6sTTaNG/ZOuZGTNFkQXpGNusWx95hZNhAxTk8k9+6RdHq1L8L+EFvljbDTs3TjmAxpWd0DE4UEgbQOu64mDQFLCiUckF9BFFXfdXXbWZAq9YrM2qc6B3AYv+dJSM1Vo= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 20:f6Dp71hr1RqmBoWAo1LePTDFhy+oIxvQ5TWxkyYLDRWnU+H/aEKs1VwJXleYuWQAdPvIJ+kNnBPPEjVIs9oRI3iri8YnumjDp138dUQ4OYeViqTDUbVNpij63+vC2bcMJHvGGoXQHfAwufjhDPubqxB+YntaQdP/UZ3nHamExnHoF6yGeuciWJ239o8SCKe4L2xhjeNPxdFLcvGAqG75Zyv4fEmjmAtPmGAGR0vCBlNQvVHcyDTa+Tgj7nxKEFotT2y6Oug5m+JVrNlHxuJCuE+yHp/GL0TL44DYH/SPU04MLg/QlJL1itJwzhC+0J32e9EDCygtfTOjwd6ZCSJABGeLw7KVUT0FnuYxEfyaFaJrAoviZAs5CnY7Q8Ar+AMUD1iL7LBVz4UNikuHEa2Ir0JP1oI7GOhD2wTJH1wuYzA= X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123555025)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0801MB1996; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0801MB1996; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0801MB1996; 4:+tmW/aYNEfCva613q+2lzX4lZBg4YEVar9D4+EQd?= =?us-ascii?Q?pgD7z2p2ImckxqeYds1pXCC8ef1ByA+n2LAapZ8D6WzhbmQEC/dDVLetetuW?= =?us-ascii?Q?IYr6erODEumnjgV7J/GJGlh1WKvffdaLJsBeTokhuCeZKoVXUuPR7ZNW8tZm?= =?us-ascii?Q?x76TUd3DuqONRWDrKWCYrsuCf558WjXoNKrwaeFkAc94aH3RWXhesof7+VOK?= =?us-ascii?Q?yizCWijqQ0VnHESm8W8gW2DloBXsxVGgj7zpTzi/Sc4a4oyTHuyyxrOTKOmK?= =?us-ascii?Q?LXxSKMGvCT5QGfdjwQvvQ7PRfKMsv5A8yaMot14JAixxbznb8EyXfuMRIDlb?= =?us-ascii?Q?vw6qIkgtyvB4Byy9Otj4nXj5fBh4vq/aeL87jm1ROX60667MrQyI8DPe5TIx?= =?us-ascii?Q?bwn3rq/MXlFLX1D5wnupWfx08YZS7RZnl7M5rAKIlCzjvrIqCDtepfK88d+v?= =?us-ascii?Q?pf1eYde/r3xadqdDFtQ1pfzsk5TLXOpskp42Q6zgE8A6y3kygbPXpOyyfR9M?= =?us-ascii?Q?Ud32jFd3fInKHrpC592vkYZrYvJsH3AcRzR9asLeYpgKIC0LDJPtCTituu1/?= =?us-ascii?Q?sdCBqc9RagpIkakHOt2TXTF+3pGcAR8Xu0SKD5lWvMUQIf5+6sgckFmarpDm?= =?us-ascii?Q?WlXgdjv0jwJmtaJzsbEqPUx64FNBqokFECsK/PPucem/yg6DsuCWO92Poj3B?= =?us-ascii?Q?iwfFbszOQC63RiFVR0bIdcGN8FNpX3zzhAXveJvHyeL27qURkEJllqxSp/gp?= =?us-ascii?Q?dDjMUzPZbARsocaUbrCh4N0IRKZnZ8H1HYlisUUG4H2UpOB2q0WAQTMDXm4P?= =?us-ascii?Q?fb1IeKkq0gGRIGNZvpxNnA/c4ro5YDGpWJ4OrX3hX8/ZjGw+X3uZ4z/rpZac?= =?us-ascii?Q?1ZHUeXbQUJfhM4ThDpxomRmXAOrTld+j5zvrFJG0laDiOD5PiDgTweAOK9S/?= =?us-ascii?Q?kMAHYY1DpfQZvfPvvOS9Pprpc1zoCl2wEtYTcKSJ8ngm6nkM4KMzJfx/9KQs?= =?us-ascii?Q?4rRJCzqsvOBFD7Z7u7+hM9mBoNwfIJyU6OQhUyQIEADFcNCTQb6UNkoOv4fz?= =?us-ascii?Q?0dFzjmoXBIQPnWYPa07gYoCidZX3OnPXbGmeSqe7XauHj1SLdwIYZkmBsQ3+?= =?us-ascii?Q?T8LA0SNY9vwVxlbKkyijwZcvRN7Cwlud?= X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(189002)(199003)(81166006)(53416004)(42186005)(7350300001)(2351001)(106356001)(2361001)(105586002)(33646002)(25786009)(50466002)(7736002)(38730400002)(189998001)(53946003)(305945005)(97736004)(48376002)(6512007)(107886003)(53936002)(54906002)(575784001)(86362001)(5003940100001)(110136004)(66066001)(6666003)(6486002)(2950100002)(6916009)(50986999)(76176999)(4326008)(68736007)(478600001)(101416001)(8676002)(6506006)(81156014)(2906002)(36756003)(5660300001)(3846002)(6116002)(50226002)(47776003)(69596002)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1996; H:xantnef-ws.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0801MB1996; 23:0cs9OOwG8sEa3YaGdUNhdqfEkFBDaeI5DRuvVvh?= =?us-ascii?Q?hc0j4KNUQOhPMjKHxAreRcc5leaCSnWMmO8Hbve8ajDXxCcMar7FMCjSpt0U?= =?us-ascii?Q?uNRSLD4PV27UqOH/NvhMilKc/MNq2ffFUasx0OpHnmyG0N+icVCDrbWI6nEU?= =?us-ascii?Q?TuLqTGUooO3WNFpjYK7Agbea2zqe5VKrkZ48TYsquMJZCmlhI6tzmneinVeN?= =?us-ascii?Q?/FFlrF1lGS4arA8G+5HG2NIGDRYV/3z0zI27LG9Go2DEncnBsN5+Xsk5g1qj?= =?us-ascii?Q?hDYIw3ogCh7qKiNuyZK52bw7bw6LRyTn5uMa4eS/hcJ86J90Ih2TDLdwExdj?= =?us-ascii?Q?kVyUeRGQtAYL0EwMjVDbpJ0xUPwzHZjlt0fNcMuqWIclo8U7TkmFIryboUiq?= =?us-ascii?Q?GJna1qMCmOb+7jpNtLLAvXbD9bEifOHALUHFeWcE/lobHlmgL6Y1Caq4jM55?= =?us-ascii?Q?OvslQ+ih/R5MsswpoQeHHwHlfuhL7j4a4ZhEfGuKqRD6c1ShqEu7sxxo3p46?= =?us-ascii?Q?aLtFVZNe2SUz+dVCgn10p8M2I+r2QQy0f7rT/Hp2QGY+tjQSVlBWGGC4t8D/?= =?us-ascii?Q?ws0xqwMkw+1tyyrC/O7Buy6dxj6wFnQ6uB+D3xNugglSDQCsPD9yXgdnUkmU?= =?us-ascii?Q?7XRgE6rys6l4SB/aneuZxmisIHjiC3BL0L0NjCjnJnlDJdgtGiN5QujI77zL?= =?us-ascii?Q?uhQhFcyWEXjpIL1octP1D8jWWMI6/llisq+JtD+PTnuRkFGmPU6h+Umr21VN?= =?us-ascii?Q?ieSC8gykyL/4zOkgSNN8jv93fTO9CpvvoHd+u6VUteCDGVAi2d4pgUsM6sr6?= =?us-ascii?Q?E0981IIXIkjNsKTx6KA2ttQwfo0cuDr2vRQAZ0lcNmGaqsYDxGKuUczMw87q?= =?us-ascii?Q?i+vI2jlEhrjc/3ko6LZafpdCynaIQGEZenWGVI6jiX/0MrO6uKB8heapiWF7?= =?us-ascii?Q?3S64rKOb1QDbITehnvPVf9vZ7M6OxtRdZaddfD50FjaEv3ctng5oLExtb6bK?= =?us-ascii?Q?F/OdSk5Drkc3vfelvSfsNI+q8Nqh1i8kWTXXn9gLCQaN/T1HMuwV8fRCjiKp?= =?us-ascii?Q?9DuNqF3SlUzBJv2SE7nh2qZQJYMwQWB8BTSCzGrjY1PXd0rarWNhGYf5pUuC?= =?us-ascii?Q?d84UZeYvyAhmHpbPW6XeByyzfl4ySk3++qjeROer9re+2ryTV4PrqLvdxDNv?= =?us-ascii?Q?+nHNxDsSQqBGw4kqG9Yxz2SqhdWtpxSOL6+/rcFJj92gjxmAVxasezTGB+x7?= =?us-ascii?Q?57asITK8811jrn/bXAv/CCWxJvHKejkK9IIl8IowhtzMhOtT8Fji6RFtGzuh?= =?us-ascii?Q?kriH82skmT1NJwkwB0lyUDa/fCuqvYgXadpvukhTXtATrUydxzf67TQdM8dS?= =?us-ascii?Q?aQWA9FKFHmzxjmZ73g12o632ye3hpDUgciwDCc4ihn3wejl0/?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0801MB1996; 6:alfq3+1c67/km+dG/hGK9KfUrRfEgmr/ssdUcWgX?= =?us-ascii?Q?ojsOOSrjm2JDpAefkfI0hIIn22vB7+XMjfDk/Ktib6jXZTosbdKSBlQowYt6?= =?us-ascii?Q?HbRrWigVeC88u31o+/eM2BfIwda1rCNNdHqjfuAxtjCPUtczUhnqKsAUu0v0?= =?us-ascii?Q?e2lPNr3pMmiF7E2J50/4gwkVTeOD71MM8pJQJJJZ1e9ZKXy59mPxhf0EPzpn?= =?us-ascii?Q?djXb0Tmw5G3DxoipFBjiu9Gkj/WkwXiP/wP2I845j9prZtbmM44K/7jH3Pz5?= =?us-ascii?Q?x3Y/8LU9/+XzZnU22I+ZG6nN+q+9WhQOvPOtedXJPPhd2gVeqZkC8T9OjRi7?= =?us-ascii?Q?iItu8x4BoFGTuvt5GfJt67k261X2OzoqsBnzHzhPxzPB7znV5OpiXiJf35fT?= =?us-ascii?Q?QUWGX0+qyTjbTMt+EBM1GfYupN0TgaO9TSLC1cfJsmncsHI11roMKe7ZWeAg?= =?us-ascii?Q?VPl+SLrqfKA6dsdCThBGYOoVdl2pxpXGAf+yRAFRcWYMBlF1JjY3qqjlj0+D?= =?us-ascii?Q?fk5xtPNc2XH9sfjAbrnNqCk0HgGYXLPTsLtk95rO1CapsytkOUJ85bCsRl1b?= =?us-ascii?Q?IQp2T4XH6sb+R2Mb2gWJoXSX9xAdUkCbBDepgaIQZAExFND6OTXjqjEipkZo?= =?us-ascii?Q?DXm3VQ++jouqgYqnw76D0B5QnRsYNHLhC0B0Ng4AD9LE2fX3b1AyqPaPK9q3?= =?us-ascii?Q?/TSJ8yD9N83PwYX3KYbDS0mdtbMcBv1g+eFklXyY3TUixuR7uLJctsCH8yTN?= =?us-ascii?Q?u8OweaH46laucqFjCmNMJk6XL40Hh3o37Lby77psnE3cbtNyCaDLnWl5HfFE?= =?us-ascii?Q?QGs/WfPUl9pq2x8qtFWAwjuxsFCGAV4DcHsYloWmj3W2WQsgbYIPKuUJzUIJ?= =?us-ascii?Q?P637SvaLGAXsiaK6ZELrmX3VrPMrXcmGGxQid9gaqk53vETdsDG4pbuFNwUs?= =?us-ascii?Q?Ew2+DoE9zOj8TO6PnXUwodrZbq+AcCD+WNq3AHpcCiFMuu2qXmUuRMZhCJAp?= =?us-ascii?Q?NPc=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 5:INyv8O82FdXCY/SKjobS7sUrSfFgOF90K/9QOkJZwfzjWi37aPdLevfyem6OMofy4n5xli83YQKsMGRmHBRpzd5iHXRS7znOSz+R4odpN0w3h03hKGAGcvW56CgcA2wA1qpIkmhL8q+tC7IUKWO+VpYv3H4RgibJvKLgtf8ulOtO6BNm/FBUARWuz4gyWpfzzTaiHY6EHxVSDfVs9dwL/kIsqray6O1vo4qZkGUAHYIF3jGjIv/iVO1OX2Z8+feFv8kexhEetDh3V2XPyddAPwwoQlkZFFANYk1JJY4MPH5DTJpsLmvMlK1EYxoKRBK0Zdk93HTWY9oqSBg0kHwk7msWLHoz2YeR3K1lAPFlgbGw87/R9Wyrl6gecrJNYyKMxehVAPrLITZKBX4ElvVPrrGPxIKS+jGos0PpajuJIBYcv3aWT0JLeiQ1w7AziRc36S2v8X4yxhkqg6yuOUJTRONSAUVu+8z0OYhrlMFmX4XMPtxHe5wPeMDvHkUtF1ft; 24:OsPpL2hVeeMHOJTXj7UodEWGDlzNpgVTkwt5QfZyFpcqWjVDg4F3KMVIcesd/DDYF8Vvo9Op4vSlHJ/VSJ1MMXZNPA0gNNJb23EV1cBFz5c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 7:2CkntXowJHKGC3NLWpLgIK4hDT2y7T46AX8GRiChnhpQYyXbR0UJq13zgbZOpBYpFI2eFQilZ87BRTfJkRUY5JLMiV0CyNfTwk2UEwRulml+aIfWBzkijgTNZ23Uo7nBy7EPosQ5AwsAjEGA0QhYApeWVzpHwPxKVFL+DyNLbel1urATdlx4JeWVYo2waTnuAxC3/dGwldfITYUCnu5Anhx549FHI0YrbbcFWYRZI23/Zq5NtDeRMnJQch8SLxQLWhMdkWbjlBdR+L4aWhJ6vzbXcw3t24hOjtK6qhmvKueqvLg21rU5yRtxecYP0VTD0LQLK9Ruu3KF10VHnjG9vy1E0CnpjgMTeAhQOZ658aRV1pksQLjkVUMKhBvV1iA960L5gCf2pQp1xrLe6NEicNi7G/jWxw9grxU2vLi8D92i43iTjEWVkyqiCTwVpaKNs2ufZQAu91xBQ5miJxqBvTy4Kc4cpIhjXqsX/k3WmJJMdCICA5A0ugy89LNBvpq9pcDGGXlYvf5mQa0gtnuUR5XCSwGeE/bMceJjmhpVv40T9aJcO3YIrhieMIIH946eMpt6ndOIPfaFSs7GkMFwCs62xaNITC/ajPrijDmSGGiWND8zHHtCfzYmd3TAYesXeSyqdWyeKxPVDzheC4AFH6c/88PjEO0nMRyPexKYP3NBvTwjodzSO+RbO6+O8YcyUTXeHG4/8BKbBnhcwOqXvXzZ27ycCxq/XuzfJA2oM5g38hkdRlD91K90El+ACCwXW1Y4NjZmoZEAtDftQmqUq+wgyEHnXgoe8WKqnjCfC7s= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1996; 20:z2dtEIvqwPzKn8EAmxpoTmxxHViSWpVlDnA1aHjFNuMlh/cwdfAVAawyDOQM5FZFRvgvw6/cGOSiFOfcW7mVX78YPNJcZNHh3YjO4Ekn86mvs7FgwC9PPWIT4TJ8pA1rPtcmt++f5wZ2krJfLPfsHApzvmCXUSVHDUHAvjqVAGc= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2017 14:19:33.0527 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1996 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.0.132 Subject: [Qemu-devel] [PATCH v4 10/15] qcow2: check space leak at the end of the image X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, Anton Nefedov , den@virtuozzo.com, qemu-block@nongnu.org, Pavel Butsykin , mreitz@redhat.com, "Denis V . Lunev" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Pavel Butsykin Preallocated space in the image may remain unused; the patch adds the functionality to identify and fix it in the qcow2_check to avoid wasting storage space on the host. Signed-off-by: Pavel Butsykin Signed-off-by: Denis V. Lunev Signed-off-by: Anton Nefedov --- block/qcow2.c | 32 ++++++++++++ tests/qemu-iotests/026.out | 104 ++++++++++++++++++++++++++++--------- tests/qemu-iotests/026.out.nocache | 104 ++++++++++++++++++++++++++++--------- tests/qemu-iotests/029.out | 5 +- tests/qemu-iotests/060.out | 10 +++- tests/qemu-iotests/061.out | 5 +- tests/qemu-iotests/066.out | 5 +- tests/qemu-iotests/098.out | 7 ++- tests/qemu-iotests/108.out | 5 +- tests/qemu-iotests/112.out | 5 +- 10 files changed, 226 insertions(+), 56 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 4696106..f522ba9 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -530,6 +530,33 @@ int qcow2_mark_consistent(BlockDriverState *bs) return 0; } +static int qcow2_check_extra_preallocation(BlockDriverState *bs, + BdrvCheckResult *res, BdrvCheckMode fix) +{ + BDRVQcow2State *s = bs->opaque; + uint64_t img_size = bdrv_getlength(bs->file->bs); + + if (res->image_end_offset < img_size) { + uint64_t count = + DIV_ROUND_UP(img_size - res->image_end_offset, s->cluster_size); + fprintf(stderr, "%s space leaked at the end of the image %jd\n", + fix & BDRV_FIX_LEAKS ? "Repairing" : "ERROR", + img_size - res->image_end_offset); + res->leaks += count; + if (fix & BDRV_FIX_LEAKS) { + int ret = bdrv_truncate(bs->file, res->image_end_offset, + PREALLOC_MODE_OFF, NULL); + if (ret < 0) { + res->check_errors++; + return ret; + } + res->leaks_fixed += count; + } + } + + return 0; +} + static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result, BdrvCheckMode fix) { @@ -538,6 +565,11 @@ static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result, return ret; } + ret = qcow2_check_extra_preallocation(bs, result, fix); + if (ret < 0) { + return ret; + } + if (fix && result->check_errors == 0 && result->corruptions == 0) { ret = qcow2_mark_clean(bs); if (ret < 0) { diff --git a/tests/qemu-iotests/026.out b/tests/qemu-iotests/026.out index 86a50a2..bc572dc 100644 --- a/tests/qemu-iotests/026.out +++ b/tests/qemu-iotests/026.out @@ -5,7 +5,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 5; imm: off; once: on; write write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 5; imm: off; once: on; write -b @@ -33,7 +36,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 28; imm: off; once: on; write -b @@ -181,7 +187,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 5; imm: off; once: on; write write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 5; imm: off; once: on; write -b @@ -207,7 +216,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 28; imm: off; once: on; write -b @@ -468,20 +480,27 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 394240 + +770 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 5120 -55 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -489,19 +508,26 @@ Event: refblock_alloc_hookup; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 265728 -251 leaked clusters were found on the image. +770 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 394240 + +770 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: off; write @@ -520,20 +546,27 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 27648 -11 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -541,27 +574,35 @@ Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 21504 -23 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 131584 -11 leaked clusters were found on the image. +268 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -569,27 +610,35 @@ Event: refblock_alloc_write_table; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 131584 -23 leaked clusters were found on the image. +280 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 132608 -11 leaked clusters were found on the image. +270 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -597,8 +646,9 @@ Event: refblock_alloc_switch_table; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 132608 -23 leaked clusters were found on the image. +282 leaked clusters were found on the image. This means waste of disk space, but no harm to data. === L1 growth tests === @@ -651,7 +701,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 5; imm: off; once: on write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 98304 + +96 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 5; imm: off; once: off @@ -665,7 +718,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 28; imm: off; once: on write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 98304 + +96 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 28; imm: off; once: off diff --git a/tests/qemu-iotests/026.out.nocache b/tests/qemu-iotests/026.out.nocache index ea2e166..167fb78 100644 --- a/tests/qemu-iotests/026.out.nocache +++ b/tests/qemu-iotests/026.out.nocache @@ -5,7 +5,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 5; imm: off; once: on; write write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 5; imm: off; once: on; write -b @@ -33,7 +36,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_update; errno: 28; imm: off; once: on; write -b @@ -189,7 +195,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 5; imm: off; once: on; write write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 5; imm: off; once: on; write -b @@ -215,7 +224,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 1024 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l2_alloc_write; errno: 28; imm: off; once: on; write -b @@ -476,20 +488,27 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 394240 + +770 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_hookup; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 5120 -55 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -497,19 +516,26 @@ Event: refblock_alloc_hookup; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 265728 -251 leaked clusters were found on the image. +770 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 394240 + +770 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write; errno: 28; imm: off; once: off; write @@ -528,20 +554,27 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 27648 -11 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -549,27 +582,35 @@ Event: refblock_alloc_write_blocks; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 21504 -23 leaked clusters were found on the image. +65 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_write_table; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 131584 -11 leaked clusters were found on the image. +268 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -577,27 +618,35 @@ Event: refblock_alloc_write_table; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 131584 -23 leaked clusters were found on the image. +280 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: on; write write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: on; write -b write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 33280 + +65 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: refblock_alloc_switch_table; errno: 28; imm: off; once: off; write Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 132608 -11 leaked clusters were found on the image. +270 leaked clusters were found on the image. This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 @@ -605,8 +654,9 @@ Event: refblock_alloc_switch_table; errno: 28; imm: off; once: off; write -b Failed to flush the L2 table cache: No space left on device Failed to flush the refcount block cache: No space left on device write failed: No space left on device +ERROR space leaked at the end of the image 132608 -23 leaked clusters were found on the image. +282 leaked clusters were found on the image. This means waste of disk space, but no harm to data. === L1 growth tests === @@ -659,7 +709,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 5; imm: off; once: on write failed: Input/output error -No errors were found on the image. +ERROR space leaked at the end of the image 98304 + +96 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 5; imm: off; once: off @@ -673,7 +726,10 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 28; imm: off; once: on write failed: No space left on device -No errors were found on the image. +ERROR space leaked at the end of the image 98304 + +96 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 Event: l1_grow_activate_table; errno: 28; imm: off; once: off diff --git a/tests/qemu-iotests/029.out b/tests/qemu-iotests/029.out index 5bc93e0..7176e38 100644 --- a/tests/qemu-iotests/029.out +++ b/tests/qemu-iotests/029.out @@ -6,7 +6,10 @@ is smaller than the current L1 table. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 wrote 4096/4096 bytes at offset 0 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -No errors were found on the image. +ERROR space leaked at the end of the image 65536 + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=16777216 wrote 4194304/4194304 bytes at offset 0 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) diff --git a/tests/qemu-iotests/060.out b/tests/qemu-iotests/060.out index 5ca3af4..a20e267 100644 --- a/tests/qemu-iotests/060.out +++ b/tests/qemu-iotests/060.out @@ -78,20 +78,26 @@ Leaked cluster 9 refcount=1 reference=0 Repairing cluster 4 refcount=1 reference=2 Repairing cluster 9 refcount=1 reference=0 Repairing OFLAG_COPIED data cluster: l2_entry=8000000000040000 refcount=2 +ERROR space leaked at the end of the image 65536 The following inconsistencies were found and repaired: 1 leaked clusters 2 corruptions Double checking the fixed image now... -No errors were found on the image. + +1 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. incompatible_features 0x0 wrote 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) incompatible_features 0x0 read 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -No errors were found on the image. +ERROR space leaked at the end of the image 131072 + +2 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. read 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) diff --git a/tests/qemu-iotests/061.out b/tests/qemu-iotests/061.out index a431b7f..69fb929 100644 --- a/tests/qemu-iotests/061.out +++ b/tests/qemu-iotests/061.out @@ -328,7 +328,10 @@ wrote 131072/131072 bytes at offset 0 No errors were found on the image. read 131072/131072 bytes at offset 0 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -No errors were found on the image. +ERROR space leaked at the end of the image 196608 + +3 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. read 131072/131072 bytes at offset 0 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) diff --git a/tests/qemu-iotests/066.out b/tests/qemu-iotests/066.out index 3d9da9b..f94aa5c 100644 --- a/tests/qemu-iotests/066.out +++ b/tests/qemu-iotests/066.out @@ -13,7 +13,10 @@ discard 67109376/67109376 bytes at offset 0 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) read 67109376/67109376 bytes at offset 0 64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -No errors were found on the image. +ERROR space leaked at the end of the image 327680 + +5 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. Offset Length Mapped to File === Writing to preallocated zero clusters === diff --git a/tests/qemu-iotests/098.out b/tests/qemu-iotests/098.out index 7634d0e..733249f 100644 --- a/tests/qemu-iotests/098.out +++ b/tests/qemu-iotests/098.out @@ -20,7 +20,10 @@ Leaked cluster 4 refcount=1 reference=0 Leaked cluster 5 refcount=1 reference=0 Repairing cluster 4 refcount=1 reference=0 Repairing cluster 5 refcount=1 reference=0 -No errors were found on the image. +ERROR space leaked at the end of the image 131072 + +2 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. === reftable_update === @@ -34,6 +37,7 @@ ERROR cluster 1 refcount=0 reference=1 ERROR cluster 3 refcount=0 reference=1 Rebuilding refcount structure Repairing cluster 1 refcount=1 reference=0 +Repairing space leaked at the end of the image 65536 No errors were found on the image. === refblock_alloc === @@ -48,5 +52,6 @@ ERROR cluster 1 refcount=0 reference=1 ERROR cluster 3 refcount=0 reference=1 Rebuilding refcount structure Repairing cluster 1 refcount=1 reference=0 +Repairing space leaked at the end of the image 65536 No errors were found on the image. *** done diff --git a/tests/qemu-iotests/108.out b/tests/qemu-iotests/108.out index 75bab8d..d178b1e 100644 --- a/tests/qemu-iotests/108.out +++ b/tests/qemu-iotests/108.out @@ -68,13 +68,16 @@ Rebuilding refcount structure Repairing cluster 1 refcount=1 reference=0 Repairing cluster 2 refcount=1 reference=0 Repairing cluster 16 refcount=1 reference=0 +ERROR space leaked at the end of the image 720896 The following inconsistencies were found and repaired: 0 leaked clusters 2 corruptions Double checking the fixed image now... -No errors were found on the image. + +11 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. --- Signed overflow after the refblock --- diff --git a/tests/qemu-iotests/112.out b/tests/qemu-iotests/112.out index 81b04d1..7386be8 100644 --- a/tests/qemu-iotests/112.out +++ b/tests/qemu-iotests/112.out @@ -93,7 +93,10 @@ refcount bits: 1 === Amend from refcount_bits=1 to refcount_bits=64 === -No errors were found on the image. +ERROR space leaked at the end of the image 131072 + +2 leaked clusters were found on the image. +This means waste of disk space, but no harm to data. refcount bits: 64 === Amend to compat=0.10 ===