--- tapset/ioblock.stp-dist 2008-12-04 18:02:22.000000000 +0100 +++ tapset/ioblock.stp 2008-12-04 18:03:54.000000000 +0100 @@ -122,7 +122,9 @@ vcnt = $bio->bi_vcnt idx = $bio->bi_idx phys_segments = $bio->bi_phys_segments +%(kernel_v < "2.6.27" %? hw_segments = $bio->bi_hw_segments +%) size = $bio->bi_size bdev = $bio->bi_bdev @@ -176,6 +178,8 @@ vcnt = $bio->bi_vcnt idx = $bio->bi_idx phys_segments = $bio->bi_phys_segments +%(kernel_v < "2.6.27" %? hw_segments = $bio->bi_hw_segments +%) size = $bio->bi_size }