Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_vold
Commits
c82c9ce1
Commit
c82c9ce1
authored
9 years ago
by
Makoto Onuki
Browse files
Options
Download
Email Patches
Plain Diff
Make sure volume is vfat before fsck'ing.
Bug 21948137 Change-Id: I6843423fd8809d9e2f352059a810aa17dd83b3e3
parent
bc40cc8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
PublicVolume.cpp
PublicVolume.cpp
+5
-0
No files found.
PublicVolume.cpp
View file @
c82c9ce1
...
...
@@ -94,6 +94,11 @@ status_t PublicVolume::doMount() {
// TODO: expand to support mounting other filesystems
readMetadata
();
if
(
mFsType
!=
"vfat"
)
{
LOG
(
ERROR
)
<<
getId
()
<<
" unsupported filesystem "
<<
mFsType
;
return
-
EIO
;
}
if
(
vfat
::
Check
(
mDevPath
))
{
LOG
(
ERROR
)
<<
getId
()
<<
" failed filesystem check"
;
return
-
EIO
;
...
...
This diff is collapsed.
Click to expand it.
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