OSDN Git Service
(root)
/
android-x86
/
system-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
578cffe
)
diskconfig: Fix disk_layout.conf size parsing
author
Andrew Boie
<andrew.p.boie@intel.com>
Fri, 11 Nov 2011 01:58:05 +0000
(17:58 -0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Sun, 10 Apr 2016 12:33:20 +0000
(20:33 +0800)
If the user was appending 'K' to their lengths (which is valid
but redundant) it was being treated as megabytes instead of
kilobytes.
Change-Id: I979ec4d01f1342de1f3209b946201ca87bad32a7
libdiskconfig/diskconfig.c
patch
|
blob
|
history
diff --git
a/libdiskconfig/diskconfig.c
b/libdiskconfig/diskconfig.c
index
1167d4b
..
8f337cf
100644
(file)
--- a/
libdiskconfig/diskconfig.c
+++ b/
libdiskconfig/diskconfig.c
@@
-76,7
+76,7
@@
parse_len(const char *str, uint64_t *plen)
}
} else {
/* convert len to kilobytes */
- if (multiple > 1024)
+ if (multiple >
=
1024)
multiple >>= 10;
*plen *= multiple;