From nobody Thu Feb 10 07:31:34 2022 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 445B919A6C93 for ; Thu, 10 Feb 2022 07:31:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JvT2c1XkKz3hHV; Thu, 10 Feb 2022 07:31:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644478296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bXlMIcwATeDWvi9pXy4fyfLl9Nwtv1P55j5TY12SwaE=; b=Eim3uwOtps56rYb9pXQt/voA6yhvBGu13ClK5FpuheJp/vp3mXuA1tqXopMGN84pHCJnMG tZ4G+DvNA7e/p6MGeo0vwDG+GWPJqlJMjm5rDWlhaUFAIXojPNzNj1J9Gtd1BxtBDUS0eU K52ZU77Tt3pczehupIKyPssYi8r2xDO+dZzgMs+gEEGKmNvCsRz3sna+rZ8Njm/SFoTxtw Tv/NalqLO5BFf/mT579k8y0VZ9w2J+tC/OACw6kfrQQGW7q4sdhN7xtGldetieQ6CzUnkX uZ7mm8xNqfJmx8rQDpqmb4dmenFhJKVQDaD45oOKWod1Brsz4fl61uebhEv6bA== Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id AEC782CA40; Thu, 10 Feb 2022 07:31:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: <7a2e01d9-7c2b-5a7e-cdaa-d01132cd41b5@FreeBSD.org> Date: Thu, 10 Feb 2022 09:31:34 +0200 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.1 Subject: Re: fsck -C -p: NO WRITE ACCESS Content-Language: en-US From: Andriy Gapon To: Kirk McKusick Cc: freebsd-fs References: <202202091833.219IX4gd079144@chez.mckusick.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644478296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bXlMIcwATeDWvi9pXy4fyfLl9Nwtv1P55j5TY12SwaE=; b=Al7TS0HaIVnFD6lxIuAUGCwrvXmSYGR0+puuzmBLoc92mCrHIVoyw1ftYekJqlkUX08tiV QiqKmRv0Hfv/Gw10mb64EIpF7g9mhpOKPrA6XzU2ynKfZYU6gotTe7FCe2oE45MGaXArcw ApteDx03sTygTQujz/1qPqGecKNO1mYovy7rSLbIWvZHYoDjLvYo2AX/1vWwdhm4qgD+Mj esVbhlVgEBLoHzeOn88+ocI+K/1JupdAdE61kTuWdgfkX+lW64RIJrSCNGiz8sp8lCa0JL HfzjfZfB/+lKQp4x7Jcknb24c+UuiitwEgIOBM0AaWvyz1QdMnRiMYjSymUZSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644478296; a=rsa-sha256; cv=none; b=VMz/gOOeB3VzhiL6E2FXkX8V8yz1sz9UV8DOiF07ygnBUt77gnNSfXWKDG8yqlVSL/gEFi 3F3ahS7lLe3LrNoNyNl1FlCxjxEtRxzZ8s14KVarOnZGG7uBMr6Ofw4G/4KMJrEAbCYPlD KX82pxHrqERdCYFxpbMyY2O8YuRvFh6j7Ihesk0sSKTaq27yMdF0nfZbTrSrvRaLySkkWt UEpQucaxD6dJlGxpjhE/EXdjnTalXFmTlnfkTHuvrgIt7D+bxTj05eP15ODJrIZGToyazX XVcDjiCBqyzBG/bAN4W3K7zvlgzDD94V3kDQsBN2IjeSyKjySY4khvohr9zuLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 10/02/2022 09:05, Andriy Gapon wrote: > Interesting... we have this sequence of opens: O_RDONLY, O_WRONLY, O_RDONLY, > O_WRONLY.  And for some reason the second O_WRONLY open fails. > Perhaps something gets confused on the GEOM / GELI side. It looks like closing after the first O_WRONLY open triggers the GEOM re-taste. When the second O_WRONLY is attempted there is a chance (which is very high on my system) that something has the GEOM provider opened with read and exclusive bits. It's the exclusive bit that causes the open to fail. Looks like it's g_label_taste. Not sure if something recently changed in that area or if I've just got much "luckier". -- Andriy Gapon