From: Artem Bityutskiy Date: Wed, 28 Nov 2012 06:59:53 +0000 (+0200) Subject: Fiemap: fix internal buffer size calculations X-Git-Tag: v1.0~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0ffb0e04cf71bb18865584161be84ab1812674e;p=tools%2Fbmap-tools.git Fiemap: fix internal buffer size calculations ... I used 'buf_size' instead of 'self._buf_size' by a mistake. Change-Id: If92b92e4aa09653fe27e41e5a2cc236fce3042af Signed-off-by: Artem Bityutskiy --- diff --git a/bmaptools/Fiemap.py b/bmaptools/Fiemap.py index 79a108a..add086c 100644 --- a/bmaptools/Fiemap.py +++ b/bmaptools/Fiemap.py @@ -79,7 +79,7 @@ class Fiemap: buf_size -= _FIEMAP_SIZE self._fiemap_extent_cnt = buf_size / _FIEMAP_EXTENT_SIZE self._buf_size = self._fiemap_extent_cnt * _FIEMAP_EXTENT_SIZE - buf_size += _FIEMAP_SIZE + self._buf_size += _FIEMAP_SIZE # Allocate a mutable buffer for the FIEMAP ioctl self._buf = array.array('B', [0] * self._buf_size)