www.delorie.com/archives/browse.cgi | search |
DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 538EDhEF2094732 |
Authentication-Results: | delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com |
Authentication-Results: | delorie.com; spf=pass smtp.mailfrom=cygwin.com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 538EDhEF2094732 |
Authentication-Results: | delorie.com; |
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=iyaP29Ya | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 00CE2385828B |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1744121621; | |
bh=Znicd00Ozbc5F7qtemhmqHrwFHgM0udk36tZqW6im8k=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=iyaP29YaTtFcLReJMCJOLZdiEzMaDledtYFPhUcLacgwue9oNQowu/7g3TSIzat+L | |
Kvj24C4Q+pqz9hX+rawQC+2CMl2t68KFS3W1BioOLfoTOwbN0wCzBI9pV24rKVG7nu | |
+av37M8X47UUr9NMQUXgHkmNS0foL4OaOfHnaIJw= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org A9B543858D35 |
Date: | Tue, 8 Apr 2025 16:13:17 +0200 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ftruncate() may fail with EISDIR if other process calls open() |
Message-ID: | <Z_Uu_cshbcrbCMsr@calimero.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <8006969c-037a-14a5-7a27-9572d48d605c AT t-online DOT de> |
<Z_UNc-59s6xRT-2J AT calimero DOT vinschen DOT de> | |
MIME-Version: | 1.0 |
In-Reply-To: | <Z_UNc-59s6xRT-2J@calimero.vinschen.de> |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
Errors-To: | cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
On Apr 8 13:50, Corinna Vinschen via Cygwin wrote: > On Apr 7 09:59, Christian Franke via Cygwin wrote: > > Found because 'stress-ng --fcntl 2 --verify' reports "ftruncate failed, > > errno=21": > > Thanks for the testcase. I know what happens. Stay tuned for a patch. Nice problem. That's what happens if you try to do what an OS is doing, without actually being an OS, just a user space lib. Theoretically we should never cache any file information but always call the matching OS functions. Only... this adds quite a few context switches every time accessing files. Sigh. I just pushed 2d81f6ebe3dc ("Cygwin: open: always fix up cached DOS file attributes after NtCreateFile"). Try the upcoming cygwin-3.7.0-0.47.g9e6193576f34. Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |