Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f957ae2d
Commit
f957ae2d
authored
Sep 24, 2015
by
Mike Marshall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Orangefs: choose return codes from among the expected ones.
Signed-off-by:
Mike Marshall
<
hubcap@omnibond.com
>
parent
d6fe654b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
fs/orangefs/file.c
fs/orangefs/file.c
+1
-1
fs/orangefs/namei.c
fs/orangefs/namei.c
+4
-8
No files found.
fs/orangefs/file.c
View file @
f957ae2d
...
@@ -973,7 +973,7 @@ static loff_t pvfs2_file_llseek(struct file *file, loff_t offset, int origin)
...
@@ -973,7 +973,7 @@ static loff_t pvfs2_file_llseek(struct file *file, loff_t offset, int origin)
*/
*/
static
int
pvfs2_lock
(
struct
file
*
filp
,
int
cmd
,
struct
file_lock
*
fl
)
static
int
pvfs2_lock
(
struct
file
*
filp
,
int
cmd
,
struct
file_lock
*
fl
)
{
{
int
rc
=
-
E
NOLCK
;
int
rc
=
-
E
INVAL
;
if
(
PVFS2_SB
(
filp
->
f_inode
->
i_sb
)
->
flags
&
PVFS2_OPT_LOCAL_LOCK
)
{
if
(
PVFS2_SB
(
filp
->
f_inode
->
i_sb
)
->
flags
&
PVFS2_OPT_LOCAL_LOCK
)
{
if
(
cmd
==
F_GETLK
)
{
if
(
cmd
==
F_GETLK
)
{
...
...
fs/orangefs/namei.c
View file @
f957ae2d
...
@@ -243,28 +243,24 @@ static int pvfs2_unlink(struct inode *dir, struct dentry *dentry)
...
@@ -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
* PVFS2 does not support hard links.
* reasonable error code (the kernel will return a misleading EPERM
* otherwise). PVFS2 does not support hard links.
*/
*/
static
int
pvfs2_link
(
struct
dentry
*
old_dentry
,
static
int
pvfs2_link
(
struct
dentry
*
old_dentry
,
struct
inode
*
dir
,
struct
inode
*
dir
,
struct
dentry
*
dentry
)
struct
dentry
*
dentry
)
{
{
return
-
E
OPNOTSUPP
;
return
-
E
PERM
;
}
}
/*
/*
* pvfs2_mknod() is only implemented here to make sure that we return a
* PVFS2 does not support special files.
* reasonable error code (the kernel will return a misleading EPERM
* otherwise). PVFS2 does not support special files such as fifos or devices.
*/
*/
static
int
pvfs2_mknod
(
struct
inode
*
dir
,
static
int
pvfs2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
struct
dentry
*
dentry
,
umode_t
mode
,
umode_t
mode
,
dev_t
rdev
)
dev_t
rdev
)
{
{
return
-
E
OPNOTSUPP
;
return
-
E
PERM
;
}
}
static
int
pvfs2_symlink
(
struct
inode
*
dir
,
static
int
pvfs2_symlink
(
struct
inode
*
dir
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment