dm: merge max_hw_sector

Make sure dm honours max_hw_sectors of underlying devices

  We still have no firm testing evidence in support of this patch but
  believe it may help to resolve some bug reports.  - agk

Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
This commit is contained in:
Neil Brown 2007-12-13 14:16:04 +00:00 • committed by Alasdair G Kergon
commit 91212507f9
2 changed files with 10 additions and 0 deletions

View file

@ -115,6 +115,7 @@ struct io_restrictions {
unsigned short max_hw_segments;
unsigned short hardsect_size;
unsigned int max_segment_size;
unsigned int max_hw_sectors;
unsigned long seg_boundary_mask;
unsigned long bounce_pfn;
unsigned char no_cluster; /* inverted so that 0 is default */