Fedora Core 6系统安装VMware-tool

豆豆网   技术应用频道   2007年04月19日  【字号: 收藏本文

本文详细介绍Fedora Core 6系统安装VMware-tool

  vmhgfs-perm-fix.patch (http://home.sztoltzteixeira.com/vmhgfs-perm-fix.patch)

  Now,all the ok.

  下面是两个patch文件的内容:

  1

  diff -Naur vmhgfs-only/driver.c vmhgfs-only-new/driver.c

  --- vmhgfs-only/driver.c 2006-08-04 14:25:52.000000000 -0300

  +++ vmhgfs-only-new/driver.c 2006-10-28 15:26:14.000000000 -0300

  @@ -41,8 +41,8 @@

  #define HGFS_SB_TO_COMMON(sb) ((HgfsSuperInfo *)(sb)->s_fs_info)

  #endif

  -#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)

  -#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)

  +#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)

  +#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)

  /*

  * 2.5.x kernels support nanoseconds timestamps.

  @@ -760,7 +760,6 @@

  inode->i_uid = 0; /* This is bogus, should be the mount owner. */

  inode->i_gid = 0; /* This is bogus, should be the mount owner. */

  inode->i_rdev = 0; /* Device nodes are not supported */

  - inode->i_blksize = HGFS_BLOCKSIZE;

  inode->i_blocks = (attr->size + HGFS_BLOCKSIZE - 1) / HGFS_BLOCKSIZE;

  inode->i_size = attr->size;

  HGFS_SET_TIME(inode->i_atime, attr->accessTime);

  2

  --- vmhgfs-only/driver.c 2006-10-28 15:26:14.000000000 -0300

责编:豆豆技术应用

正在加载评论...