>From 99dd47ec86b508410df64bef2b7bf4922215cf5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Thu, 12 May 2016 09:50:48 +0100 Subject: [PATCH] stat,tail: add support for the SMB2 remote file system * stc/stat.c (human_fstype): Add file system ID definition, and use "smb2" as the name. * NEWS (Improvements): Mention the change. Fixes http://bugs.gnu.org/23516 --- NEWS | 7 ++++--- src/stat.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 6018aa9..56ab1f1 100644 --- a/NEWS +++ b/NEWS @@ -34,9 +34,10 @@ GNU coreutils NEWS -*- outline -*- ** Improvements stat and tail now know about "prl_fs" (a parallels file system), - "m1fs" (a Plexistor file system), and "wslfs" (Windows Subsystem for Linux). - stat -f --format=%T now reports the file system type, and tail -f uses - polling for "prl_fs", inotify for "m1fs", and attempts inotify for "wslfs". + "m1fs" (a Plexistor file system), "wslfs" (Windows Subsystem for Linux), + and "smb2". stat -f --format=%T now reports the file system type, and + tail -f uses polling for "prl_fs" and "smb2", inotify for "m1fs", + and attempts inotify for "wslfs". * Noteworthy changes in release 8.25 (2016-01-20) [stable] diff --git a/src/stat.c b/src/stat.c index 7a20ff7..8c831b5 100644 --- a/src/stat.c +++ b/src/stat.c @@ -434,6 +434,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "smackfs"; case S_MAGIC_SMB: /* 0x517B remote */ return "smb"; + case S_MAGIC_SMB2: /* 0xFE534D42 remote */ + return "smb2"; case S_MAGIC_SNFS: /* 0xBEEFDEAD remote */ return "snfs"; case S_MAGIC_SOCKFS: /* 0x534F434B local */ -- 2.5.5