From owner-freebsd-geom@FreeBSD.ORG Tue Apr 10 11:32:06 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 000D816A405; Tue, 10 Apr 2007 11:32:05 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.freebsd.org (Postfix) with ESMTP id 7349E13C4CB; Tue, 10 Apr 2007 11:32:05 +0000 (UTC) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id l3ABeRLT018511; Tue, 10 Apr 2007 13:40:27 +0200 (MEST) Message-ID: <461B75B2.40201@fer.hr> Date: Tue, 10 Apr 2007 13:32:02 +0200 From: Ivan Voras User-Agent: Thunderbird 1.5.0.10 (X11/20060911) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <86k5wmu420.fsf@dwp.des.no> <20070408181916.GA59715@harmless.hu> <86bqhyu225.fsf@dwp.des.no> <461A4D93.3010200@freebsd.org> <20070409143818.GA86722@harmless.hu> <20070409152401.GG76673@garage.freebsd.pl> <20070409153203.GA88082@harmless.hu> <461A5EC6.8010000@freebsd.org> <20070409154407.GA88621@harmless.hu> <20070410111957.GA85578@garage.freebsd.pl> In-Reply-To: <20070410111957.GA85578@garage.freebsd.pl> X-Enigmail-Version: 0.94.2.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig86A1C9198CED72F57BA0784C" Cc: freebsd-geom@FreeBSD.org Subject: Re: volume management X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 11:32:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig86A1C9198CED72F57BA0784C Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Pawel Jakub Dawidek wrote: > Ivan, as you probably already find out this is not an easy task and it > gets more complex when SU comes into play or any async operations, > because there is noone waiting for the error to return. >=20 > Maybe you for now allow to set two modes of handling ENOSPC > (configurable by the user): > 1. Panic if there is no physical storage. This way you protect > consistency. You already printed a warning that gvirstor is running > out of physical storage, so administrator has a chance to do the job= =2E I really don't want to do that :( > 2. Hang until the storage is available. Just don't return from I/O unti= l > new provider is attached to gvirstor. I'd rather do this. I'm still worried about the possibility some=20 unexpected softupdates timer will to the wrong thing here, but I'll try i= t. > You may want to leave 3rd option to just return ENOSPC, because besides= > UFS there can be other gvirstor consumers that handle errors more > properly. Ok. > You may also want to consider sending warnings to devd, which I do in > ZFS (see zfs_fm.c and devd.conf) and should do in others GEOM classes. > This way administrator can configure sending an e-mail when gvristor is= > running out of storage. Good idea, I'll look it up. --------------enig86A1C9198CED72F57BA0784C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGG3WyldnAQVacBcgRAkyVAJ9V2+l3Spme+iYaahjdl1bagZkhrQCffZiE QPkcb9BQAhPaLLcLfoz0q+4= =hMkj -----END PGP SIGNATURE----- --------------enig86A1C9198CED72F57BA0784C--