From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Dylan Simon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 53037@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164141426416051 (code B ref -1); Wed, 05 Jan 2022 20:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jan 2022 20:24:24 +0000 Received: from localhost ([127.0.0.1]:38963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Cpb-0004Ao-U1 for submit@debbugs.gnu.org; Wed, 05 Jan 2022 15:24:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:51530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5CpZ-0004Af-H0 for submit@debbugs.gnu.org; Wed, 05 Jan 2022 15:24:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5CpZ-0000i2-Dw for bug-coreutils@gnu.org; Wed, 05 Jan 2022 15:24:21 -0500 Received: from [2600:3c03::f03c:91ff:fe73:bb7c] (port=37026 helo=icicle.dylex.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5CpX-0000DA-KB for bug-coreutils@gnu.org; Wed, 05 Jan 2022 15:24:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dylex.net; s=icicle; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CE0wABUrQeIGxU4Xn47jIq+IWr/kPbMjpogUFGUumCg=; b=ADwUqjW2/xU/YfzoFMh5ioNjbx FHeRWbICOp6bO3enoa9HbBQ6r3GCJRqw2JIW6B/zptRcoHsoUnSWHmrYpy5PqlbOA6moTyLNDOUz1 xRWwYKXTdy5pN1YT3Sx5ck7E3E8sF4XP1FW7awuUNiCA5dVd2Rio4yKJLt+E7eJtNfMU=; Received: from localhost ([127.0.0.1] helo=datura.dylex.net) by icicle.dylex.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n5Bx2-0003Mh-57 for bug-coreutils@gnu.org; Wed, 05 Jan 2022 14:28:00 -0500 Received: from dylan by datura.dylex.net with local (Exim 4.95) (envelope-from ) id 1n5Bx2-0001VE-0C for bug-coreutils@gnu.org; Wed, 05 Jan 2022 14:28:00 -0500 Date: Wed, 5 Jan 2022 14:27:59 -0500 From: Dylan Simon Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c03::f03c:91ff:fe73:bb7c (failed) Received-SPF: pass client-ip=2600:3c03::f03c:91ff:fe73:bb7c; envelope-from=dylan@dylex.net; helo=icicle.dylex.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_XBL=0.375, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) We have a filesystem that reports statfs f_files = nfiles, f_ffree = -1 (UINTMAX_MAX). (See rationale https://github.com/ceph/ceph/pull/36127) Unfortunately this breaks df -i --total and in particular the df/total-verify test fails. Example output: > df -i --total / /mnt/ceph Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 20971520 529832 20441688 3% / ceph 901006598 - - - /mnt/ceph total 921978118 901536430 20441688 98% - You can see that the total used is clearly not the computed total. I think this is because the individual rows use this logic for used: iv->used = UINTMAX_MAX; if (known_value (iv->total) && known_value (iv->available_to_root)) iv->used = iv->total - iv->available_to_root; while add_to_grand_total does them separately: if (known_value (iv->total)) grand_fsu.fsu_files += iv->total; if (known_value (iv->available)) grand_fsu.fsu_ffree += iv->available; So the ceph line gets added to total but not available, and as a result, the used computation of fsu_files - fsu_ffree = root.total + ceph.total - root.available. Maybe this is sensible but it's not what the test expects. I can't think of a way to solve this that makes the test pass, aside from collecting a grand_used total as well. Only adding rows with all known values might make sense but would still break the test (wrong total total instead): if (known_value (iv->total) && known_value (iv->available)) { grand_fsu.fsu_files += iv->total; grand_fsu.fsu_ffree += iv->available; } From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 21:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Dylan Simon , 53037@debbugs.gnu.org Received: via spool by 53037-submit@debbugs.gnu.org id=B53037.164141671428597 (code B ref 53037); Wed, 05 Jan 2022 21:06:01 +0000 Received: (at 53037) by debbugs.gnu.org; 5 Jan 2022 21:05:14 +0000 Received: from localhost ([127.0.0.1]:39010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5DT7-0007RB-UY for submit@debbugs.gnu.org; Wed, 05 Jan 2022 16:05:14 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5DT5-0007Qs-HM for 53037@debbugs.gnu.org; Wed, 05 Jan 2022 16:05:12 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 50E47160144; Wed, 5 Jan 2022 13:05:05 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0Zm0K5cmxHAI; Wed, 5 Jan 2022 13:05:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C15B1600DB; Wed, 5 Jan 2022 13:05:04 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id e46mNAgPMfSn; Wed, 5 Jan 2022 13:05:04 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 724E8160144; Wed, 5 Jan 2022 13:05:04 -0800 (PST) Message-ID: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> Date: Wed, 5 Jan 2022 13:05:03 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) On 1/5/22 11:27, Dylan Simon wrote: > Only adding rows with all known values > might make sense but would still break the test (wrong total total instead): > > if (known_value (iv->total) && known_value (iv->available)) { > grand_fsu.fsu_files += iv->total; > grand_fsu.fsu_ffree += iv->available; > } Sorry, I'm not quite following. If you make the above change, what will the output look like instead? And how will that break the test? From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Dylan Simon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 22:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 53037@debbugs.gnu.org Received: via spool by 53037-submit@debbugs.gnu.org id=B53037.16414206982750 (code B ref 53037); Wed, 05 Jan 2022 22:12:01 +0000 Received: (at 53037) by debbugs.gnu.org; 5 Jan 2022 22:11:38 +0000 Received: from localhost ([127.0.0.1]:39136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5EVO-0000iI-Hp for submit@debbugs.gnu.org; Wed, 05 Jan 2022 17:11:38 -0500 Received: from icicle.dylex.net ([23.92.18.85]:46274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5EVM-0000i4-81 for 53037@debbugs.gnu.org; Wed, 05 Jan 2022 17:11:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dylex.net; s=icicle; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nkcdu4Wl+tHxVQygwmzUp68GkcHzh5tDJYooypjUS3c=; b=HM0+eIxUo2zdcqPToJKvzqoO5K W3Ub1C/V+SR6kkk6EOmwOcfVcxFgV3jeoyP0M13GDvMg8VEDUYFs9p/rg59lGN/sOrR6WsteK5dyl dMjajSj70Rl8ZPTy+2uXGlQ5BRYf3d3XJYZtUZGRCEnvbPcOTeWRI0PkUCXIhjtOrnSs=; Received: from localhost ([127.0.0.1] helo=datura.dylex.net) by icicle.dylex.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n5EVF-0003wm-KR; Wed, 05 Jan 2022 17:11:29 -0500 Received: from dylan by datura.dylex.net with local (Exim 4.95) (envelope-from ) id 1n5EVF-0001p0-GU; Wed, 05 Jan 2022 17:11:29 -0500 Date: Wed, 5 Jan 2022 17:11:29 -0500 From: Dylan Simon Message-ID: References: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >From Paul Eggert , Wed, Jan 05, 2022 at 01:05:03PM -0800: > On 1/5/22 11:27, Dylan Simon wrote: > > Only adding rows with all known values > > might make sense but would still break the test (wrong total total instead): > > > > if (known_value (iv->total) && known_value (iv->available)) { > > grand_fsu.fsu_files += iv->total; > > grand_fsu.fsu_ffree += iv->available; > > } > > Sorry, I'm not quite following. If you make the above change, what will the > output look like instead? And how will that break the test? Then it will look like this (I'm inferring, haven't actually tried it): Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 20971520 529832 20441688 3% / ceph 901006598 - - - /mnt/ceph total 20971520 529832 20441688 3% - That is, the ceph line will just be excluded completely from the total. Now the used and free lines add up correctly, but total Inodes does not. From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Dylan Simon Cc: 53037@debbugs.gnu.org Received: via spool by 53037-submit@debbugs.gnu.org id=B53037.16414240728580 (code B ref 53037); Wed, 05 Jan 2022 23:08:02 +0000 Received: (at 53037) by debbugs.gnu.org; 5 Jan 2022 23:07:52 +0000 Received: from localhost ([127.0.0.1]:39271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5FNo-0002EK-6d for submit@debbugs.gnu.org; Wed, 05 Jan 2022 18:07:52 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5FNl-0002E6-HL for 53037@debbugs.gnu.org; Wed, 05 Jan 2022 18:07:51 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A1222160017; Wed, 5 Jan 2022 15:07:43 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id sxalTmPGguqS; Wed, 5 Jan 2022 15:07:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8EE4F16005E; Wed, 5 Jan 2022 15:07:42 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xZLC70NcoY8l; Wed, 5 Jan 2022 15:07:42 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6853F160017; Wed, 5 Jan 2022 15:07:42 -0800 (PST) Content-Type: multipart/mixed; boundary="------------xSL1Kxs7kWBa5E1806OM0luS" Message-ID: <81a63f63-ebc7-1a02-cbdb-f979bd744d66@cs.ucla.edu> Date: Wed, 5 Jan 2022 15:07:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US References: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) This is a multi-part message in MIME format. --------------xSL1Kxs7kWBa5E1806OM0luS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/5/22 14:11, Dylan Simon wrote: > Then it will look like this (I'm inferring, haven't actually tried it): I'm still not quite following, but does the attached patch address the problem? --------------xSL1Kxs7kWBa5E1806OM0luS Content-Type: text/x-patch; charset=UTF-8; name="df.diff" Content-Disposition: attachment; filename="df.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9kZi5jIGIvc3JjL2RmLmMKaW5kZXggYjgwM2ZjNzNiLi44YTAy OTNjYTkgMTAwNjQ0Ci0tLSBhL3NyYy9kZi5jCisrKyBiL3NyYy9kZi5jCkBAIC0xMjcsNiAr MTI3LDcgQEAgc3RhdGljIGJvb2wgcHJpbnRfZ3JhbmRfdG90YWw7CiAKIC8qIEdyYW5kIHRv dGFsIGRhdGEuICAqLwogc3RhdGljIHN0cnVjdCBmc191c2FnZSBncmFuZF9mc3U7CitzdGF0 aWMgYm9vbCBncmFuZF9mc3VfZnN1X2ZpbGVzX3RvcF9iaXRfc2V0OwogCiAvKiBEaXNwbGF5 IG1vZGVzLiAgKi8KIGVudW0KQEAgLTk5Myw4ICs5OTQsMTEgQEAgZ2V0X2ZpZWxkX3ZhbHVl cyAoc3RydWN0IGZpZWxkX3ZhbHVlc190ICpidiwKIHN0YXRpYyB2b2lkCiBhZGRfdG9fZ3Jh bmRfdG90YWwgKHN0cnVjdCBmaWVsZF92YWx1ZXNfdCAqYnYsIHN0cnVjdCBmaWVsZF92YWx1 ZXNfdCAqaXYpCiB7Ci0gIGlmIChrbm93bl92YWx1ZSAoaXYtPnRvdGFsKSkKLSAgICBncmFu ZF9mc3UuZnN1X2ZpbGVzICs9IGl2LT50b3RhbDsKKyAgaWYgKGtub3duX3ZhbHVlIChpdi0+ dG90YWwpICYmIGtub3duX3ZhbHVlIChpdi0+YXZhaWxhYmxlX3RvX3Jvb3QpKQorICAgIGFk ZF91aW50X3dpdGhfbmVnX2ZsYWcgKCZncmFuZF9mc3UuZnN1X2ZpbGVzLAorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICZncmFuZF9mc3VfZnN1X2ZpbGVzX3RvcF9iaXRfc2V0LAor ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGl2LT50b3RhbCAtIGl2LT5hdmFpbGFibGVf dG9fcm9vdCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBpdi0+dG90YWwgPCBpdi0+ YXZhaWxhYmxlX3RvX3Jvb3QpOwogICBpZiAoa25vd25fdmFsdWUgKGl2LT5hdmFpbGFibGUp KQogICAgIGdyYW5kX2ZzdS5mc3VfZmZyZWUgKz0gaXYtPmF2YWlsYWJsZTsKIApAQCAtMTg2 MCw2ICsxODY0LDkgQEAgbWFpbiAoaW50IGFyZ2MsIGNoYXIgKiphcmd2KQogICAgICAgICAg ICAgICAgICBOVUxMLCBOVUxMLCBOVUxMLCBmYWxzZSwgZmFsc2UsICZncmFuZF9mc3UsIGZh bHNlKTsKIAogICAgICAgcHJpbnRfdGFibGUgKCk7CisKKyAgICAgIGlmIChwcmludF9ncmFu ZF90b3RhbCAmIGdyYW5kX2ZzdV9mc3VfZmlsZXNfdG9wX2JpdF9zZXQpCisgICAgICAgIGRp ZSAoRVhJVF9GQUlMVVJFLCAwLCAiaXVzZWQgPCAwIik7CiAgICAgfQogICBlbHNlCiAgICAg ewo= --------------xSL1Kxs7kWBa5E1806OM0luS-- From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Dylan Simon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 23:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 53037@debbugs.gnu.org Received: via spool by 53037-submit@debbugs.gnu.org id=B53037.164142514610436 (code B ref 53037); Wed, 05 Jan 2022 23:26:01 +0000 Received: (at 53037) by debbugs.gnu.org; 5 Jan 2022 23:25:46 +0000 Received: from localhost ([127.0.0.1]:39327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Ff8-0002iF-7k for submit@debbugs.gnu.org; Wed, 05 Jan 2022 18:25:46 -0500 Received: from icicle.dylex.net ([23.92.18.85]:46340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Ff6-0002i1-6t for 53037@debbugs.gnu.org; Wed, 05 Jan 2022 18:25:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dylex.net; s=icicle; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PtCeg3dwEWnBJjaafRJtws6dVFdY5RUSGPxhI602h+s=; b=LdUHcLiYEUlAUw0J5tUHxAQGSF BW4tC9GF6c1+EmmOgJxBuULa2GWb6IfjApC5AvftFkJZlko/VocDTOWQvZq4uWnoPNoKcjzMs9hI3 fmSkGaV99L/U4loBFikS7VYOwYxOLOf4kG1F9DET5CZJQDvgNJMGUGOh/M6+5kXV6Ar8=; Received: from localhost ([127.0.0.1] helo=datura.dylex.net) by icicle.dylex.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n5Ff0-0004B3-71; Wed, 05 Jan 2022 18:25:38 -0500 Received: from dylan by datura.dylex.net with local (Exim 4.95) (envelope-from ) id 1n5Ff0-00023C-1V; Wed, 05 Jan 2022 18:25:38 -0500 Date: Wed, 5 Jan 2022 18:25:38 -0500 From: Dylan Simon Message-ID: References: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> <81a63f63-ebc7-1a02-cbdb-f979bd744d66@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81a63f63-ebc7-1a02-cbdb-f979bd744d66@cs.ucla.edu> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >From Paul Eggert , Wed, Jan 05, 2022 at 03:07:42PM -0800: > On 1/5/22 14:11, Dylan Simon wrote: > > Then it will look like this (I'm inferring, haven't actually tried it): > > I'm still not quite following, but does the attached patch address the > problem? Hrm, no, with this patch it still fails, but differently (sorry so many filesystems): Filesystem Inodes IUsed IFree IUse% Mounted on devtmpfs 65968964 743 65968221 1% /dev tmpfs 65988311 1250 65987061 1% /run /dev/sda1 20971520 529832 20441688 3% / tmpfs 65988311 4688 65983623 1% /dev/shm tmpfs 65988311 14 65988297 1% /sys/fs/cgroup /dev/sda3 212927488 21130 212906358 1% /var /dev/sdb1 234424320 36 234424284 1% /tmp ceph 901242617 - - - /mnt/ceph home 260000000 121454853 138545147 47% /mnt/home bright 26214400 19166782 7047618 74% /cm/shared tmpfs 65988311 1 65988310 1% /run/user/0 tmpfs 65988311 1 65988310 1% /run/user/1135 tmpfs 65988311 1 65988310 1% /run/user/1000 total 141179331 -934077896 1075257227 - - 2117679175 != 141179331 at check-df line 14, <> line 15. In case it's helpful, here's the statfs: statfs("/mnt/ceph", {f_type=FUSE_SUPER_MAGIC, f_bsize=4194304, f_blocks=7243311664, f_bfree=1707119480, f_bavail=1707119480, f_files=901242617, f_ffree=18446744073709551615, f_fsid={val=[0, 0]}, f_namelen=255, f_frsize=4194304, f_flags=ST_VALID|ST_RELATIME}) = 0 (This is a coreutils 8.32 build by the way but I'm happy to try 9.0 or git if there's reason to think that will help.) From unknown Sun Jun 22 08:08:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53037: df/total-verify fail with cephfs Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 05 Jan 2022 23:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53037 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Dylan Simon Cc: 53037@debbugs.gnu.org Received: via spool by 53037-submit@debbugs.gnu.org id=B53037.164142624012084 (code B ref 53037); Wed, 05 Jan 2022 23:44:02 +0000 Received: (at 53037) by debbugs.gnu.org; 5 Jan 2022 23:44:00 +0000 Received: from localhost ([127.0.0.1]:39331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Fwl-00038p-UL for submit@debbugs.gnu.org; Wed, 05 Jan 2022 18:44:00 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Fwj-00038c-Kn for 53037@debbugs.gnu.org; Wed, 05 Jan 2022 18:43:58 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D4DFC160017; Wed, 5 Jan 2022 15:43:50 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id JaiaGJX0sxih; Wed, 5 Jan 2022 15:43:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 34F5B160051; Wed, 5 Jan 2022 15:43:50 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id J74XCE0qxy9e; Wed, 5 Jan 2022 15:43:50 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0E34C160017; Wed, 5 Jan 2022 15:43:50 -0800 (PST) Message-ID: <72e021f8-f906-8cca-97aa-1b2b9d88983f@cs.ucla.edu> Date: Wed, 5 Jan 2022 15:43:49 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US References: <62834fac-e9f6-84b0-3a33-831109abba52@cs.ucla.edu> <81a63f63-ebc7-1a02-cbdb-f979bd744d66@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) On 1/5/22 15:25, Dylan Simon wrote: > Hrm, no, with this patch it still fails, but differently (sorry so many > filesystems): OK, then perhaps someone with a bit more free time will have to look at it - unless you can propose a patch that passed "make check".