File coreutils-stat-tail-new-filesystems.patch of Package coreutils.openSUSE_13.1_Update

Upstream patches for stat/tail to support new file system types.
https://bugzilla.novell.com/show_bug.cgi?id=856644

Squash 3 upstream commits to support new file system types
in stat and tail.  The latter decides based on the "local"
or "remote" comment whether it can use inotify or if it has
to resort to polling.  The magic number in the comments is
also used to create the #define's in src/fs.h.

The diff hunks for the changes in NEWS are ommitted; they are
just left behind in the commit messages below for documentation
purposes.
_______________________________________________

http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=4c49dc8

commit 4c49dc823ff7da589ae58d8d8313d38a75fc8f64
Author: Pádraig Brady <P@draigBrady.com>
Date:   Fri Mar 22 12:15:04 2013 +0000

    stat,tail: improve support for efivarfs, exofs, f2fs and ubifs
    
    * src/stat.c (human_fstype): Add new file system ID definitions.
    * NEWS: Mention the improvement.
    Fixes http://bugs.gnu.org/14020
_______________________________________________

http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=e414ff4

commit e414ff4c4c3fe029a9702c9909bf4eccbef68c21
Author: Pádraig Brady <P@draigBrady.com>
Date:   Wed Apr 24 22:59:46 2013 +0100

    stat,tail: improve support for snfs
    
    The StorNext distributed file system was previously known as CVFS.
    
    * src/stat.c (human_fstype): Add new file system ID definition.
    * NEWS: Mention the improvement.
    Fixes http://bugs.gnu.org/14251
_______________________________________________

http://git.sv.gnu.org/cgit/coreutils.git/commit/?id=ee7512c

commit ee7512cf007dbbfa10b44d7dd8aceb9d0033094b
Author: Pádraig Brady <P@draigBrady.com>
Date:   Fri Dec 13 14:05:53 2013 +0000

    stat,tail: improve support for hostfs and smackfs
    
    hostfs is provided by the Linux UML subsystem.
    smackfs is provided by the Linux Smack security module.
    
    * src/stat.c (human_fstype): Add new file system ID definitions.
    * NEWS: Mention the improvement, and adjust for the fact that
    SNFS is a remote file system.

---
 src/stat.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

Index: src/stat.c
===================================================================
--- src/stat.c.orig
+++ src/stat.c
@@ -288,14 +288,20 @@ human_fstype (STRUCT_STATVFS const *stat
       return "devpts";
     case S_MAGIC_ECRYPTFS: /* 0xF15F local */
       return "ecryptfs";
+    case S_MAGIC_EFIVARFS: /* 0xDE5E81E4 local */
+      return "efivarfs";
     case S_MAGIC_EFS: /* 0x00414A53 local */
       return "efs";
+    case S_MAGIC_EXOFS: /* 0x5DF5 local */
+      return "exofs";
     case S_MAGIC_EXT: /* 0x137D local */
       return "ext";
     case S_MAGIC_EXT2: /* 0xEF53 local */
       return "ext2/ext3";
     case S_MAGIC_EXT2_OLD: /* 0xEF51 local */
       return "ext2";
+    case S_MAGIC_F2FS: /* 0xF2F52010 local */
+      return "f2fs";
     case S_MAGIC_FAT: /* 0x4006 local */
       return "fat";
     case S_MAGIC_FHGFS: /* 0x19830326 remote */
@@ -312,6 +318,8 @@ human_fstype (STRUCT_STATVFS const *stat
       return "gpfs";
     case S_MAGIC_HFS: /* 0x4244 local */
       return "hfs";
+    case S_MAGIC_HOSTFS: /* 0xC0FFEE local */
+      return "hostfs";
     case S_MAGIC_HPFS: /* 0xF995E849 local */
       return "hpfs";
     case S_MAGIC_HUGETLBFS: /* 0x958458F6 local */
@@ -391,8 +399,12 @@ human_fstype (STRUCT_STATVFS const *stat
       return "securityfs";
     case S_MAGIC_SELINUX: /* 0xF97CFF8C local */
       return "selinux";
+    case S_MAGIC_SMACK: /* 0x43415D53 local */
+      return "smackfs";
     case S_MAGIC_SMB: /* 0x517B remote */
       return "smb";
+    case S_MAGIC_SNFS: /* 0xBEEFDEAD remote */
+      return "snfs";
     case S_MAGIC_SOCKFS: /* 0x534F434B local */
       return "sockfs";
     case S_MAGIC_SQUASHFS: /* 0x73717368 local */
@@ -405,6 +417,8 @@ human_fstype (STRUCT_STATVFS const *stat
       return "sysv4";
     case S_MAGIC_TMPFS: /* 0x01021994 local */
       return "tmpfs";
+    case S_MAGIC_UBIFS: /* 0x24051905 local */
+      return "ubifs";
     case S_MAGIC_UDF: /* 0x15013346 local */
       return "udf";
     case S_MAGIC_UFS: /* 0x00011954 local */
openSUSE Build Service is sponsored by