1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/device
David Teigland 7f347698e3 Fix rounding writes up to sector size
Do this at two levels, although one would be enough to
fix the problem seen recently:

- Ignore any reported sector size other than 512 of 4096.
  If either sector size (physical or logical) is reported
  as 512, then use 512.  If neither are reported as 512,
  and one or the other is reported as 4096, then use 4096.
  If neither is reported as either 512 or 4096, then use 512.

- When rounding up a limited write in bcache to be a multiple
  of the sector size, check that the resulting write size is
  not larger than the bcache block itself.  (This shouldn't
  happen if the sector size is 512 or 4096.)
2019-07-26 14:21:08 -05:00
..
bcache-utils.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
bcache.c Fix rounding writes up to sector size 2019-07-26 14:21:08 -05:00
bcache.h headers: use configure.h as 1st. header 2018-12-14 15:09:13 +01:00
dev-cache.c enable full md component detection at the right time 2019-07-10 13:30:50 -05:00
dev-cache.h enable full md component detection at the right time 2019-07-10 13:30:50 -05:00
dev-dasd.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-ext-udev-constants.h dev-type: check for DEVLINKS udev db variable existence if udev_device_get_is_initialized fn is not present 2016-09-06 13:21:29 +02:00
dev-ext.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-io.c Fix rounding writes up to sector size 2019-07-26 14:21:08 -05:00
dev-luks.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-lvm1-pool.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-md.c enable full md component detection at the right time 2019-07-10 13:30:50 -05:00
dev-swap.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dev-type.c Additional MD component checking 2019-06-07 13:27:16 -05:00
dev-type.h devs: rename dev_is_md dev_is_md_component 2019-05-21 11:44:39 -05:00
device-types.h devices: Recognise Veritas Dynamic Multipathing 2017-01-10 22:23:23 +00:00
device.h Fix rounding writes up to sector size 2019-07-26 14:21:08 -05:00