Merge "liblp: Fix incorrect get_block_device_size usage."
am: a04058ea48
Change-Id: I17bca8e10f4d5039b8aaa632989fcb46763e13c6
This commit is contained in:
commit
3e2ff2d2ed
1 changed files with 2 additions and 1 deletions
|
|
@ -38,7 +38,8 @@ bool GetDescriptorSize(int fd, uint64_t* size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISBLK(s.st_mode)) {
|
if (S_ISBLK(s.st_mode)) {
|
||||||
return get_block_device_size(fd);
|
*size = get_block_device_size(fd);
|
||||||
|
return *size != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t result = SeekFile64(fd, 0, SEEK_END);
|
int64_t result = SeekFile64(fd, 0, SEEK_END);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue