From: Bernhard Voelker Date: Fri, 19 Jun 2020 18:33:55 +0000 (+0200) Subject: stat,tail: add support for the VBOXSF file system X-Git-Tag: v9.0~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5644c986ce39c6ca5fffbae30a2828b8ee56502;p=thirdparty%2Fcoreutils.git stat,tail: add support for the VBOXSF file system * 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 --- diff --git a/NEWS b/NEWS index 655ff779f3..d362596418 100644 --- 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] diff --git a/src/stat.c b/src/stat.c index 5012622c30..4e6c2aa862 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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 */