Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
dc14657c
Commit
dc14657c
authored
Nov 20, 2009
by
Yehuda Sadeh
Committed by
Sage Weil
Nov 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: mount fails immediately on error
Signed-off-by:
Yehuda Sadeh
<
yehuda@newdream.net
>
parent
94045e11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
fs/ceph/auth.c
fs/ceph/auth.c
+5
-0
fs/ceph/super.c
fs/ceph/super.c
+5
-1
No files found.
fs/ceph/auth.c
View file @
dc14657c
...
...
@@ -169,6 +169,11 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac,
}
if
(
ac
->
negotiating
)
{
/* server does not support our protocols? */
if
(
!
protocol
&&
result
<
0
)
{
ret
=
result
;
goto
out
;
}
/* set up (new) protocol handler? */
if
(
ac
->
protocol
&&
ac
->
protocol
!=
protocol
)
{
ac
->
ops
->
destroy
(
ac
);
...
...
fs/ceph/super.c
View file @
dc14657c
...
...
@@ -712,10 +712,14 @@ static int ceph_mount(struct ceph_client *client, struct vfsmount *mnt,
/* wait */
dout
(
"mount waiting for mon_map
\n
"
);
err
=
wait_event_interruptible_timeout
(
client
->
mount_wq
,
/* FIXME */
have_mon_map
(
client
),
have_mon_map
(
client
)
||
(
client
->
mount_err
<
0
)
,
timeout
);
if
(
err
==
-
EINTR
||
err
==
-
ERESTARTSYS
)
goto
out
;
if
(
client
->
mount_err
<
0
)
{
err
=
client
->
mount_err
;
goto
out
;
}
}
dout
(
"mount opening root
\n
"
);
...
...
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