]> sourceware.org Git - lvm2.git/commit
libdm: ensure first extent is always counted
authorBryn M. Reeves <bmr@redhat.com>
Tue, 13 Dec 2016 21:36:11 +0000 (21:36 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 13 Dec 2016 21:41:31 +0000 (21:41 +0000)
commitf4401fe351f63679ae8f4bab448a9283fb631a4a
treef0a80f3bf070e327eec691711610c00e76f36aeb
parentfce7449d7311b49839f339b714c48e953e9a837a
libdm: ensure first extent is always counted

If FIEMAP returns a single extent after the first call, no extent
boundary is detected and the first extent is not counted by the
normal mechanism.

In this case, increment nr_extents at the same time the extent is
added to the region table, before returning.
libdm/libdm-stats.c
This page took 0.033693 seconds and 5 git commands to generate.