Project

General

Profile

Bug #2132 ยป tmpfs_patch.diff

Anonymous, 10/22/2011 04:21 PM

View differences:

sys/vfs/tmpfs/tmpfs_vfsops.c
return 0;
}
/* --------------------------------------------------------------------- */
static int
tmpfs_vptofh(struct vnode *vp, struct fid *fhp)
{
struct tmpfs_node *node;
struct tmpfs_fid tfh;
node = VP_TO_TMPFS_NODE(vp);
memset(&tfh, 0, sizeof(tfh));
tfh.tf_len = sizeof(struct tmpfs_fid);
tfh.tf_gen = node->tn_gen;
tfh.tf_id = node->tn_id;
memcpy(fhp, &tfh, sizeof(tfh));
return (0);
}
/* --------------------------------------------------------------------- */
/*
......
.vfs_root = tmpfs_root,
.vfs_statfs = tmpfs_statfs,
.vfs_fhtovp = tmpfs_fhtovp,
.vfs_vptofh = tmpfs_vptofh,
.vfs_sync = vfs_stdsync
};
    (1-1/1)