From unknown Sat Aug 16 22:48:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71242: PR: src/stat.c - add magic for bcachefs Resent-From: Paul Hedderly Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 28 May 2024 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71242 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 71242@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171690693912194 (code B ref -1); Tue, 28 May 2024 14:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2024 14:35:39 +0000 Received: from localhost ([127.0.0.1]:46782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBxvN-0003AV-O2 for submit@debbugs.gnu.org; Tue, 28 May 2024 10:35:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:48130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBuhX-0000Bv-FN for submit@debbugs.gnu.org; Tue, 28 May 2024 07:09:08 -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 ) id 1sBuhN-0004du-Kd for bug-coreutils@gnu.org; Tue, 28 May 2024 07:08:57 -0400 Received: from wacka.mjr.org ([212.13.216.229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBuhL-0007QN-LV for bug-coreutils@gnu.org; Tue, 28 May 2024 07:08:57 -0400 X-Virus-Scanned: Yes Message-ID: <2dd42122e1f46d2f5fab9adf56394ce5a6b554d8.camel@mjr.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mjr.org; s=mail; t=1716894522; bh=w/M/kmA18/It4JIzkmNEehKW8tz4WW/WVc0HzfpE8DI=; h=Subject:From:To; b=IsW9ks31ga+cqRYuF7mpOGZulvaaD5Z18xauRMVBEgZ1CQTPxE66XbDhB9kCufBdK zcZK+AE73Z0hdC+7sJCg92maA2yaZq5u1YxplRcRLPo1XQzy6Ulkw9MYwyZxRFXpXV XQev7QOXRIGuSBJNrmzcW19ae0xFHPAVtunObbgzXyQLW88tmQzpWPsBFWB66bXebS bgOp5xtdzUJEBfVRq0rq+orEnz3NM5aQnuWBxMREtPuFq/1vYbCjpWfPeC7kGUFe1H JyjklAIp2QBBgWbOByDQM7aI9Vy2q5LJ8Zfen38DBhs37tSRIDxfDo3h4ht/CB1tFq R/wwPTm387zXw== From: Paul Hedderly Date: Tue, 28 May 2024 12:08:41 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Received-SPF: pass client-ip=212.13.216.229; envelope-from=paul@mjr.org; helo=wacka.mjr.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Tue, 28 May 2024 10:35:36 -0400 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 (--) Currently stat does not know bcachefs $:~/gits/coreutils$ sudo stat -f -c %T / UNKNOWN (0xca451a4e) But it just needs to know that magic $:~/gits/coreutils$ sudo ./src/stat -f -c %T / bcachefs Please pull this small commit: https://github.com/coreutils/coreutils/commit/6da16c99ff0c6ec35943dd2db5f51= c25efb8b508 diff --git a/src/stat.c b/src/stat.c index 91795471f..875107af4 100644 --- a/src/stat.c +++ b/src/stat.c @@ -307,6 +307,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "bdevfs"; case S_MAGIC_BFS: /* 0x1BADFACE local */ return "bfs"; + case S_MAGIC_BCACHEFSS: /* 0xca451a4e local */ + return "bcachefs"; case S_MAGIC_BINDERFS: /* 0x6C6F6F70 local */ return "binderfs"; case S_MAGIC_BPF_FS: /* 0xCAFE4A11 local */ From unknown Sat Aug 16 22:48:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Hedderly Subject: bug#71242: closed (Re: bug#71242: PR: src/stat.c - add magic for bcachefs) Message-ID: References: <1a8fa554-bab5-4564-b620-0c69ec7a74f0@draigBrady.com> <2dd42122e1f46d2f5fab9adf56394ce5a6b554d8.camel@mjr.org> X-Gnu-PR-Message: they-closed 71242 X-Gnu-PR-Package: coreutils Reply-To: 71242@debbugs.gnu.org Date: Tue, 28 May 2024 15:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1716910982-19565-1" This is a multi-part message in MIME format... ------------=_1716910982-19565-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71242: PR: src/stat.c - add magic for bcachefs which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71242@debbugs.gnu.org. --=20 71242: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71242 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1716910982-19565-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71242-done) by debbugs.gnu.org; 28 May 2024 15:42:07 +0000 Received: from localhost ([127.0.0.1]:46822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sByxj-00054P-E9 for submit@debbugs.gnu.org; Tue, 28 May 2024 11:42:07 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:50610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sByxd-00053p-VS for 71242-done@debbugs.gnu.org; Tue, 28 May 2024 11:42:06 -0400 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-421087b6f3fso8018975e9.1 for <71242-done@debbugs.gnu.org>; Tue, 28 May 2024 08:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716910847; x=1717515647; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=8I53XchCcC+ZoxAqSCeZbQKgNXcuPapFSaVn8Xzf8c4=; b=mw0WfXkKlK51QDbwVxipoYBnMVi87/WQWwHjASVB6k1Zo30VYJdW0fg6vcNVK/Rrj1 ksci/Cd6IlRkun2+fW91UAexG1yLkuV4W1cUVyEI4tccylT23fcEYJCkmsiYUqPcXpEk pl2VVdxZtnbkiyQlZZuEEGeGpjDtOuWDQc0O7md/7pbxCJxoknIJo/BT3s4FunOhS8GP ohJYRFsyMod6aOjlLxJxIFee2XkOndic3+gxIZENEsYRIw2S++Yx+bAXoRFC4+n9KGOL hLm4cbVZ0Oat3FJs6X4wosToWLG8rae+N6x15oYwgg64prcbz3S8P08yPkJ5Xr4RWc// 0cvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716910847; x=1717515647; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8I53XchCcC+ZoxAqSCeZbQKgNXcuPapFSaVn8Xzf8c4=; b=ppvzFxqo6HQ/PUYiTRuPOQNsHEwuFoaDCVeRlFDJV7C7DytFy8dmfeVrGUHBm1e6lp AUJWl3U2cQq4p3Kg5SLvYLIEbaE3/DulKMw3HXIbhKoE+lhz2ObypREgn2uaPey2DgKB juGTdv5PEPdObYuxuoLN0o1ueGTTdX+DOZP7NOTJ5wzKYuOW0tROHNWNnFSqhRuty117 l1rWzjg6O+JTMOUYak+YTQwn1jsy6tUgXThhEaPSZY5JETk+nCq08kE6hN/t9FYzfrOP Nk3hu+aUE5uOKuHfy48PjRB02Qxfcl0qaC7WscUIrWo3urwU5W6+IRNvqG3M8NuC469/ iOrA== X-Forwarded-Encrypted: i=1; AJvYcCX0YA+JKvajbwTFLXur9F3M3z5dW8S6q+jti98TVfD5/UY9/j4uKf5LwlRmlZZqTAif5MIlmKx0Jr64X+4DshjNl04O6cWDWz89vA== X-Gm-Message-State: AOJu0YytTaZt9IC+kM88Y4bZ+YaEwxshO7X8oYfXemM6fc0Qt3wAA1ii IpyRq3Sr0qVxWKyEC9JglGgPDN9mEp4mGw6xszFfx0s2lZvXrMyYTpeuUA== X-Google-Smtp-Source: AGHT+IGv+I33UhHDfZYAKWDqL4J1RVSQ3R/6n7yopMT3gWhDTlfhPH0eQU9qrJJu22+GNm9+GU/kCA== X-Received: by 2002:a05:600c:3ba6:b0:41a:f9db:88ac with SMTP id 5b1f17b1804b1-421089d9c29mr85944035e9.14.1716910846440; Tue, 28 May 2024 08:40:46 -0700 (PDT) Received: from [192.168.1.71] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-420fc82c43csm159543845e9.0.2024.05.28.08.40.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 May 2024 08:40:45 -0700 (PDT) Message-ID: <1a8fa554-bab5-4564-b620-0c69ec7a74f0@draigBrady.com> Date: Tue, 28 May 2024 16:40:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#71242: PR: src/stat.c - add magic for bcachefs To: Paul Hedderly , 71242-done@debbugs.gnu.org References: <2dd42122e1f46d2f5fab9adf56394ce5a6b554d8.camel@mjr.org> Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: <2dd42122e1f46d2f5fab9adf56394ce5a6b554d8.camel@mjr.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 71242-done 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: -0.7 (/) On 28/05/2024 12:08, Paul Hedderly via GNU coreutils Bug Reports wrote: > Currently stat does not know bcachefs > > $:~/gits/coreutils$ sudo stat -f -c %T / > UNKNOWN (0xca451a4e) > > But it just needs to know that magic > > $:~/gits/coreutils$ sudo ./src/stat -f -c %T / > bcachefs > > > Please pull this small commit: > > https://github.com/coreutils/coreutils/commit/6da16c99ff0c6ec35943dd2db5f51c25efb8b508 I pushed the following before receiving this bug report: https://github.com/coreutils/coreutils/commit/3ce31e6f1 Marking this as done. thanks, Pádraig ------------=_1716910982-19565-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 May 2024 14:35:39 +0000 Received: from localhost ([127.0.0.1]:46782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBxvN-0003AV-O2 for submit@debbugs.gnu.org; Tue, 28 May 2024 10:35:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:48130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBuhX-0000Bv-FN for submit@debbugs.gnu.org; Tue, 28 May 2024 07:09:08 -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 ) id 1sBuhN-0004du-Kd for bug-coreutils@gnu.org; Tue, 28 May 2024 07:08:57 -0400 Received: from wacka.mjr.org ([212.13.216.229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBuhL-0007QN-LV for bug-coreutils@gnu.org; Tue, 28 May 2024 07:08:57 -0400 X-Virus-Scanned: Yes Message-ID: <2dd42122e1f46d2f5fab9adf56394ce5a6b554d8.camel@mjr.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mjr.org; s=mail; t=1716894522; bh=w/M/kmA18/It4JIzkmNEehKW8tz4WW/WVc0HzfpE8DI=; h=Subject:From:To; b=IsW9ks31ga+cqRYuF7mpOGZulvaaD5Z18xauRMVBEgZ1CQTPxE66XbDhB9kCufBdK zcZK+AE73Z0hdC+7sJCg92maA2yaZq5u1YxplRcRLPo1XQzy6Ulkw9MYwyZxRFXpXV XQev7QOXRIGuSBJNrmzcW19ae0xFHPAVtunObbgzXyQLW88tmQzpWPsBFWB66bXebS bgOp5xtdzUJEBfVRq0rq+orEnz3NM5aQnuWBxMREtPuFq/1vYbCjpWfPeC7kGUFe1H JyjklAIp2QBBgWbOByDQM7aI9Vy2q5LJ8Zfen38DBhs37tSRIDxfDo3h4ht/CB1tFq R/wwPTm387zXw== Subject: PR: src/stat.c - add magic for bcachefs From: Paul Hedderly To: bug-coreutils@gnu.org Date: Tue, 28 May 2024 12:08:41 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Received-SPF: pass client-ip=212.13.216.229; envelope-from=paul@mjr.org; helo=wacka.mjr.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 28 May 2024 10:35:36 -0400 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 (--) Currently stat does not know bcachefs $:~/gits/coreutils$ sudo stat -f -c %T / UNKNOWN (0xca451a4e) But it just needs to know that magic $:~/gits/coreutils$ sudo ./src/stat -f -c %T / bcachefs Please pull this small commit: https://github.com/coreutils/coreutils/commit/6da16c99ff0c6ec35943dd2db5f51= c25efb8b508 diff --git a/src/stat.c b/src/stat.c index 91795471f..875107af4 100644 --- a/src/stat.c +++ b/src/stat.c @@ -307,6 +307,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "bdevfs"; case S_MAGIC_BFS: /* 0x1BADFACE local */ return "bfs"; + case S_MAGIC_BCACHEFSS: /* 0xca451a4e local */ + return "bcachefs"; case S_MAGIC_BINDERFS: /* 0x6C6F6F70 local */ return "binderfs"; case S_MAGIC_BPF_FS: /* 0xCAFE4A11 local */ ------------=_1716910982-19565-1--