Detected internally with Fedora 29 and reported in
https://github.com/vmware/open-vm-tools/issues/337,
the statvfs structure must provide a valid max name length field. Setting
to NAME_MAX. This allows the GUI Files application to create new folders
and rename existing ones correctly.
stat->f_blocks = (totalBytes + HGFS_BLOCKSIZE - 1) / HGFS_BLOCKSIZE;
stat->f_bfree = (freeBytes + HGFS_BLOCKSIZE - 1) / HGFS_BLOCKSIZE;
stat->f_bavail = stat->f_bfree;
+
+ /*
+ * Files application requires this field see bug 2287577.
+ * This is using the same as the GNU C Library defined NAME_MAX
+ */
+ stat->f_namemax = NAME_MAX;
break;
case -EPERM:
#ifndef _VMHGFS_VERSION_H_
#define _VMHGFS_VERSION_H_
-#define VMHGFS_DRIVER_VERSION 1.6.8.0
-#define VMHGFS_DRIVER_VERSION_COMMAS 1,6,8,0
-#define VMHGFS_DRIVER_VERSION_STRING "1.6.8.0"
+#define VMHGFS_DRIVER_VERSION 1.6.9.0
+#define VMHGFS_DRIVER_VERSION_COMMAS 1,6,9,0
+#define VMHGFS_DRIVER_VERSION_STRING "1.6.9.0"
#endif /* _VMHGFS_VERSION_H_ */