From: Pádraig Brady
Date: Thu, 12 May 2016 08:50:48 +0000 (+0100) Subject: stat,tail: add support for the SMB2 remote file system X-Git-Tag: v8.26~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99dd47ec86b508410df64bef2b7bf4922215cf5b;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/NEWS b/NEWS index 6018aa91be..56ab1f13a9 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 7a20ff782d..8c831b5beb 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 */