Date: Thu, 10 Feb 2022 09:31:34 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: Kirk McKusick <mckusick@mckusick.com> Cc: freebsd-fs <fs@FreeBSD.org> Subject: Re: fsck -C -p: NO WRITE ACCESS Message-ID: <7a2e01d9-7c2b-5a7e-cdaa-d01132cd41b5@FreeBSD.org> In-Reply-To: <bb1543d5-6b46-3ebc-9e4f-8d86d7e8f11a@FreeBSD.org> References: <202202091833.219IX4gd079144@chez.mckusick.com> <bb1543d5-6b46-3ebc-9e4f-8d86d7e8f11a@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7a2e01d9-7c2b-5a7e-cdaa-d01132cd41b5>