[{"id":3673116,"web_url":"http://patchwork.ozlabs.org/comment/3673116/","msgid":"<20260403130311.GD12260@macsyma-wired.lan>","list_archive_url":null,"date":"2026-04-03T13:03:11","subject":"Re: [PATCH 0/3] show orphan file inode detail info","submitter":{"id":350,"url":"http://patchwork.ozlabs.org/api/people/350/","name":"Theodore Ts'o","email":"tytso@mit.edu"},"content":"On Fri, Apr 03, 2026 at 04:25:04PM +0800, Ye Bin wrote:\n> From: Ye Bin <yebin10@huawei.com>\n> \n> In actual production environments, the issue of inconsistency between\n> df and du is frequently encountered. In many cases, the cause of the\n> problem can be identified through the use of lsof. However, when\n> overlayfs is combined with project quota configuration, the issue becomes\n> more complex and troublesome to diagnose. First, to determine the project\n> ID, one needs to obtain orphaned nodes using `fsck.ext4 -fn /dev/xx`, and\n> then retrieve file information through `debugfs`. However, the file names\n> cannot always be obtained, and it is often unclear which files they are.\n> To identify which files these are, one would need to use crash for online\n> debugging or use kprobe to gather information incrementally. However, some\n> customers in production environments do not agree to upload any tools, and\n> online debugging might impact the business. There are also scenarios where\n> files are opened in kernel mode, which do not generate file descriptors(fds),\n> making it impossible to identify which files were deleted but still have\n> references through lsof. This patchset adds a procfs interface to query\n> information about orphaned nodes, which can assist in the analysis and\n> localization of such issues.\n\nThere are some concens which were noted by Sashiko review, including\nraces with unmountings, a potential deadlock, and some issues relating\nto long pathnames, and a TOCTOU race that might lead to a file system\nerroneously being declared corrupted.  PTAL:\n\nhttps://sashiko.dev/#/patchset/20260403082507.1882703-1-yebin%40huaweicloud.com\n\nThanks!\n\n\t\t\t\t\t\t- Ted","headers":{"Return-Path":"\n <SRS0=2vZp=CC=vger.kernel.org=linux-ext4+bounces-15627-patchwork-incoming=ozlabs.org@ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-ext4@vger.kernel.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","patchwork-incoming@ozlabs.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=IshiJhFV;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=2vzp=cc=vger.kernel.org=linux-ext4+bounces-15627-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 arc.chain=subspace.kernel.org","gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu","gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=IshiJhFV;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15627-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu\n header.b=\"IshiJhFV\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=18.9.28.11","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=mit.edu"],"Received":["from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnJpd0K59z1yCt\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 00:04:40 +1100 (AEDT)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fnJpc6YQ9z4wGy\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 00:04:40 +1100 (AEDT)","by gandalf.ozlabs.org (Postfix)\n\tid 4fnJpc6QsMz4wTJ; Sat, 04 Apr 2026 00:04:40 +1100 (AEDT)","from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fnJpX6Xm6z4wGy\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 04 Apr 2026 00:04:36 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 73D64300D36B\n\tfor <patchwork-incoming@ozlabs.org>; Fri,  3 Apr 2026 13:04:34 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 345883A1E9A;\n\tFri,  3 Apr 2026 13:04:33 +0000 (UTC)","from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C9433A3E96\n\tfor <linux-ext4@vger.kernel.org>; Fri,  3 Apr 2026 13:04:27 +0000 (UTC)","from macsyma.thunk.org (pool-173-48-112-174.bstnma.fios.verizon.net\n [173.48.112.174])\n\t(authenticated bits=0)\n        (User authenticated as tytso@ATHENA.MIT.EDU)\n\tby outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 633D4CPx032278\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 3 Apr 2026 09:04:13 -0400","by macsyma.thunk.org (Postfix, from userid 15806)\n\tid E930D610133A; Fri,  3 Apr 2026 09:03:11 -0400 (EDT)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775221480; cv=pass;\n\tb=YKnXxcB5A+6l+4WOu+nB9HwEmGZ6QYJaBzGDmqGo/wGA2lakfE6jcGsFaGVAzkcgChLa0GCpxx4UOBOnDCavGiyE2XmQdhmoGA9vUDtx4mfxpol4FfQH6YgrpBOtMCULPPetqKaLz+S3Jld1gf618uFq58wXpr13UcnliS4QeryY42oI46vEFkegIxsNilm784C/3oF5weSO/hgLGIeTJcq6tkc861rhGR+emMBPae5oN2NFaWiGmoSKgKNz4QPzdHfdecpcsfR34zW2dgTyCFdzqh2f2PAmOpoqzYTLE2UW570m7AAfFHlH6JNEQYSf5LSjiOQydtyIs01hbav6Yg==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775221472; cv=none;\n b=RErGxcU4osxCAHo0QuSs3xbYqmvFW8E1lBSRZ2olrZBYvdyiZfY0dYC2Mx5lbaKQLeCmSWcZ5QzWYQr3Y7ryF66Apx/zW79d7CfBUaO6gvszNAifjYhac3io6N5rlrd4FhMLEKVg6tGYasVS+umdYaUtbX2OUUT6I5GeFhw1T18="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775221480; c=relaxed/relaxed;\n\tbh=LYZkTnoi1aTofONBpe4AonKQwhA2vCmJ1n5ctiy2dqY=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=bDauvnyPu/6yFffQi9Lvt2xgPa0KF1Msoxq+ldVAFm2Ff/gNjzHxgveAY9dhHiKqaWBdeh2r/YugAnZqgHr3MUV8TJzi0ESG5Z3XAZdFeb3xz2ElFhHuPw0zr29/Dlo9QQ+SM3hkdbJzovjfG6FMbwhs3a7U0aTh8lI/VkjPZfy4R1+xvGCixe2b/dONZdTuXE5ftLkJN3sQ5IJVzBuX374gO+trmxo0ZYBx5U6287Aa/grASEDxZQWRmq/hb3dq1amrIqAYFh5Q7fCFveh7eHPNRKmS55h435/jkz5ypqcLPvnq+bgwUrUaN0QmdcUpUsrJ8Y5Qi3e7FPXz5R8uEA==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775221472; c=relaxed/simple;\n\tbh=xQVDYruL8wwJYUfSlzBzEeh1suKcb9u8D1004mRY17M=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=J4TaR3VR6ehab1004qXMBIPpwM0mXpZQw7UMFe7OhUdIctQALaP35DldJgplzljEN38O3OCR6I4TiP28z/Yc3t/z64IDM2umOyN6n6JxhKo4E2RKrUrYvTtcdCm34IUZimGdxUcxtcG4OufLzoAoThx6zkt7T8FBvWXHW2L/E3E="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu; dkim=pass (2048-bit key;\n unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256\n header.s=outgoing header.b=IshiJhFV; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15627-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=mit.edu;\n spf=pass smtp.mailfrom=mit.edu;\n dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu\n header.b=IshiJhFV; arc=none smtp.client-ip=18.9.28.11"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing;\n\tt=1775221455; bh=LYZkTnoi1aTofONBpe4AonKQwhA2vCmJ1n5ctiy2dqY=;\n\th=Date:From:Subject:Message-ID:MIME-Version:Content-Type;\n\tb=IshiJhFVKmj2fG8q7mTrYX+2azkR3ubFbKAx3sgh+yziaZqCkkdQkFFj9cFbc5cg7\n\t R0N/iYy2vVJkTF03YkrpMNbyupVpsKVCjqimNoXiYTZuKMLBcRvXslLJo8KbIUVYSK\n\t LWdm1KzGXYj6cm+L3Qz72R0QMmqels+FvEHJWt1prGVbVrWYt4h6we28DEblCfZb1M\n\t pbY6fCU9xNY5/jxHHv9lMm0pngqC4Rkia+PTr8Hg5B7agG4l0FTHfQD/JJ3HbdDy+Z\n\t Akedv+k/suFsjsbPxtLcIM016rB/j+POv05C3wwqE0wDQUt8fsxRnACCFZzX30lj12\n\t 3N1aR0MNdO5Tg==","Date":"Fri, 3 Apr 2026 09:03:11 -0400","From":"\"Theodore Tso\" <tytso@mit.edu>","To":"Ye Bin <yebin@huaweicloud.com>","Cc":"adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, jack@suse.cz","Subject":"Re: [PATCH 0/3] show orphan file inode detail info","Message-ID":"<20260403130311.GD12260@macsyma-wired.lan>","References":"<20260403082507.1882703-1-yebin@huaweicloud.com>","Precedence":"bulk","X-Mailing-List":"linux-ext4@vger.kernel.org","List-Id":"<linux-ext4.vger.kernel.org>","List-Subscribe":"<mailto:linux-ext4+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-ext4+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20260403082507.1882703-1-yebin@huaweicloud.com>","X-Spam-Status":"No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tHEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"}}]