From nobody Tue Apr 16 11:28:57 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VJhd520XBz5Gg7j for ; Tue, 16 Apr 2024 11:28:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJhd50ySQz57yN for ; Tue, 16 Apr 2024 11:28:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713266937; a=rsa-sha256; cv=none; b=aT/Nb3TrKmEY/3Ffe1NyESQW79EQokbfd5rO4Vu6qG4vl4KErNDQYdnD3uNoDA6iVweaB8 rETqpkXkstS02Xz/5xDG3ulBmw5GWLcn4O0SdyJALJyPPwujH7Ild/fZlEH2J6oXpUwv6P ioMNTwpWHPRpXy5axp83aBxIdGjnxwTiFsO6l3RVz+w+1zjK/TGXkF8vKkZeJS7rsBM99y fDOxVHVIWO7T1b0ft44kBO1LiBkCBxKY7w3jc8aAEAK9RLD3zuukge4P96o+Dg97s+Kmea zCX+gJPhaHTsTnHzp1TMNOKrKQNzWfncTezKIJunmedL0C3po80sAm9sfJA5lA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713266937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+D8TEh11w+S90bY4Rnmn+0cCnKlQ9k1sRwIA1y7qL38=; b=HJaXQs0/zKjtcYd9ZYjeZvbiuea1cgsUohk6sHcL96EVwXjlpkM2m8iR5veCYZUHnFawnf tQrz5Lfv6eiMFamnMUdEI8IriubCRsAgfs2jgbutS380PIsOo18LSY9wvSzoq+ndD8h4cU 1FZVa0LgjktGG/HXUC07oXQz+XXXhkVZsiJC+4cuCzsEgLAqid7Mj1GgiZDxHcwFFu+zMU NFU1uUWrBfhNFhwytK7ggqqSMcUmdMt0En1tqRRNhuPPbaeFcbGu3KvSAMwoai4u9PhxwK 7zKSYWXGS34P2srREGZyl1EVx/Sqs+LyLxrEHE5ce7kZMPpqI9lrKcY8BAkGFA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VJhd50WwQzhTb for ; Tue, 16 Apr 2024 11:28:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43GBSuNT033503 for ; Tue, 16 Apr 2024 11:28:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43GBSuCX033502 for bugs@FreeBSD.org; Tue, 16 Apr 2024 11:28:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278388] du: fts_read: No such file or directory; failed on directory with symlink to another partition Date: Tue, 16 Apr 2024 11:28:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 000.fbsd@quip.cz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278388 Bug ID: 278388 Summary: du: fts_read: No such file or directory; failed on directory with symlink to another partition Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: 000.fbsd@quip.cz I have a symlink from /var/crash to /vol0/crash on another partition and wh= en I tried to check the directory usage in /var, it failed with an error: # du -d 1 -h /var/ 4.0K /var/.snap 24K /var/mail 12K /var/audit du: fts_read: No such file or directory Full directory list # ll /var/ total 32900 drwxrwxr-x 2 root operator 512B Aug 12 2015 .snap/ -r-------- 1 root wheel 32M Aug 12 2015 .sujournal drwxr-xr-x 2 root wheel 512B Apr 16 03:01 account/ drwxr-xr-x 2 certbot www 512B Apr 12 10:04 acme_sh/ drwxr-xr-x 4 root wheel 512B Jul 25 2019 at/ drwxr-x--- 4 root audit 512B Jul 25 2019 audit/ drwxrwx--- 2 root authpf 512B Jul 25 2019 authpf/ drwxr-x--- 2 root wheel 1.0K Apr 16 03:13 backups/ drwxr-xr-x 3 root wheel 512B Jul 25 2019 cache/ lrwxr-xr-x 1 root wheel 11B Dec 3 15:15 crash@ -> /vol0/crash drwxr-x--- 3 root wheel 512B Jul 25 2019 cron/ drwxr-xr-x 18 root wheel 512B Feb 14 21:42 db/ dr-xr-xr-x 2 root wheel 512B Nov 11 2014 empty/ drwxrwxr-x 2 root games 512B Jul 25 2019 games/ drwx------ 2 root wheel 512B Jul 25 2019 heimdal/ drwxr-xr-x 7 root wheel 11K Apr 16 03:01 log/ drwxrwxr-x 2 root mail 1.0K Dec 6 22:57 mail/ drwxr-xr-x 2 daemon wheel 512B Jul 25 2019 msgs/ drwxr-xr-x 2 root wheel 512B Jul 25 2019 preserve/ drwxr-xr-x 11 root wheel 1.0K Apr 16 03:13 run/ drwxrwxr-x 2 root daemon 512B Jul 25 2019 rwho/ drwxr-xr-x 10 root wheel 512B Jul 25 2019 spool/ drwxrwxrwt 4 root wheel 512B Apr 16 13:14 tmp/ drwxr-xr-x 3 unbound unbound 512B Apr 15 18:00 unbound/ drwxr-xr-x 2 root wheel 512B Apr 17 2023 yp/ I added -x to not traverse filesystem, then it works # du -d 1 -h -x /var/ 4.0K /var/.snap 24K /var/mail 12K /var/audit 180K /var/run 15M /var/backups 4.0K /var/preserve 8.0K /var/msgs 4.0K /var/heimdal 713M /var/cache 41M /var/db 8.7M /var/tmp 228K /var/spool 46M /var/account 4.0K /var/authpf 28K /var/yp 4.0K /var/rwho 28K /var/cron 892M /var/log 4.0K /var/empty 12K /var/at 32K /var/unbound 4.0K /var/games 4.0K /var/acme_sh 1.7G /var/ But I think it should not ends by the error or the error messages should be more specific. The -x was just my blind try. This is on FreeBSD 13.2-RELEASE-p11 amd64 GENERIC with UFS filesystems. --=20 You are receiving this mail because: You are the assignee for the bug.=