vold: Logging to catch when the disk checker crashes
(could happen due to a really messed up card) Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
1537d4805e
commit
c3115b9ec2
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ int vfat_check(blkdev_t *dev)
|
|||
} else if (rc == 2) {
|
||||
LOG_VOL("Filesystem check failed (not a FAT filesystem)");
|
||||
return -ENODATA;
|
||||
} else if (rc == -11) {
|
||||
LOG_VOL("Filesystem check crashed");
|
||||
return -EIO;
|
||||
} else {
|
||||
LOG_VOL("Filesystem check failed (unknown exit code %d)", rc);
|
||||
return -EIO;
|
||||
|
|
Loading…
Reference in a new issue