* Hard link to symbolic link hack
@ 2003-06-23 22:49 Peter Fedorow
0 siblings, 0 replies; only message in thread
From: Peter Fedorow @ 2003-06-23 22:49 UTC (permalink / raw)
To: nfs
Hi,
I need to install some software who's installer generates hard links to
and NFS server which does not support them.
What changes need to be made to nfs_proc_link to map the hard links to
symlinks?
-------------------
static int
nfs_proc_link(struct inode *inode, struct inode *dir, struct qstr *name)
{
struct nfs_linkargs arg = { NFS_FH(inode), NFS_FH(dir),
name->name, name->len };
int status;
dprintk("NFS call link %s\n", name->name);
status = rpc_call(NFS_CLIENT(inode), NFSPROC_LINK, &arg, NULL, 0);
dprintk("NFS reply link: %d\n", status);
return status;
}
-------------------
static int
nfs_proc_symlink(struct inode *dir, struct qstr *name, struct qstr *path,
struct iattr *sattr, struct nfs_fh *fhandle,
struct nfs_fattr *fattr)
{
struct nfs_symlinkargs arg = { NFS_FH(dir), name->name, name->len,
path->name, path->len, sattr };
int status;
dprintk("NFS call symlink %s -> %s\n", name->name, path->name);
fattr->valid = 0;
status = rpc_call(NFS_CLIENT(dir), NFSPROC_SYMLINK, &arg, NULL, 0);
dprintk("NFS reply symlink: %d\n", status);
return status;
}
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-23 22:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 22:49 Hard link to symbolic link hack Peter Fedorow
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.