summaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2007-01-26 09:57:04 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-26 22:50:59 +0100
commit621997cd392a541bbe964e7521e2e4b2a7a03c4e (patch)
treeb9ece289d5ff4d69616c02510edf2c00a858ccfd /fs/9p/vfs_inode.c
parent[PATCH] 9p: fix bogus return code checks during initialization (diff)
downloadlinux-621997cd392a541bbe964e7521e2e4b2a7a03c4e.tar.xz
linux-621997cd392a541bbe964e7521e2e4b2a7a03c4e.zip
[PATCH] 9p: fix rename return code
9p doesn't handle renames between directories -- however, we were returning EPERM instead of EXDEV when we detected this case. Signed-off-by: Eric Van Hensbergren <ericvh@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 18f26cdfd882..05d30e89ba45 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -767,7 +767,7 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
/* 9P can only handle file rename in the same directory */
if (memcmp(&olddirfid->qid, &newdirfid->qid, sizeof(newdirfid->qid))) {
dprintk(DEBUG_ERROR, "old dir and new dir are different\n");
- retval = -EPERM;
+ retval = -EXDEV;
goto FreeFcallnBail;
}