diff options
Diffstat (limited to 'package/nfs-utils/patches/patch-utils_blkmapd_device-process_c')
-rw-r--r-- | package/nfs-utils/patches/patch-utils_blkmapd_device-process_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/nfs-utils/patches/patch-utils_blkmapd_device-process_c b/package/nfs-utils/patches/patch-utils_blkmapd_device-process_c new file mode 100644 index 000000000..b6536e14e --- /dev/null +++ b/package/nfs-utils/patches/patch-utils_blkmapd_device-process_c @@ -0,0 +1,11 @@ +--- nfs-utils-1.2.5.orig/utils/blkmapd/device-process.c 2011-09-24 13:55:15.000000000 +0200 ++++ nfs-utils-1.2.5/utils/blkmapd/device-process.c 2013-07-11 11:02:58.000000000 +0200 +@@ -296,7 +296,7 @@ decode_blk_volume(uint32_t **pp, uint32_ + off_t stripe_unit = vol->param.bv_stripe_unit; + /* Check limitations imposed by device-mapper */ + if ((stripe_unit & (stripe_unit - 1)) != 0 +- || stripe_unit < (off_t) (PAGE_SIZE >> 9)) ++ || stripe_unit < (off_t) (sysconf(_SC_PAGE_SIZE) >> 9)) + return -EIO; + BLK_READBUF(p, end, 4); + READ32(vol->bv_vol_n); |