1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/label
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
..
hints.c hints: exclude md components 2019-05-21 11:58:01 -05:00
hints.h hints: skip hint flock if nolocking option is set 2019-04-29 13:01:15 -05:00
label.c Fix rounding writes up to sector size 2019-07-26 14:21:08 -05:00
label.h scanning: open devs rw when rescanning for write 2019-06-21 10:57:49 -05:00