diff options
author | San Mehat <san@google.com> | 2009-06-25 13:34:16 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-06-25 13:34:16 -0700 |
commit | c3115b9ec2f9bc07e6ffd7d7bb7338415822c338 (patch) | |
tree | 49a095c7415b29d71f7dc7d040233f92ea2502a2 | |
parent | 1537d4805ef98a385c61c659f0e778b7074bbbfe (diff) | |
download | core-c3115b9ec2f9bc07e6ffd7d7bb7338415822c338.tar.gz |
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>
-rw-r--r-- | vold/volmgr_vfat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vold/volmgr_vfat.c b/vold/volmgr_vfat.c index 835b71df8..7a4e12f19 100644 --- a/vold/volmgr_vfat.c +++ b/vold/volmgr_vfat.c @@ -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; |