Skip to content

Instantly share code, notes, and snippets.

@phs
Created February 10, 2015 01:15
Show Gist options
  • Save phs/ffcb9f4d05311627d5e8 to your computer and use it in GitHub Desktop.
Save phs/ffcb9f4d05311627d5e8 to your computer and use it in GitHub Desktop.
What I had to do to make hgfs (monolithic.version = "9.9.0", vmhgfs.version = "1.4.1.1") compile on guest ubuntu 3.2.0-76-virtual
diff -ru a/vmhgfs-only/inode.c b/vmhgfs-only/inode.c
--- a/vmhgfs-only/inode.c 2014-11-18 03:07:13.000000000 +0100
+++ b/vmhgfs-only/inode.c 2014-12-23 22:47:15.783855237 +0100
@@ -1922,7 +1922,7 @@
p,
#endif
&inode->i_dentry,
- d_alias) {
+ d_u.d_alias) {
int dcount = hgfs_d_count(dentry);
if (dcount) {
LOG(4, ("Found %s %d \n", dentry->d_name.name, dcount));
@@ -1975,7 +1975,7 @@
/* Find a dentry with valid d_count. Refer bug 587879. */
list_for_each(pos, &inode->i_dentry) {
int dcount;
- struct dentry *dentry = list_entry(pos, struct dentry, d_alias);
+ struct dentry *dentry = list_entry(pos, struct dentry, d_u.d_alias);
dcount = hgfs_d_count(dentry);
if (dcount) {
LOG(4, ("Found %s %d \n", (dentry)->d_name.name, dcount));
@Brunas
Copy link

Brunas commented Mar 4, 2015

Excellent work! Many thanks for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment