From 1118f32145049cc4b949e89eda89a0ed612755de Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Sun, 13 Dec 2015 14:58:53 +0000 Subject: stat: report file system type for "overlayfs" * 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. --- src/stat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/stat.c b/src/stat.c index d568524de..e6a36f07f 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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 */ -- cgit v1.2.3-70-g09d2