summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/namei.c
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2015-09-24 18:53:05 +0200
committerMike Marshall <hubcap@omnibond.com>2015-10-03 17:44:34 +0200
commitf957ae2dec09b63b44df9ec06765cbdc52666eec (patch)
treeba94f01577e733b3a380315bfea680e142c3680e /fs/orangefs/namei.c
parentOrangefs: put PVFS_util_min out of its misery. (diff)
downloadlinux-f957ae2dec09b63b44df9ec06765cbdc52666eec.tar.xz
linux-f957ae2dec09b63b44df9ec06765cbdc52666eec.zip
Orangefs: choose return codes from among the expected ones.
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/namei.c')
-rw-r--r--fs/orangefs/namei.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index 747fe6a690af..05f6feadfd0d 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -243,28 +243,24 @@ static int pvfs2_unlink(struct inode *dir, struct dentry *dentry)
}
/*
- * pvfs2_link() is only implemented here to make sure that we return a
- * reasonable error code (the kernel will return a misleading EPERM
- * otherwise). PVFS2 does not support hard links.
+ * PVFS2 does not support hard links.
*/
static int pvfs2_link(struct dentry *old_dentry,
struct inode *dir,
struct dentry *dentry)
{
- return -EOPNOTSUPP;
+ return -EPERM;
}
/*
- * pvfs2_mknod() is only implemented here to make sure that we return a
- * reasonable error code (the kernel will return a misleading EPERM
- * otherwise). PVFS2 does not support special files such as fifos or devices.
+ * PVFS2 does not support special files.
*/
static int pvfs2_mknod(struct inode *dir,
struct dentry *dentry,
umode_t mode,
dev_t rdev)
{
- return -EOPNOTSUPP;
+ return -EPERM;
}
static int pvfs2_symlink(struct inode *dir,