|
@@ -36,7 +36,7 @@ static int ncp_unlink(struct inode *, struct dentry *);
|
|
|
static int ncp_mkdir(struct inode *, struct dentry *, umode_t);
|
|
|
static int ncp_rmdir(struct inode *, struct dentry *);
|
|
|
static int ncp_rename(struct inode *, struct dentry *,
|
|
|
- struct inode *, struct dentry *);
|
|
|
+ struct inode *, struct dentry *, unsigned int);
|
|
|
static int ncp_mknod(struct inode * dir, struct dentry *dentry,
|
|
|
umode_t mode, dev_t rdev);
|
|
|
#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
|
|
@@ -65,7 +65,7 @@ const struct inode_operations ncp_dir_inode_operations =
|
|
|
.mkdir = ncp_mkdir,
|
|
|
.rmdir = ncp_rmdir,
|
|
|
.mknod = ncp_mknod,
|
|
|
- .rename = ncp_rename,
|
|
|
+ .rename2 = ncp_rename,
|
|
|
.setattr = ncp_notify_change,
|
|
|
};
|
|
|
|
|
@@ -1105,13 +1105,17 @@ static int ncp_unlink(struct inode *dir, struct dentry *dentry)
|
|
|
}
|
|
|
|
|
|
static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|
|
- struct inode *new_dir, struct dentry *new_dentry)
|
|
|
+ struct inode *new_dir, struct dentry *new_dentry,
|
|
|
+ unsigned int flags)
|
|
|
{
|
|
|
struct ncp_server *server = NCP_SERVER(old_dir);
|
|
|
int error;
|
|
|
int old_len, new_len;
|
|
|
__u8 __old_name[NCP_MAXPATHLEN + 1], __new_name[NCP_MAXPATHLEN + 1];
|
|
|
|
|
|
+ if (flags)
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
ncp_dbg(1, "%pd2 to %pd2\n", old_dentry, new_dentry);
|
|
|
|
|
|
ncp_age_dentry(server, old_dentry);
|