1 PAGE_SIZE is not exported by all architectures as it is not fixed: it can depend on the model of the machine. So it's better to query the system configuration for the actual page size on the machine.
4 utils/blkmapd/device-process.c | 2 +-
5 1 files changed, 1 insertions(+), 1 deletions(-)
7 diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c
8 index 27ff374..652a7a8 100644
9 --- a/utils/blkmapd/device-process.c
10 +++ b/utils/blkmapd/device-process.c
11 @@ -296,7 +296,7 @@ decode_blk_volume(uint32_t **pp, uint32_t *end, struct bl_volume *vols, int voln
12 off_t stripe_unit = vol->param.bv_stripe_unit;
13 /* Check limitations imposed by device-mapper */
14 if ((stripe_unit & (stripe_unit - 1)) != 0
15 - || stripe_unit < (off_t) (PAGE_SIZE >> 9))
16 + || stripe_unit < (off_t) (sysconf(_SC_PAGE_SIZE) >> 9))
18 BLK_READBUF(p, end, 4);
19 READ32(vol->bv_vol_n);