]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat: report file system type for "overlayfs"
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Dec 2015 14:58:53 +0000 (14:58 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Dec 2015 13:38:43 +0000 (13:38 +0000)
* src/stat.c (human_fstype): Add "overlayfs", and tag it as "remote"
to ensure that tail continues to use the more conservative polling mode.
* README-release: Remove a stale comment about updating fremote()
in tail.c.  Also give a link to *_SUPER_MAGIC definitions
not in the standard linux/magic.h location.
* NEWS: Mention that this file system is recognized.

NEWS
README-release
src/stat.c

diff --git a/NEWS b/NEWS
index 524c1916e6d375f7a3876c91445e051a0d5d0a84..5941e20c24eb4d53cc0b8c7e7a36c7f6dbb98e2f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -63,8 +63,8 @@ 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".
+  pseudo file systems "bpf_fs", "btrfs_test", "nsfs", "overlayfs"
+  and "tracefs", and remote file system "acfs".
 
 
 * Noteworthy changes in release 8.24 (2015-07-03) [stable]
index 5da96a7a9a583321357f6d231fe278e2cf50ad62..88356bcad6277b6ce8e4b86336f78d7c2deadabc 100644 (file)
@@ -36,9 +36,14 @@ FIXME: enable excluded programs like arch? to get their manual pages?
       -O src/fs-latest-magic.h
 
   If it finds a new file system magic number, add it to src/stat.c.
-  If it is a remote file system, add the new S_MAGIC_* name you created
-  in stat.c to the list of remote file system types in src/tail.c's
-  fremote function.
+  If it is a remote file system tag it as such.
+
+  Note there may be some new file systems magic values not defined
+  in that linux/magic.h file, which can be seen at:
+
+    https://www.livegrep.com/search/linux\
+    ?q=%23define+.*_SUPER_MAGIC+-file%3Amagic\.h
+
 
 * Pre-release testing:
 
index d568524de2702392952c0c5ba12192d19df1337f..e6a36f07f3cb204a20524c699b7ce2f9a8697f6a 100644 (file)
@@ -394,6 +394,11 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "openprom";
     case S_MAGIC_OCFS2: /* 0x7461636F remote */
       return "ocfs2";
+    case S_MAGIC_OVERLAYFS: /* 0x794C7630 remote */
+      /* This may overlay remote file systems.
+         Also there have been issues reported with inotify and overlayfs,
+         so mark as "remote" so that polling is used.  */
+      return "overlayfs";
     case S_MAGIC_PANFS: /* 0xAAD7AAEA remote */
       return "panfs";
     case S_MAGIC_PIPEFS: /* 0x50495045 remote */