From owner-freebsd-fs@FreeBSD.ORG Mon Apr 27 08:59:24 2015 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 40461FE for ; Mon, 27 Apr 2015 08:59:24 +0000 (UTC) Received: from forward2l.mail.yandex.net (forward2l.mail.yandex.net [IPv6:2a02:6b8:0:1819::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF5E6157A for ; Mon, 27 Apr 2015 08:59:23 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward2l.mail.yandex.net (Yandex) with ESMTP id 3A5601AC10C0; Mon, 27 Apr 2015 11:59:12 +0300 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id B2292190018E; Mon, 27 Apr 2015 11:59:11 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:5::3a]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Iz8BsBKnzB-xBZWpLFF; Mon, 27 Apr 2015 11:59:11 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1430125151; bh=8fiDyZcxhtloVe7AIvDzNagqNaFpa8wYRcHrttAD+fM=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=Oh5L3pJ8d+1UEcMjvmLFCuAJd1AzgzwjlYRZM7TWteFSXKBBp/5xniL1uCp4JoP0B mFuWUzl4b+ziiHvOrJBIf0uG6JO1ocD9nbijHHXWu7ePFMvpcnLn8hB4QjVEz9Zvte dPPplM74hyKPfz59JzyCuMNsdeiMRi0PhQONJ47A= Authentication-Results: smtp17.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <553DF9E3.1090609@yandex.ru> Date: Mon, 27 Apr 2015 11:57:07 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Willem Jan Withagen , fs@freebsd.org Subject: Re: resampeling of a ZVOL that has been resized References: <55381127.4090603@digiware.nl> <5539B0C4.6070000@yandex.ru> <553B7200.7090002@digiware.nl> In-Reply-To: <553B7200.7090002@digiware.nl> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aOfp1KQW1LkD2LC3WVA9wDLHbcxd9oaFr" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 08:59:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aOfp1KQW1LkD2LC3WVA9wDLHbcxd9oaFr Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 25.04.2015 13:52, Willem Jan Withagen wrote: > So it seems that although gpart understands that the ZVOL volume has > grown, it does not take it far enough and set it to CORRUPTED and then > let the user correct/grow it. Can you try this patch? Index: head/sys/geom/part/g_part_gpt.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head/sys/geom/part/g_part_gpt.c (revision 282044) +++ head/sys/geom/part/g_part_gpt.c (working copy) @@ -760,7 +760,7 @@ g_part_gpt_resize(struct g_part_table *basetable, struct g_part_gpt_entry *entry; if (baseentry =3D=3D NULL) - return (EOPNOTSUPP); + return (g_part_gpt_recover(basetable)); entry =3D (struct g_part_gpt_entry *)baseentry; baseentry->gpe_end =3D baseentry->gpe_start + gpp->gpp_size - 1; --=20 WBR, Andrey V. Elsukov --aOfp1KQW1LkD2LC3WVA9wDLHbcxd9oaFr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVPfnjAAoJEAHF6gQQyKF6q1AIAKPD/O4Yf2lhSFY8K3uYVVJd JJB+yXpUzuRCFWo8xpir31XnOztwBPK3qD5gIibHWlpExqvTWz9G51OQSNz4W9BE hwNFNe5r/tW0m9KvY3jG6GaOOJHBPHNOLskstdeHlzCPoJrlsRwxtk4hWDWgp3+l FxvptQnxvetZ2WE/3EbEkLinH40apyAivNye7IA6DnCUYAh5E24LiQjRFwZ+dJ6u GTBaKoRYNwDYRP7DiIUN24mwqlsbYo8gvK9eiWNRCRVU50HH7HH0KPhIO7eW7iS8 JpcPeX9Ca/qyYhRW5TxEYRewVF4QV4rFwjO8mYva/YBpF0C12RSR+FVYUIJlqJA= =h1L9 -----END PGP SIGNATURE----- --aOfp1KQW1LkD2LC3WVA9wDLHbcxd9oaFr--