Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp6023125rwb; Tue, 1 Aug 2023 11:05:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8KwjtgcABB8zK6t0Pbg/QVouAmPDiit4i7u8IQnzt4fc/L9CvAwP/cYa2FmjMLCg5GN1z X-Received: by 2002:a2e:8796:0:b0:2b7:3b6c:a5e4 with SMTP id n22-20020a2e8796000000b002b73b6ca5e4mr3349248lji.38.1690913107049; Tue, 01 Aug 2023 11:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690913107; cv=none; d=google.com; s=arc-20160816; b=QUJJZOAFJk94YQUrsVITgzpB20Pxh+myiMpHNVyrPd8HZEM8G+2+x69AniPY/VYc5r 1SmC94jHDsLVoZpyqJwuTxAAWoQrR7/COkvjnHxF6fZ33VtJH7fUlAmW+j8PovF7p+xb ufktPNTs5WG+aZPEyZl7ZUxvnXQhP1sKYzUpIT7qSEZ9mQnTa+IleIIej5o+pRCn8yS4 w6/e0ANigZFcMlI1r/7gushwYRQDAQDN25gnBTZSjy3yN77eRKHeyG5Dph72Q2IOCmzJ ghGJKKUv6QlIxm8ch8rEhuuzhBjugjr9iE+IvxztwrB+tdq0xDzM1FQ10uDGKN+toZFj 42yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f36gOBPIy1Zmguze7mrHnn3xV4XJM8s2rEorRuGLnXc=; fh=dBnwKP/XsILjeHXVDI9CxetouU42PJY8ldtS+gqUw8k=; b=kNddOMJjYpm+v+4UHOb7259H0qyDnblvJ3Rl6lOiAWkew1Qu/t+3AEoR4yWjuyhUxT Ck1+RFm0rszulRxDK2bJruAIn8grWplb/6wYSGGXIMhsJBy8yLwhMbK+vkJd9aRaSsIh C8ZhAoRiUPSYDbLHWmAS8cjrtqXOf9D6EX409FulQc+3z50V5hs9JAA7m7RxTjYhBjIr vg4IowHW31fhh4jjFwIxHndYHiTJjkmoDdvy2Lu3cTK524HPigsEAbMosIfjVEU0z9th OSRY3AzRORvum0dWHBvFjpKSYGXAIPHdFNrSSfr1NlR+UbtW1OjMM4uzXU88ZfJhjook 36Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Zi1hII0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dv22-20020a170906b81600b00992bd86ece6si8658311ejb.725.2023.08.01.11.04.23; Tue, 01 Aug 2023 11:05:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Zi1hII0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbjHARnV (ORCPT + 99 others); Tue, 1 Aug 2023 13:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjHARnT (ORCPT ); Tue, 1 Aug 2023 13:43:19 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A417E1BC8 for ; Tue, 1 Aug 2023 10:43:18 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99bc512526cso922128766b.1 for ; Tue, 01 Aug 2023 10:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1690911797; x=1691516597; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f36gOBPIy1Zmguze7mrHnn3xV4XJM8s2rEorRuGLnXc=; b=Zi1hII0MO9R5yWLVXT8B+0SQ0LjH3M3E/oT4RuK3eRJyYEq7xNP84v3HGk/HUSDngL 07/vNKIUsCHhOeYc6y1n4veCmp8wi9+Pgd3RqnsX57ItndaJ+Xb6fctJB3ewKB/eR9Ai QtQyVhVmYrV4Z6Oewnn40D5I9FK1HHwbOGKss= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690911797; x=1691516597; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f36gOBPIy1Zmguze7mrHnn3xV4XJM8s2rEorRuGLnXc=; b=Qgtfl+zBSafwvOJjjjX17oAn9FZlTbHk1GE4vsqANaLMkflHB2niq2JSkmk+XmetWL vwlzxubWasTZNGMka45LAsAlkKxKfPHnGOY/cHIDVA98So2Cg0iu/badmritjIcQhd+X 9nweYENePwsFk4A6wx1lzA5/OmWNOhx2yJHFW1BoNfWqMPTEyvi2ivIND4T4nUSoikEg C+uojeRpQWXU28FMT7hu8LsQTTNIcLj4/WkG+eCDGPqwcXSSfqH19Q0R852Vz0kvQL1B N0cYrs+p20uL8zLwuUeQT0qYwioOimskvy7jSf4Da3+D9KAUnvRlpecpJDKT2LzqJsxz qmhQ== X-Gm-Message-State: ABy/qLbDP221s1MbIhyxxBgtCaR98h/1qdj3YOYHyGX5KIB9IMoZW+78 f0dCy7OglFcDc/uOPak8ynkh8HLbQ/EIJpSgECoxUg== X-Received: by 2002:a17:906:649e:b0:987:16c6:6ff3 with SMTP id e30-20020a170906649e00b0098716c66ff3mr3243440ejm.38.1690911797040; Tue, 01 Aug 2023 10:43:17 -0700 (PDT) MIME-Version: 1.0 References: <20230720091436.399691-1-yunlong.xing@unisoc.com> In-Reply-To: <20230720091436.399691-1-yunlong.xing@unisoc.com> From: Miklos Szeredi Date: Tue, 1 Aug 2023 19:43:05 +0200 Message-ID: Subject: Re: [PATCH V3] ovl: fix mount fail because the upper doesn't have space To: Yunlong Xing Cc: amir73il@gmail.com, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, zhiguo.niu@unisoc.com, hongyu.jin@unisoc.com, yunlongxing23@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Jul 2023 at 11:15, Yunlong Xing wrote: > > The current ovlfs mount flow: > > ovl_fill_super > |_ovl_get_workdir > |_ovl_make_workdir > |_ovl_check_rename_whiteout > > In ovl_check_rename_whiteout(), a new file is attempted to create.But if > the upper doesn't have space to do this, it will return error -ENOSPC, > causing the mount fail. It means that if the upper is full, the overlayfs > cannot be mounted. It is not reasonable, so this patch will omit this error > and continue mount flow. Wouldn't mounting without upper (two or more lower layers) work in this case? Thanks, Miklos