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
2e28c49e
Commit
2e28c49e
authored
Dec 21, 2019
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: switch to use errorfc() et.al.
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d53d0f74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fs/fuse/inode.c
fs/fuse/inode.c
+6
-6
No files found.
fs/fuse/inode.c
View file @
2e28c49e
...
...
@@ -475,14 +475,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
switch
(
opt
)
{
case
OPT_SOURCE
:
if
(
fc
->
source
)
return
invalf
(
fc
,
"fuse:
Multiple sources specified"
);
return
invalf
c
(
fc
,
"
Multiple sources specified"
);
fc
->
source
=
param
->
string
;
param
->
string
=
NULL
;
break
;
case
OPT_SUBTYPE
:
if
(
ctx
->
subtype
)
return
invalf
(
fc
,
"fuse:
Multiple subtypes specified"
);
return
invalf
c
(
fc
,
"
Multiple subtypes specified"
);
ctx
->
subtype
=
param
->
string
;
param
->
string
=
NULL
;
return
0
;
...
...
@@ -494,7 +494,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case
OPT_ROOTMODE
:
if
(
!
fuse_valid_type
(
result
.
uint_32
))
return
invalf
(
fc
,
"fuse:
Invalid rootmode"
);
return
invalf
c
(
fc
,
"
Invalid rootmode"
);
ctx
->
rootmode
=
result
.
uint_32
;
ctx
->
rootmode_present
=
1
;
break
;
...
...
@@ -502,14 +502,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case
OPT_USER_ID
:
ctx
->
user_id
=
make_kuid
(
fc
->
user_ns
,
result
.
uint_32
);
if
(
!
uid_valid
(
ctx
->
user_id
))
return
invalf
(
fc
,
"fuse:
Invalid user_id"
);
return
invalf
c
(
fc
,
"
Invalid user_id"
);
ctx
->
user_id_present
=
1
;
break
;
case
OPT_GROUP_ID
:
ctx
->
group_id
=
make_kgid
(
fc
->
user_ns
,
result
.
uint_32
);
if
(
!
gid_valid
(
ctx
->
group_id
))
return
invalf
(
fc
,
"fuse:
Invalid group_id"
);
return
invalf
c
(
fc
,
"
Invalid group_id"
);
ctx
->
group_id_present
=
1
;
break
;
...
...
@@ -527,7 +527,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case
OPT_BLKSIZE
:
if
(
!
ctx
->
is_bdev
)
return
invalf
(
fc
,
"fuse:
blksize only supported for fuseblk"
);
return
invalf
c
(
fc
,
"
blksize only supported for fuseblk"
);
ctx
->
blksize
=
result
.
uint_32
;
break
;
...
...
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