Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1211481oof; Tue, 25 Sep 2018 09:39:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV62mJjLDkzh4sidW+4ITd5HLrUrmMgGlR6mZrPacSgkVrMql1uk86fn4oCFyPxdvsCG1O5Sc X-Received: by 2002:a63:de4b:: with SMTP id y11-v6mr1807114pgi.435.1537893598863; Tue, 25 Sep 2018 09:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537893598; cv=none; d=google.com; s=arc-20160816; b=gmBFrNcp0lFBqXM1vCl1IBcS0mWajcCen5C3fPKIxnQKtX+mASqIv4Mb76wbHCPvB+ Mm3itkeaGyB3K763sMXOFoynEsoI+AgobUOFZRGmmhNmsIRvXw5rfAqtD6UhCd1V+kM7 kv8MI7VpSkUKf61GC3gsTPCyhJHlWVkIHNYOOJINoF5oUO/aMRToc3oRuAI9wdBYOAKU 7KdOEqvcW4rvorbi1TXFHm4QgBeD8IQ1QagONXdojAQi6lgah3sUaD+0JdAiE2JVl8vp XOqwIakMRty6tMSjAnh8mdNfoLCUoixQ/mpiKcq1Mc8zPLax26h7u6HPX4L/CDddqf6B 0pJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=tCC/nC48SGPXl/cxhvz1rYQP4S1E/ZuC94y5Duz5ezI=; b=p39Gy2OTaKfNEaiQmmhSHTqgmKaLql4XvpGYDkavVHQqAdegTPr16LuQtrVp2JIFfd 4IUdsbzWQyRZqiuqgo5YF12HpCMH8XD0bqGhniJPD4fI43P9Jqamo7bOTTMZ09IXnJG3 ZGkVtuLegbqzz6lT+EPBCdbUVrmpRRPWBVlyoM2055jxV3bcC55aYuqTocb66y33CDhz Q9JVWsPG3gXdWWVXMBuf8yFy/HdA914XVv0jIc/KCtVEFOFGB0mwSYke3MfYuLNMyZZA aM6NcCHKshtVMYzQbs4OluhnVNv8FI1PKRrmJawBTknkur2D8lb/42B5ZXfK5GI/L9Wd fC6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22-v6si2610734pfb.136.2018.09.25.09.39.42; Tue, 25 Sep 2018 09:39:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbeIYWru (ORCPT + 99 others); Tue, 25 Sep 2018 18:47:50 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:45292 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbeIYWru (ORCPT ); Tue, 25 Sep 2018 18:47:50 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w8PGdLVr002539; Tue, 25 Sep 2018 17:39:22 +0100 Date: Tue, 25 Sep 2018 17:39:21 +0100 From: Alan Cox To: "Theodore Y. Ts'o" Cc: Jeff Layton , =?UTF-8?B?54Sm5pmT5Yas?= , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Rogier Wolff Subject: Re: POSIX violation by writeback error Message-ID: <20180925173921.3b267bb3@alans-desktop> In-Reply-To: <20180925154627.GC2933@thunk.org> References: <486f6105fd4076c1af67dae7fdfe6826019f7ff4.camel@redhat.com> <20180925003044.239531c7@alans-desktop> <0662a4c5d2e164d651a6a116d06da380f317100f.camel@redhat.com> <20180925154627.GC2933@thunk.org> Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Unlike O_TMPFILE, this would require file system changes to support, > so maybe it's not worth having something which automatically cleans up > files that were in the middle of being written at the time of a system > crash. Would it. If you open a file unlink it and write to it and then have a linkf(fd, path); your underlying fs behaviour isn't really changed it's just you are allowed to name a file late ? Alan