Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6045049pxb; Thu, 27 Jan 2022 05:24:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZaO6hQfuBJFAGiWtYgiCo5tT6igEuE9WjJ/nq5z++2gZWCvr/Wji0nCOtZvCecGPoYBvu X-Received: by 2002:a17:903:2301:: with SMTP id d1mr3309523plh.26.1643289869264; Thu, 27 Jan 2022 05:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643289869; cv=none; d=google.com; s=arc-20160816; b=n0wee9Isw1cUYnlTsD/sdeNy2ALYjtUR+rm+MUX5DecXiv7mzacFBrOE03I7D+uui7 vNsTx0q5kZwg9BHKx0lorUazjLZ3ipXnhPzrYEcQ0MEUeu91eiQy7lZebXM0kKDGZ3Uv RP9eQ6hYARet9V/anAfQ/8iRXjxGEBV1KjSvm5Dot4qAltRbYIWE722C7D7FtqCfyo1V 8qha2wYPsr74t4QoS68IHVZk8eFLF8LXa0zaGU4nwxjtLfKEu7VkyHakzpK13gALro0d h4KXdYm9qgvYGvo6ggZEZ9IoRLer1Rc5Ug3ibApm8QyGJ+OsTDH7MTlz7s4h65Gv18/m TeDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:to:from :dkim-signature; bh=Dw2vsnDPy4bAOFWcdaGeSZdx/xcsSNnShvjql+tRmx8=; b=sEZyINSt6n5dF3A4VxSClZm4vF9vSsElLECVNImQZj0UKdmt3at2EQWbDq6Rcyfk8f WmQwRMbwc2zamfo6fz8iyJAC8Pg254z1wMQCbRqNam4dKOhu4jqGPN5EHOXndiYSq2VP mM1DhikIBSSKAyT0V5cvtEalkUrKNm42I2n0QSAFM9/vQSU1RMKMMuKjbAMcLoeSz4Ep upXTIt0Z/u5RB9ZHXCPPGShWiujcrapoTyWZeavzuEdU7+C0MhSsQgUoNCFfZWgG/sXz s8Y/90xDETarotnN0pm+YRhzUEPz1lw6adGT5vZNMdiJcLFwQtOvFrIqc7AltS24texY TtIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=RCk6D6Ee; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si2249049pfm.93.2022.01.27.05.24.09; Thu, 27 Jan 2022 05:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=RCk6D6Ee; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237044AbiA0HGy (ORCPT + 99 others); Thu, 27 Jan 2022 02:06:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbiA0HGy (ORCPT ); Thu, 27 Jan 2022 02:06:54 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A32C061714 for ; Wed, 26 Jan 2022 23:06:53 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id d138-20020a1c1d90000000b0034e043aaac7so2617793wmd.5 for ; Wed, 26 Jan 2022 23:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Dw2vsnDPy4bAOFWcdaGeSZdx/xcsSNnShvjql+tRmx8=; b=RCk6D6EeCg/9Qfd0K9c/eC8WIrD8YZng0Jw33h9j2LSIIwmgSSPmTZODxvqQ5yCMwy ZD3GrH2XH0oPlsGdXt+4lTT0vd3Sm7nwfIk4Z0KU0kNkGzli5V5cnP9RyrHB6GiCNaIr 8Iy0j5eDD9myWkdaGJL8kHwYGEUtkxvez6MdWY7ftjotmN7fd1g0HevR2EQSeS4dETxx dhwsX6kunXvy2adw4e6j4Be/WX3DoQc9b7RF4GgKqg6YnK+OKSEqQwxpu+ielQuGxaFb SkZ7e73oEOTWNXutb3LtSdgPK96aCGQtSQQGLZoj7PBq4bqSWino+IkgGoMvC4g7O9FR sopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Dw2vsnDPy4bAOFWcdaGeSZdx/xcsSNnShvjql+tRmx8=; b=krbM9lWMSlRTB7VMTHmEDPPC081lgLBeVPwdlnxIuZ9asZjKfyir6HndkGWjtwQM59 /h0xqb0vPmzBcXhdhzjQGuLGWWBJhzpdyb3Agg8fhjvFGdfmDlZ/bl2NUEb11sqooe/D WCZIDocFTV1u8NUTiXEu8O4lqKPt63L0ZVmARF9uL+TRMdtZfK50z38haFkBgsd910vW Wq2axvPzi54dDOKDs6bB7axOn8takc0XX/8eC4PjnD0yP8Gc5r7pSAjdBjCCT1KeSI0n 4wViVBsm6Tw8IhhJzql/YFFBEIAu6fjZikZKCXqukDqyjcZygz4vs4jb6aEZguAT6pR1 iQYg== X-Gm-Message-State: AOAM530k1xObBU72D43QVFKLg3MOssJqR0fG650kfMVR2Tsr/fs2hvOX S5/Otnl+AX2VFdagD2rkOn9d4A2K1vCjUg== X-Received: by 2002:a1c:1d48:: with SMTP id d69mr10469322wmd.167.1643267212300; Wed, 26 Jan 2022 23:06:52 -0800 (PST) Received: from [192.168.88.236] (79-69-186-222.dynamic.dsl.as9105.com. [79.69.186.222]) by smtp.gmail.com with ESMTPSA id 1sm1197585wmo.37.2022.01.26.23.06.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jan 2022 23:06:52 -0800 (PST) From: Maxim Blinov To: linux-ext4@vger.kernel.org Subject: Help! How to delete an 8094-byte PATH? Message-ID: Date: Thu, 27 Jan 2022 07:06:51 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi all, I'm not a subscriber to this list (so please put me in the CC), but I've hit a really annoying un-googleable issue that I don't know who to ask about. A runaway script has been recursively creating sub-directories under sub-directories until it hit the (apparent) OS limit. The path in question goes something like this: /work/build-native/binutils-gdb/gnulib/confdir3/confdir3/confdir3/confdir3/confdir3/........ (you get the idea) It was only stopped by the following error: mkdir: cannot create directory 'confdir3': File name too long OK, fine, that was silly but whatever, right? I tried to delete this huge directory from the top with rm -rf confdir3/ but that simply generated the same error as above. So, I figured "Hey, I'll just walk all the way to the bottom, and delete the directories one-by-one bottom up". Here's the script I ran to get to the bottom: $ for i in $(seq 999999); do echo "im $i levels deep"; cd confdir3; done; It then ran for a while, and eventually I got to the bottom: ``` ... im 892 levels deep im 893 levels deep im 894 levels deep im 895 levels deep im 896 levels deep bash: cd: confdir3: File name too long $ ls ``` So then, I `cd ../`, and `rmdir confdir3`, but even here, I get rmdir: failed to remove 'confdir3/': File name too long I would be very grateful if someone could please help suggest how I might get this infernal tower of directories off of my precious ext4 partition. I was thinking maybe there's some kind of magic "forget this directory inode ever existed" command, but I am out of my depth with filesystems. Best Regards, Maxim Blinov