summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2015-06-08 14:48:38 +0200
committerJens Axboe <axboe@fb.com>2015-11-25 09:22:03 -0700
commit8011e2490907c267e8be02a549246082d537e082 (patch)
tree129376759401915b665e06c5f65c91fe65c90494 /fs/kernfs
parent5f7c01249bea67c32a1a1551a8f2fe0b8b801ab4 (diff)
downloadtalos-op-linux-8011e2490907c267e8be02a549246082d537e082.tar.gz
talos-op-linux-8011e2490907c267e8be02a549246082d537e082.zip
drbd: fix error path during resize
In case the lower level device size changed, but some other internal details of the resize did not work out, drbd_determine_dev_size() would try to restore the previous settings, trusting drbd_md_set_sector_offsets() to "do the right thing", but overlooked that this internally may set the meta data base offset based on device size. This could end up with incomplete on-disk meta data layout change, and ultimately lead to data corruption (if the failure was not noticed or ignored by the operator, and other things go wrong as well). Just remember all meta data related offsets/sizes, and on error restore them all. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud