]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: add support for the VBOXSF file system
authorBernhard Voelker <mail@bernhard-voelker.de>
Fri, 19 Jun 2020 18:33:55 +0000 (20:33 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sat, 20 Jun 2020 14:07:19 +0000 (16:07 +0200)
* src/stat.c (human_fstype): Add case for the 'vboxsf' file system type
which is used for VirtualBox Shared Folders mounted in VirtualBox guest
VMs.
* NEWS: Mention the Improvement.
Fixes https://bugs.gnu.org/41935

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 655ff779f3f8fd09fff5505fbc24d0562982cc68..d362596418c954a30c5011a7ae3cc01a369c1f80 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,11 @@ GNU coreutils NEWS                                    -*- outline -*-
    ls --classify now supports the "always", "auto", or "never" flags,
    to support only outputting classifier characters if connected to a tty.
 
+** Improvements
+
+  stat and tail now know about the "vboxsf" file system type.
+  stat -f -c%T now reports the file system type, and tail -f uses polling.
+
 
 * Noteworthy changes in release 8.32 (2020-03-05) [stable]
 
index 5012622c3082a618dbf7c4d6066a3d9ecdfa8f10..4e6c2aa862476aa5518c1a1ec1782c1f20c6ed33 100644 (file)
@@ -527,6 +527,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "usbdevfs";
     case S_MAGIC_V9FS: /* 0x01021997 local */
       return "v9fs";
+    case S_MAGIC_VBOXSF: /* 0x786F4256 remote */
+      return "vboxsf";
     case S_MAGIC_VMHGFS: /* 0xBACBACBC remote */
       return "vmhgfs";
     case S_MAGIC_VXFS: /* 0xA501FCF5 remote */