| 1 | --- nfs-utils-1.2.5/utils/blkmapd/device-process.c_orig 2011-10-05 08:45:08.315683126 +0200 |
| 2 | +++ nfs-utils-1.2.5/utils/blkmapd/device-process.c 2011-10-05 08:45:32.955689997 +0200 |
| 3 | @@ -296,7 +296,7 @@ |
| 4 | off_t stripe_unit = vol->param.bv_stripe_unit; |
| 5 | /* Check limitations imposed by device-mapper */ |
| 6 | if ((stripe_unit & (stripe_unit - 1)) != 0 |
| 7 | - || stripe_unit < (off_t) (PAGE_SIZE >> 9)) |
| 8 | + || stripe_unit < (off_t) (sysconf(_SC_PAGE_SIZE) >> 9)) |
| 9 | return -EIO; |
| 10 | BLK_READBUF(p, end, 4); |
| 11 | READ32(vol->bv_vol_n); |