X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
Resent-From: Stan Marsh <gazelle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 16:00:03 +0000
Resent-Message-ID: <handler.79096.B.17534591767186 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 79096 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Reply-To: /dev/null@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17534591767186
(code B ref -1); Fri, 25 Jul 2025 16:00:03 +0000
Received: (at submit) by debbugs.gnu.org; 25 Jul 2025 15:59:36 +0000
Received: from localhost ([127.0.0.1]:35468 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufKpY-0001rX-Sw
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 11:59:36 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34464)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <gazelle@HIDDEN>)
id 1ufKSg-0000IS-9F
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 11:35:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufKSX-0005jv-0g
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 11:35:48 -0400
Received: from out01.mta.xmission.com ([166.70.13.231])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufKSS-0008ND-HE
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 11:35:44 -0400
Received: from mx03.mta.xmission.com ([166.70.13.213]:40724)
by out01.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>) id 1ufKSO-009Hf1-TU
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 09:35:37 -0600
Received: from shell.xmission.com ([166.70.8.4]:56976)
by mx03.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>)
id 1ufKSO-007MCH-6O; Fri, 25 Jul 2025 09:35:36 -0600
Received: from gazelle by shell.xmission.com with local (Exim 4.97)
(envelope-from <gazelle@HIDDEN>) id 1ufKSN-00000009sUR-3m6Y;
Fri, 25 Jul 2025 09:35:35 -0600
X-GNUMailList: Yes
Message-Id: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
From: Stan Marsh <gazelle@HIDDEN>
Date: Fri, 25 Jul 2025 09:35:35 -0600
X-XM-SPF: eid=1ufKSO-007MCH-6O; ; ;
mid=<E1ufKSN-00000009sUR-3m6Y@HIDDEN>; ; ;
hst=mx03.mta.xmission.com; ; ; ip=166.70.8.4; ; ; frm=gazelle@HIDDEN; ; ;
spf=softfail
X-SA-Exim-Connect-IP: 166.70.13.213
X-SA-Exim-Rcpt-To: bug-coreutils@HIDDEN
X-SA-Exim-Mail-From: gazelle@HIDDEN
X-SA-Exim-Scanned: No (on out01.mta.xmission.com);
SAEximRunCond expanded to false
Received-SPF: pass client-ip=166.70.13.231; envelope-from=gazelle@HIDDEN;
helo=out01.mta.xmission.com
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Mailman-Approved-At: Fri, 25 Jul 2025 11:59:29 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
My du is:
$ du --version
du (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.
$
Admittedly, this is pretty old. If the bug I am about to describe is already fixed,
please let me know.
I used the following command to check disk usage in ~:
$ du -sxc ~/*
Unfortunately, this hung when it hit the directory ~/sshfs_mount, which is sshfs
mounted to my home dir on some other system.
To get it to do the right thing, I had to add: '--exclude=sshfs*'
to the command line.
Shouldn't -x have prevented it from descending into the sshfs_mount directory?
Note that I use -x on lots of other commands (e.g., find), since I usually don't want
it to waste time searching other systems (which is slow). I've never had a problem
with it before (this is the first time I've used it with "du").
Note that I have not tested du/-x on any other type of mounted filesystem. I don't
know if the problem is limited to sshfs mounts. But it seems likely, since sshfs is
kind of obscure and not widely used.
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have to
periodically clean that out.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: /dev/null@HIDDEN Subject: bug#79096: Acknowledgement (du: -x doesn't detect sshfs file system) Message-ID: <handler.79096.B.17534591767186.ack <at> debbugs.gnu.org> References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN> X-Gnu-PR-Message: ack 79096 X-Gnu-PR-Package: coreutils Reply-To: 79096 <at> debbugs.gnu.org Date: Fri, 25 Jul 2025 16:00:04 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 79096 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 79096: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79096 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 16:53:01 +0000
Resent-Message-ID: <handler.79096.B79096.175346233421584 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: /dev/null@HIDDEN
Cc: 79096 <at> debbugs.gnu.org
Received: via spool by 79096-submit <at> debbugs.gnu.org id=B79096.175346233421584
(code B ref 79096); Fri, 25 Jul 2025 16:53:01 +0000
Received: (at 79096) by debbugs.gnu.org; 25 Jul 2025 16:52:14 +0000
Received: from localhost ([127.0.0.1]:35732 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufLeY-0005c3-0x
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 12:52:14 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:51030)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
id 1ufLeT-0005bN-V6
for 79096 <at> debbugs.gnu.org; Fri, 25 Jul 2025 12:52:11 -0400
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id 6EF333C01084E;
Fri, 25 Jul 2025 09:52:03 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
id ZjuDXZCnwUWU; Fri, 25 Jul 2025 09:52:03 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id 46BF43C01085F;
Fri, 25 Jul 2025 09:52:03 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 46BF43C01085F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1753462323;
bh=IZAJwYqLFvRTzK06kyG3SFtzZ8U5d645J7xdVE6tBrI=;
h=Message-ID:Date:MIME-Version:To:From;
b=ngUEg+MovLszkwlvbSeI9Md3W+dabtxS8fwj/g6/pS9POflS+abd1PwG/8Nt0JkLW
pmSaZ63b9Tl/6aFTYKOFiU+JoXka8wHxoPakh5WPTfYhNdeV8tUfYF88q9136neSBI
kOSvTTSMEkekdd8OjnJFP4+XcXTnQtHFpGSANHJk4LujWJy0BacsOPNpOH4iE0clL8
K7ON0qp1EhNz88IvTIXfT6UFZnpE1+48AVIFHA6yXepBfK5boM2cdvaKCkWI/KPqaE
z7OsDexTD7fW/5UlvevZQ1QBhotcUMJ6d1YMBZKIso+6VSgtVxxa5zOXhBxkB8u+10
W865JJXssMzmg==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
id CyozLzPSSDtu; Fri, 25 Jul 2025 09:52:03 -0700 (PDT)
Received: from penguin.cs.ucla.edu
(47-154-30-222.fdr01.snmn.ca.ip.frontiernet.net [47.154.30.222])
by mail.cs.ucla.edu (Postfix) with ESMTPSA id 16BFC3C01084E;
Fri, 25 Jul 2025 09:52:03 -0700 (PDT)
Message-ID: <95a8cb00-92dc-499a-a9ae-40ce5747ddef@HIDDEN>
Date: Fri, 25 Jul 2025 09:52:02 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Thanks for reporting it. Can you use 'strace' to find out which system
call is hanging? That would help isolate whether the bug is in 'du' or
is in the kernel.
At some point we might ask whether you can reproduce the bug with the
latest stable Coreutils
<https://ftp.gnu.org/gnu/coreutils/coreutils-9.7.tar.xz> but the
'strace' is an easy thing to check first.
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
Resent-From: Grisha Levit <grishalevit@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 17:10:02 +0000
Resent-Message-ID: <handler.79096.B79096.175346339826110 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: /dev/null@HIDDEN
Cc: 79096 <at> debbugs.gnu.org
Received: via spool by 79096-submit <at> debbugs.gnu.org id=B79096.175346339826110
(code B ref 79096); Fri, 25 Jul 2025 17:10:02 +0000
Received: (at 79096) by debbugs.gnu.org; 25 Jul 2025 17:09:58 +0000
Received: from localhost ([127.0.0.1]:35816 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufLvi-0006n4-5d
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 13:09:58 -0400
Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:47327)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <grishalevit@HIDDEN>)
id 1ufLvg-0006m7-4f
for 79096 <at> debbugs.gnu.org; Fri, 25 Jul 2025 13:09:56 -0400
Received: by mail-yb1-xb30.google.com with SMTP id
3f1490d57ef6-e8d906ab993so2045116276.2
for <79096 <at> debbugs.gnu.org>; Fri, 25 Jul 2025 10:09:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1753463390; x=1754068190; darn=debbugs.gnu.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=ZH67Prwhm/hc4zgBCPtgottxN5cC6jrpPh8TC19yy1A=;
b=DM0oKMjlv/WTy4t3HPdVtt9AO5/AEcZVbbLrHicgT9IE/XXcXEbka0e2yQqR28UNm6
QygLJgxe+6ZON1hXIjJKN7TTe65yXT+WxS87gLbz51/nUsGIYJX/Ph4bNDZoBYTsDCRw
BrGkKoWEiyVKNofj2+lBIkXXrYwNLHraA2OeONAmHzuHGSsm71htqCwqh9wlecj80HXn
wsjeXNdi/lgCop548zkEDgollv5MkpYDtzeQqFPuz1cTXi+iMPe1n1kyDz5O6MGfpR2Q
VymSGyI0soVpLEExsIgWXxF/1CT/38l15CUZil9sDXZx54Tb40GEVYHnmNiNfDUTYE0d
a2cQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1753463390; x=1754068190;
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=ZH67Prwhm/hc4zgBCPtgottxN5cC6jrpPh8TC19yy1A=;
b=XTdoRc7XX/EKuozmXHk/vzdnw9e1Lw2ZN2IPNOctshSw5WQYHZRKqpiNlE1Q++Ub6V
DETAR0Z3ZJf9M9ZuVRPIWmhtGc7uSFPCc2fZToYuUxUDmj1JF0ThyWfnVeLW45RlRFIn
7qe+EsnOekFUbpBytCfX/pCWQj8C7Q794DvGmj3XqA638/WkA2kp/aH1LuyCcCsBEJgq
7YWlOm4EyFCVFT0Tgd5w+4leM4SFhBTUZsneMtw16ds6BrAeUNtO88hH86ae+CKPHJRC
9SV99i7d7r5xJQWIIucVih6q2u9vOPSVX3t9cWuVRlzbgncowPtPGtuHaQmsGkFSFvhO
VqsA==
X-Gm-Message-State: AOJu0YxX7Wk7koaQzQZqLzM7VKVZ9yO69Y4w7xn9cQrpyKJYQUtoTh0E
2gLqu779PbN4g8d4N5mFRNKMFCUCk9lgj8slzlSodHanTZitmfpb78+0Zidf+zU7XK5ubjMCkxz
WdP9h2ma8l86qemMpl6It2RgtUgW8Aeo=
X-Gm-Gg: ASbGncv6HFtSB0jw0i8CwmGu/cypm30FOUFhw+DEBWIJ6qgLWktSw+Tmu4raMPHrKy3
rEBZPnd8vOb2pwFhD0sYJ+upZp0VmzOEbInGeOpL4WRGkXxBjqdcIKu8qU/do9ufsANTNEYKf4L
pDjXwYDGV2uTFT+/mtop7XlKqdg4onpI7fHyMWdmZaPqsjSoxqcDDSj7FyXEffsV+zvdvhgK0id
2CX8NXOrQtTuZ5QjTyAIIsIfhSlt65L+6HCo3J8
X-Google-Smtp-Source: AGHT+IElOaq3yboXwblcc0yGN/AXUyLLHoUao7sX3rA/DCDsdflS51b+ftMCQz6kK2+k1Z0gsl1dLkS1/9lQ7G54Js4=
X-Received: by 2002:a25:6a8a:0:b0:e8d:f830:12e with SMTP id
3f1490d57ef6-e8df8300780mr830806276.14.1753463390061; Fri, 25 Jul 2025
10:09:50 -0700 (PDT)
MIME-Version: 1.0
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
In-Reply-To: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
From: Grisha Levit <grishalevit@HIDDEN>
Date: Fri, 25 Jul 2025 13:09:38 -0400
X-Gm-Features: Ac12FXz1aEIBmsNHJVsUO8ilw3_s1fjvCNGSP5LTSeYrSExORXWB_fkKOZ_Unm8
Message-ID: <CAMu=Brqru2G=pNCv==0Ck6a=3EkHbjR=-aYeV+3DBCA=fTp8Vw@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000007dc96e063ac402b1"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
--0000000000007dc96e063ac402b1
Content-Type: text/plain; charset="UTF-8"
On Fri, Jul 25, 2025, 12:02 Stan Marsh <gazelle@HIDDEN> wrote:
>
> I used the following command to check disk usage in ~:
>
> $ du -sxc ~/*
>
> Unfortunately, this hung when it hit the directory ~/sshfs_mount, which is
> sshfs
> mounted to my home dir on some other system.
>
When the glob is expanded, $HOME/sshfs_mount ends up being one of the args
to `du' so it seems not surprising that the directory is processed.
>
--0000000000007dc96e063ac402b1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto"><div><div class=3D"gmail_quote gmail_quote_container"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Fri, Jul 25, 2025, 12:02 Stan Marsh &=
lt;<a href=3D"mailto:gazelle@HIDDEN">gazelle@HIDDEN</a>> wro=
te:</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex">
<br>
I used the following command to check disk usage in ~:<br>
<br>
=C2=A0$ du -sxc ~/*<br>
<br>
Unfortunately, this hung when it hit the directory ~/sshfs_mount, which is =
sshfs<br>
mounted to my home dir on some other system.<br></blockquote></div></div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto">When the glob is expanded, $HOM=
E/sshfs_mount ends up being one of the args to `du' so it seems not sur=
prising that the directory is processed.</div><div dir=3D"auto"><div class=
=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
--0000000000007dc96e063ac402b1--
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
In-Reply-To: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
Resent-From: Stan Marsh <gazelle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 17:55:02 +0000
Resent-Message-ID: <handler.79096.B.17534660805456 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 79096 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Reply-To: /dev/null@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17534660805456
(code B ref -1); Fri, 25 Jul 2025 17:55:02 +0000
Received: (at submit) by debbugs.gnu.org; 25 Jul 2025 17:54:40 +0000
Received: from localhost ([127.0.0.1]:36003 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufMcy-0001Pw-Cl
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 13:54:40 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57324)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <gazelle@HIDDEN>)
id 1ufMcu-0001PN-3Y
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 13:54:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufMcm-00050D-Kb
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 13:54:28 -0400
Received: from out01.mta.xmission.com ([166.70.13.231])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufMcj-0001JA-1b
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 13:54:27 -0400
Received: from mx04.mta.xmission.com ([166.70.13.214]:58730)
by out01.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>) id 1ufMcD-009U6H-EE
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 11:53:54 -0600
Received: from shell.xmission.com ([166.70.8.4]:45918)
by mx04.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>)
id 1ufMcC-005TzU-Ct; Fri, 25 Jul 2025 11:53:52 -0600
Received: from gazelle by shell.xmission.com with local (Exim 4.97)
(envelope-from <gazelle@HIDDEN>) id 1ufMcC-0000000AHC8-0FjE;
Fri, 25 Jul 2025 11:53:52 -0600
X-GNUMailList: Yes
Message-Id: <E1ufMcC-0000000AHC8-0FjE@HIDDEN>
From: Stan Marsh <gazelle@HIDDEN>
Date: Fri, 25 Jul 2025 11:53:52 -0600
X-XM-SPF: eid=1ufMcC-005TzU-Ct; ; ;
mid=<E1ufMcC-0000000AHC8-0FjE@HIDDEN>; ; ;
hst=mx04.mta.xmission.com; ; ; ip=166.70.8.4; ; ; frm=gazelle@HIDDEN; ; ;
spf=softfail
X-SA-Exim-Connect-IP: 166.70.13.214
X-SA-Exim-Rcpt-To: bug-coreutils@HIDDEN
X-SA-Exim-Mail-From: gazelle@HIDDEN
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa03.xmission.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.9 required=8.0 tests=ALL_TRUSTED,BAYES_40,
DCC_CHECK_NEGATIVE,FVGT_m_MULTI_ODD,T_XMDrugObfuBody_08,
XM_B_SpammyWords,XM_B_SpammyWords2,XM_SPF_SoftFail autolearn=disabled
version=3.4.2
X-Spam-Virus: No
X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
* -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40%
* [score: 0.3430]
* -0.0 DCC_CHECK_NEGATIVE Not listed in DCC
* [sa03 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1]
* 0.2 XM_B_SpammyWords One or more commonly used spammy words
* 1.0 T_XMDrugObfuBody_08 obfuscated drug references
* 2.5 XM_SPF_SoftFail SPF-SoftFail
* 0.4 FVGT_m_MULTI_ODD Contains multiple odd letter combinations
* 0.8 XM_B_SpammyWords2 Two or more commony used spammy words
X-Spam-DCC: XMission; sa03 1397; IP=ok Body=1 Fuz1=1 Fuz2=1
X-Spam-Combo: ***;bug-coreutils@HIDDEN
X-Spam-Relay-Country:
X-Spam-Timing: total 586 ms - load_scoreonly_sql: 0.04 (0.0%),
signal_user_changed: 3.7 (0.6%), b_tie_ro: 2.5 (0.4%), parse: 0.97
(0.2%), extract_message_metadata: 12 (2.1%), get_uri_detail_list: 2.2
(0.4%), tests_pri_-2000: 4.1 (0.7%), tests_pri_-1000: 1.79 (0.3%),
tests_pri_-950: 0.99 (0.2%), tests_pri_-900: 0.75 (0.1%),
tests_pri_-90: 122 (20.8%), check_bayes: 118 (20.2%), b_tokenize: 4.9
(0.8%), b_tok_get_all: 5 (0.9%), b_comp_prob: 1.75 (0.3%),
b_tok_touch_all: 104 (17.7%), b_finish: 0.73 (0.1%), tests_pri_0: 425
(72.4%), check_dkim_signature: 0.34 (0.1%), check_dkim_adsp: 3.3
(0.6%), poll_dns_idle: 1.67 (0.3%), tests_pri_10: 2.7 (0.5%),
tests_pri_500: 10 (1.7%), rewrite_mail: 0.00 (0.0%)
X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000)
X-SA-Exim-Scanned: Yes (on out01.mta.xmission.com)
Received-SPF: pass client-ip=166.70.13.231; envelope-from=gazelle@HIDDEN;
helo=out01.mta.xmission.com
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
> Thanks for reporting it. Can you use 'strace' to find out which system call is
> hanging? That would help isolate whether the bug is in 'du' or is in the kernel.
It may have been imprecise of me to say it "hung" - in the sense of hanging on a
single system call or operation. Rather, it stopped generating output when it hit
that directory - presumably because it was spending mass amounts of time examining the
files and directories under the sshfs_mount directory.
When I ran: strace du -sx ~/sshfs_mount
it generated tons of output (until I Ctrl/C'd it) and seemed to be "fstat"ing files on
the remote system that do not exist. For example:
--- Cut Here ---
openat(4, "..", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=13, ...}) = 0
close(4) = 0
fstatat64(3, "groff_1.23.0-3build2_amd64.deb", {st_mode=S_IFREG|0644, st_size=11721486, ...}, AT_SYMLINK_NOFOLLOW) = 0
fstatat64(3, "etc", {st_mode=S_IFDIR|0755, st_size=3, ...}, AT_SYMLINK_NOFOLLOW) = 0
--- Cut Here ---
I can assure you that the groff "deb" file does not exist - either on the local system
or the remote one (the one sshfs is connected to) (*). In fact, these are all ARM
systems, so no idea where the amd64 "deb" file is coming from.
(*) Not only that, but sshfs should not be giving it access to anywhere on the remote
system that is outside of my $HOME, yet it was "fstat"ing files from the system
directories (including "app-defaults", which is under /etc/X11).
> At some point we might ask whether you can reproduce the bug with the latest stable
> Coreutils <https://ftp.gnu.org/gnu/coreutils/coreutils-9.7.tar.xz> but the 'strace'
> is an easy thing to check first.
No problem. I will probably get and build the latest du at some point and test that.
By the way, and just out of curiosity, what method does "du" use to figure out if
something is a mountpoint (and thus to be skipped if -x was supplied on the cmd line) ?
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have to
periodically clean that out.
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 18:20:02 +0000
Resent-Message-ID: <handler.79096.B79096.175346755112207 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 79096 <at> debbugs.gnu.org
Received: via spool by 79096-submit <at> debbugs.gnu.org id=B79096.175346755112207
(code B ref 79096); Fri, 25 Jul 2025 18:20:02 +0000
Received: (at 79096) by debbugs.gnu.org; 25 Jul 2025 18:19:11 +0000
Received: from localhost ([127.0.0.1]:36108 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufN0h-0003Ap-Cz
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 14:19:11 -0400
Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:43248)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <collin.funk1@HIDDEN>)
id 1ufN0e-0003AL-0t
for 79096 <at> debbugs.gnu.org; Fri, 25 Jul 2025 14:19:09 -0400
Received: by mail-pf1-x42a.google.com with SMTP id
d2e1a72fcca58-74ad4533ac5so1906550b3a.0
for <79096 <at> debbugs.gnu.org>; Fri, 25 Jul 2025 11:19:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1753467541; x=1754072341; darn=debbugs.gnu.org;
h=mime-version:user-agent:message-id:date:references:in-reply-to
:subject:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=XHDGttBFCLAkaDdCqCH0+9+10/XevUQdY+dlsyrXcMA=;
b=TaK0wtKLQRwPkKpzqTsdHrevaP5BcX0rTe2hKyo44AeO0W87VBgwuAfNCFf49ut8l3
Xqo9uErw+vXF8kUrc7L6hjzAtokvGVpmWkoBUltVIrHFxBgCSogSsc6YXHGlnxaxM3Xo
nDaYAZFciSKxEpOyDwxd5l6DAKSG+g04WJI13X9SK4pjMEh6kIOQ5CIDZM0QEV57Y51P
9OJWxuZSTfFBgXCty4DAoKU8x8d6n4XdP298t6KiBwvA/S9f6gBbjxkxXKs36xYmJ3P4
rQPJtfYNuKNJsQnJBdOqFFTk5MQffUDtcZm9ET75gKqlG2aPpQCXS/QSoGwTVqovggqv
NvTw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1753467541; x=1754072341;
h=mime-version:user-agent:message-id:date:references:in-reply-to
:subject:to:from:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=XHDGttBFCLAkaDdCqCH0+9+10/XevUQdY+dlsyrXcMA=;
b=fN9mGj+PJo7a5W24zdiuTyA2wb0w/IJyiEX0GC4Xl0/KzxqZpOkcy23Kk5GpIYXuYa
O9xQhydSj3VP5hNoRU7yZfEvy7J065PkdE5aTUtUdcQzAJ/zHMpGjnQoTrduxiWJyh5u
kRMRMCcu49lrtFzQZUoINEkEfNMi7DV9elHDU4BU5EGWoDPnigfvcCk9Q2ES9REjLM5g
1L1oU46TXuKn/24LpuXj9R6rQr8JjfKvO4s0KEZA5Rxue9J7mlp5sMbtFgxelRcfW0gB
Tdgf+d2oFJVc3/k1tlLJzqOfZSVPbvswrxEmNTLSrvf9GY6fOn2t/mtQ8wqkZ3J+/MJF
Z0cA==
X-Gm-Message-State: AOJu0Yzoo7yEjDkyMl9fqrYO2wk2QbehABQ5r/H6ZDtKlLHkSsffI+Y0
cRlNvSdkWF13po1Xumh/NSTw7RekbtDAjJwvpROl6AeIXxsKEn595+kB7F9FNQ==
X-Gm-Gg: ASbGncs7CQK6BcMvgG1zFvS4+DX1pGSw10XNdf4asRx5KLd4oJHsJ9Vvfv5nKk6x3Ja
O5e2mkmmFGoMOxxFUVdqZa9DGy8bXAq34EwMWPa6kYP/pwD+ataxCyAgCFroeQbjUIiaqoa1R9/
W+jyeffkAV71C1a7nCGHIlxMk/vFiBbg8Yq47QuR4S9978y+AYr4EI5i+OPxo2YVaiQHjAhXJ+G
gQLXvdaiGdxXb16XnvK3sdUkzi2bdX42Ief7Uch2UOhWhiMgTS4eS5qlPI7tDkOnJfahThjLmVr
CF+Zw9PwFQiBxF8junkFOBGvhfxp5FP2I9j0v/DqOgjSbGf3eBFhZYbe06xOzbTIUmZiLvk+mI9
MGvY=
X-Google-Smtp-Source: AGHT+IEnuyfWRQyAZSFTDm2fTd9DYTkVNb2Aa2FScbwGLctdH+josIQsRi4fv9gRO45YV2ufeXdIUw==
X-Received: by 2002:a05:6a20:2585:b0:232:f6bd:7649 with SMTP id
adf61e73a8af0-23d5b5ba3acmr13237324637.7.1753467541464;
Fri, 25 Jul 2025 11:19:01 -0700 (PDT)
Received: from fedora ([2601:646:8081:3770::f93e])
by smtp.gmail.com with ESMTPSA id
41be03b00d2f7-b3f7f568efbsm349267a12.7.2025.07.25.11.19.00
for <79096 <at> debbugs.gnu.org>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 25 Jul 2025 11:19:01 -0700 (PDT)
From: Collin Funk <collin.funk1@HIDDEN>
In-Reply-To: <E1ufMcC-0000000AHC8-0FjE@HIDDEN>
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
<E1ufMcC-0000000AHC8-0FjE@HIDDEN>
Date: Fri, 25 Jul 2025 11:19:00 -0700
Message-ID: <87ikjgt9pn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)
Hi Stan,
Haven't gotten a chance to read through the original report yet, but...
Stan Marsh <gazelle@HIDDEN> writes:
> By the way, and just out of curiosity, what method does "du" use to figure out if
> something is a mountpoint (and thus to be skipped if -x was supplied on the cmd line) ?
We have a function in Gnulib to get a list of mount points. In the
gnulib repository see mountlist.{h,c} [1] [2]. That is what 'du' uses.
Collin
[1] https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/mountlist.h;h=dcff6f831939a3b991abf63e3b4797ff72640a50;hb=HEAD
[2] https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/mountlist.c;h=dcff6f831939a3b991abf63e3b4797ff72640a50;hb=HEAD
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
In-Reply-To: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
Resent-From: Stan Marsh <gazelle@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 18:27:01 +0000
Resent-Message-ID: <handler.79096.B.175346796314232 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 79096 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Reply-To: /dev/null@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.175346796314232
(code B ref -1); Fri, 25 Jul 2025 18:27:01 +0000
Received: (at submit) by debbugs.gnu.org; 25 Jul 2025 18:26:03 +0000
Received: from localhost ([127.0.0.1]:36133 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufN7K-0003hS-Mw
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 14:26:03 -0400
Received: from lists.gnu.org ([2001:470:142::17]:52892)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <gazelle@HIDDEN>)
id 1ufN7I-0003gg-MN
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 14:26:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufN6v-0004nF-8j
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 14:25:37 -0400
Received: from out02.mta.xmission.com ([166.70.13.232])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1ufN6q-0008T9-SA
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 14:25:35 -0400
Received: from mx04.mta.xmission.com ([166.70.13.214]:58866)
by out02.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>) id 1ufN6m-00GbuY-Pb
for bug-coreutils@HIDDEN; Fri, 25 Jul 2025 12:25:29 -0600
Received: from shell.xmission.com ([166.70.8.4]:52926)
by mx04.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>)
id 1ufN6m-005h5r-1v; Fri, 25 Jul 2025 12:25:28 -0600
Received: from gazelle by shell.xmission.com with local (Exim 4.97)
(envelope-from <gazelle@HIDDEN>) id 1ufN6l-0000000ANbo-36JB;
Fri, 25 Jul 2025 12:25:27 -0600
X-GNUMailList: Yes
Message-Id: <E1ufN6l-0000000ANbo-36JB@HIDDEN>
From: Stan Marsh <gazelle@HIDDEN>
Date: Fri, 25 Jul 2025 12:25:27 -0600
X-XM-SPF: eid=1ufN6m-005h5r-1v; ; ;
mid=<E1ufN6l-0000000ANbo-36JB@HIDDEN>; ; ;
hst=mx04.mta.xmission.com; ; ; ip=166.70.8.4; ; ; frm=gazelle@HIDDEN; ; ;
spf=softfail
X-SA-Exim-Connect-IP: 166.70.13.214
X-SA-Exim-Rcpt-To: bug-coreutils@HIDDEN
X-SA-Exim-Mail-From: gazelle@HIDDEN
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com
X-Spam-Level: **
X-Spam-Status: No, score=2.5 required=8.0 tests=ALL_TRUSTED,BAYES_50,
DCC_CHECK_NEGATIVE,XM_B_SpammyWords,XM_SPF_SoftFail autolearn=disabled
version=3.4.2
X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
* 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60%
* [score: 0.4961]
* -0.0 DCC_CHECK_NEGATIVE Not listed in DCC
* [sa07 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1]
* 0.2 XM_B_SpammyWords One or more commonly used spammy words
* 2.5 XM_SPF_SoftFail SPF-SoftFail
X-Spam-DCC: XMission; sa07 1397; IP=ok Body=1 Fuz1=1 Fuz2=1
X-Spam-Combo: **;bug-coreutils@HIDDEN
X-Spam-Relay-Country:
X-Spam-Timing: total 446 ms - load_scoreonly_sql: 0.05 (0.0%),
signal_user_changed: 11 (2.5%), b_tie_ro: 10 (2.2%), parse: 1.08
(0.2%), extract_message_metadata: 6 (1.3%), get_uri_detail_list: 1.81
(0.4%), tests_pri_-2000: 3.2 (0.7%), tests_pri_-1000: 2.2 (0.5%),
tests_pri_-950: 1.22 (0.3%), tests_pri_-900: 0.96 (0.2%),
tests_pri_-90: 62 (13.9%), check_bayes: 60 (13.4%), b_tokenize: 9
(2.0%), b_tok_get_all: 7 (1.5%), b_comp_prob: 3.3 (0.7%),
b_tok_touch_all: 37 (8.4%), b_finish: 0.95 (0.2%), tests_pri_0: 337
(75.6%), check_dkim_signature: 0.66 (0.1%), check_dkim_adsp: 3.3
(0.7%), poll_dns_idle: 0.86 (0.2%), tests_pri_10: 2.1 (0.5%),
tests_pri_500: 9 (1.9%), rewrite_mail: 0.00 (0.0%)
X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000)
X-SA-Exim-Scanned: Yes (on out02.mta.xmission.com)
Received-SPF: pass client-ip=166.70.13.232; envelope-from=gazelle@HIDDEN;
helo=out02.mta.xmission.com
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
> When the glob is expanded, $HOME/sshfs_mount ends up being one of the args
> to `du' so it seems not surprising that the directory is processed.
Yeah, you're probably right, now that I think about it.
With "du", I prefer using ~/* instead of just ~ because then you get totals for each
(top-level) directory instead of just one grand total. And you get output as you go,
not just at the very end (after a long wait/delay).
Also, using ~/* skips things like ~/.gvfs - a directory which is often problematic.
Nevertheless, it could be argued that -x should cause it to skip (i.e., not descend
into) any directory which is a mountpoint (as verified/shown by the "mountpoint"
command). Maybe a distinction could be made between:
sshfs_mount
and
sshfs_mount/
I.e., some utilities (e.g., rsync) make that distinction - where the trailing / tells
it to treat it as a destination rather than as a directory per se (*). I would argue
that without the trailing /, it should not recurse it if it is a mountpoint and -x was
supplied.
Anyway, the workaround using --exclude works fine, so I'm not too bothered by this now.
(*) I was never very clear on this in rsync and it always drove me crazy - I'd always
get it wrong and end up with an extra directory when I didn't want it or the stuff
copied to the current directory when I did want the extra level of directory - until I
finally figured out what the two syntaxes mean.
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have to
periodically clean that out.
Received: (at control) by debbugs.gnu.org; 25 Jul 2025 19:46:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 25 15:46:29 2025 Received: from localhost ([127.0.0.1]:36461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ufONB-0000qy-Co for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 15:46:29 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:45402) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1ufON6-0000qY-Ul for control <at> debbugs.gnu.org; Fri, 25 Jul 2025 15:46:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 582B73C01084E for <control <at> debbugs.gnu.org>; Fri, 25 Jul 2025 12:46:19 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id zg2elxxpc2PM for <control <at> debbugs.gnu.org>; Fri, 25 Jul 2025 12:46:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 32E743C01085F for <control <at> debbugs.gnu.org>; Fri, 25 Jul 2025 12:46:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 32E743C01085F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1753472779; bh=9JPmXb7okqW+sj+wMcPuiKyU8IOrQuOdoV3zAIlsRTA=; h=Message-ID:Date:MIME-Version:To:From; b=CskpjVf9AyToNg0bGCv51VOVOcZAH60q+wmgmsPkwgS9lIBiYfcIR5xYRuDBmW2y2 3q9pnwvBe40EouqLTtaBNsCt0q7FOVfFuQHhfJuIhXdpdYAO++h2p5nWbu/ngMebGS Uesi5JRuUEK1f21o+7r0ODCj0sRQcNZtYtjacz2WYA2sfECovElaxmtHJY4m857JEL OC11WiAbiYmfSyLPBbOiXuVAHsOSEjSfptONmcegcZHW+PFJx/EDb7TFIvBrTf1AyL UZnI4DtbubGfgs91mYcVtHLcj/QrFq6tsNaFmAT0+Ifm9sc/wg2y8EexBMNTSaNf1I EqNk/U0TUrSrQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 8SS7WNcsG8fj for <control <at> debbugs.gnu.org>; Fri, 25 Jul 2025 12:46:19 -0700 (PDT) Received: from penguin.cs.ucla.edu (47-154-30-222.fdr01.snmn.ca.ip.frontiernet.net [47.154.30.222]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 0EDDD3C01084E for <control <at> debbugs.gnu.org>; Fri, 25 Jul 2025 12:46:19 -0700 (PDT) Message-ID: <823f1585-68ff-45fd-8d4e-85b59a9333fa@HIDDEN> Date: Fri, 25 Jul 2025 12:46:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: control <at> debbugs.gnu.org From: Paul Eggert <eggert@HIDDEN> Subject: 79096 is a feature request Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 79096 wishlist
X-Loop: help-debbugs@HIDDEN
Subject: bug#79096: du: -x doesn't detect sshfs file system
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 25 Jul 2025 19:48:01 +0000
Resent-Message-ID: <handler.79096.B79096.17534728423497 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79096
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: /dev/null@HIDDEN
Cc: 79096 <at> debbugs.gnu.org
Received: via spool by 79096-submit <at> debbugs.gnu.org id=B79096.17534728423497
(code B ref 79096); Fri, 25 Jul 2025 19:48:01 +0000
Received: (at 79096) by debbugs.gnu.org; 25 Jul 2025 19:47:22 +0000
Received: from localhost ([127.0.0.1]:36469 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ufOO1-0000uK-Sd
for submit <at> debbugs.gnu.org; Fri, 25 Jul 2025 15:47:22 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:36670)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
id 1ufONz-0000tp-E9
for 79096 <at> debbugs.gnu.org; Fri, 25 Jul 2025 15:47:20 -0400
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id C5A6A3C01084E;
Fri, 25 Jul 2025 12:47:13 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
id y92qBEe-qgi7; Fri, 25 Jul 2025 12:47:13 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id 9F6623C01085F;
Fri, 25 Jul 2025 12:47:13 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 9F6623C01085F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1753472833;
bh=Kj8fjjeabSjsYIVyMQymutpNWjpGiKzyxfbYldju9rM=;
h=Message-ID:Date:MIME-Version:To:From;
b=Kc3MbrxzWvwP5WRcqNujPudzSaXhRs70hxZd18b5CczNIhMV7FMJ1QqTJWOXg0ina
FIkxB9mHafvSbw0wGujHCexabULqEIMhQ+cp85Rr2hFETpWPIlyeXOGGYVGyptrflz
IJrmleDn02wFJldzpFckmvZ0S80nW69ZydoWnIS4BLH4hxmDjvP1x1UpyiBT3Yuzv3
lU/pLouacxEzNDmp5OjptBcF3Qi+iO+mYzCYgV8fffENqjLrFTrl71Fl9BuR0b8V6U
RForbG+Maq3kVwHd3KwnIptp0fzXuZIONUGcnfLcasyPEILvJenY74AhgMAh3NwNTh
QA25vbIMtMTvw==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
id 8_h-P8-vWQyU; Fri, 25 Jul 2025 12:47:13 -0700 (PDT)
Received: from penguin.cs.ucla.edu
(47-154-30-222.fdr01.snmn.ca.ip.frontiernet.net [47.154.30.222])
by mail.cs.ucla.edu (Postfix) with ESMTPSA id 7AFF43C01084E;
Fri, 25 Jul 2025 12:47:13 -0700 (PDT)
Message-ID: <f79cb926-aa5e-4d5a-8e39-ef7487dace5f@HIDDEN>
Date: Fri, 25 Jul 2025 12:47:13 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <E1ufKSN-00000009sUR-3m6Y@HIDDEN>
<E1ufN6l-0000000ANbo-36JB@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <E1ufN6l-0000000ANbo-36JB@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
On 2025-07-25 11:25, Stan Marsh wrote:
> it could be argued that -x should cause it to skip (i.e., not descend
> into) any directory which is a mountpoint
That goes too far; people regularly use commands like 'du -x
/mountpoint' to list just that file system.
It sounds like we have a feature request here for a new option, which
would behave the way you like. So I have marked the bug report as a
wishlist item. Not sure whether it's worth implementing....
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.