Subject: bug#21876: closed (Re: bug#21876: Please list ACFS in the list of remote filesystems)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 11 Nov 2015 14:54:02 +0000

Your bug report

#21876: Please list ACFS in the list of remote filesystems

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 [email-masked].

-- 
21876: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21876
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#21876: Please list ACFS in the list of remote filesystems
From: Pádraig Brady <[email-masked]>
To: Ondřej Vašík <[email-masked]>, [email-masked]
Date: Wed, 11 Nov 2015 14:53:28 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

On 11/11/15 14:10, Ondřej Vašík wrote:
> Hi,
> as reported in https://bugzilla.redhat.com/show_bug.cgi?id=1280333 ,
> Oracle ADVM/ACFS is not listed among the remote filesystems and in
> stat.c . Can you please add S_MAGIC_ACFS (0x61636673) to stat.c as a
> remote filesystem? Not sending as a patch, as this is quite simple
> change.

Note upstream tail no longer warns about these,
since we sync periodically with upstream Linux definitions.
Now ACFS is not upstream Linux, but better to add anyway.
The attached syncs up with Linux and adds ACFS.

cheers,
Pádraig.

>From 0daa359de8edd09fe2df76cb26c7cef16da52ce3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email-masked]>
Date: Wed, 11 Nov 2015 14:39:32 +0000
Subject: [PATCH] stat: improve support for new Linux pseudo FS and ACFS

* src/stat.c (human_fstype): Add new file system ID definitions.
* NEWS: Mention the improvement.
---
 NEWS       |  4 ++++
 src/stat.c | 10 ++++++++++
 2 files changed, 14 insertions(+)

diff --git a/NEWS b/NEWS
index 08cb138..fc5e927 100644
--- a/NEWS
+++ b/NEWS
@@ -53,6 +53,10 @@ GNU coreutils NEWS                                    -*- outline -*-
 
   ls -w0 is now interpreted as no limit on the length of the outputted line.
 
+  stat -f --format=%T now reports the file system type for new Linux
+  pseudo file systems "bpf_fs", "btrfs_test", "nsfs" and "tracefs",
+  and remote file system "acfs".
+
 
 * Noteworthy changes in release 8.24 (2015-07-03) [stable]
 
diff --git a/src/stat.c b/src/stat.c
index 0721457..d568524 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -245,6 +245,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
          a comment.  The S_MAGIC_... name and constant are automatically
          combined to produce the #define directives in fs.h.  */
 
+    case S_MAGIC_ACFS: /* 0x61636673 remote */
+      return "acfs";
     case S_MAGIC_ADFS: /* 0xADF5 local */
       return "adfs";
     case S_MAGIC_AFFS: /* 0xADFF local */
@@ -266,10 +268,14 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "bdevfs";
     case S_MAGIC_BFS: /* 0x1BADFACE local */
       return "bfs";
+    case S_MAGIC_BPF_FS: /* 0xCAFE4A11 local */
+      return "bpf_fs";
     case S_MAGIC_BINFMTFS: /* 0x42494E4D local */
       return "binfmt_misc";
     case S_MAGIC_BTRFS: /* 0x9123683E local */
       return "btrfs";
+    case S_MAGIC_BTRFS_TEST: /* 0x73727279 local */
+      return "btrfs_test";
     case S_MAGIC_CEPH: /* 0x00C36400 remote */
       return "ceph";
     case S_MAGIC_CGROUP: /* 0x0027E0EB local */
@@ -380,6 +386,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "nfsd";
     case S_MAGIC_NILFS: /* 0x3434 local */
       return "nilfs";
+    case S_MAGIC_NSFS: /* 0x6E736673 local */
+      return "nsfs";
     case S_MAGIC_NTFS: /* 0x5346544E local */
       return "ntfs";
     case S_MAGIC_OPENPROM: /* 0x9FA1 local */
@@ -431,6 +439,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "sysv4";
     case S_MAGIC_TMPFS: /* 0x01021994 local */
       return "tmpfs";
+    case S_MAGIC_TRACEFS: /* 0x74726163 local */
+      return "tracefs";
     case S_MAGIC_UBIFS: /* 0x24051905 local */
       return "ubifs";
     case S_MAGIC_UDF: /* 0x15013346 local */
-- 
2.5.0

Subject: Please list ACFS in the list of remote filesystems
From: Ondřej Vašík <[email-masked]>
To: CoreutilsBugs <[email-masked]>
Date: Wed, 11 Nov 2015 15:10:13 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,
as reported in https://bugzilla.redhat.com/show_bug.cgi?id=1280333 ,
Oracle ADVM/ACFS is not listed among the remote filesystems and in
stat.c . Can you please add S_MAGIC_ACFS (0x61636673) to stat.c as a
remote filesystem? Not sending as a patch, as this is quite simple
change.

Thanks in advance!

Regards,
       Ondrej