On 09/10/2015 09:38 AM, Joe Perches wrote:ing will be printed. > > Maurizio, did you try the patch I posted? > I think it'll work, but it doesn't fix the > fundamental issue of %*pbl with large bitmaps.
I tested your patch, it works for the simple cases where bits are set below the S16_MAX limit, example: # modprobe scsi-debug dev_size_mb=256 lbpu=1 lbpws10=1 # vgcreate tsvg /dev/sdb # cat /sys/bus/pseudo/drivers/scsi_debug/map 0-15 <--- OK! # lvcreate -V200m -l99%FREE -T tsvg/pool -n lv1 --discards ignore # cat /sys/bus/pseudo/drivers/scsi_debug/map 0-31,2048-2055 <---- NO! It should be "0-31,2048-2055,501760-501871"! I think it's misleading. Can I suggest as a temporary solution to restore the old bitmap_scnlistprintf() function? > > Perhaps the thin wrapper conversions in lib/bitmap.c > in that commit for bitmap_scnprintf, bscnl_emit, and > bitmap_scnlistprintf should be reverted. > > Thanks, Maurizio Lombardi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/