diff options
author | Sahitya Tummala <stummala@codeaurora.org> | 2019-02-14 10:17:20 +0530 |
---|---|---|
committer | Sahitya Tummala <stummala@codeaurora.org> | 2019-03-12 14:32:19 +0530 |
commit | 7f6b11a1e574525fc2df558c3e723df0572b5adb (patch) | |
tree | bceb8929861fa0fddd01ff822f35e65963cb590a /debuggerd/handler/debuggerd_handler.cpp | |
parent | bac0c447c07ecba540e1571c57bb9b3e633884ac (diff) |
newfs_msdos: fix getdiskinfo() to get the correct sectors of a device
getdiskinfo() is returning incorrect total sectors(bpb->bsec) for a
device whose block size (bpb->bps) is not equal to 512 bytes (ex,
UFS device). This is because it is directly using the value returned
by the ioctl BLKGETSIZE, which will always return number of 512 byte
sectors. Fix this by converting it into number of bpb->bps byte sectors.
CRs-Fixed: 2398707
Change-Id: I54a0d60074992eecc0db78e8524b418a466fe0f4
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions