1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
Heming Zhao 13c254fc05 fix dev_unset_last_byte after write error
dev_unset_last_byte() must be called while the fd is still valid.
After a write error, dev_unset_last_byte() must be called before
closing the dev and resetting the fd.

In the write error path, dev_unset_last_byte() was being called
after label_scan_invalidate() which meant that it would not unset
the last_byte values.

After a write error, dev_unset_last_byte() is now called in
dev_write_bytes() before label_scan_invalidate(), instead of by
the caller of dev_write_bytes().

In the common case of a successful write, the sequence is still:
dev_set_last_byte(); dev_write_bytes(); dev_unset_last_byte();

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
2019-11-13 09:36:58 -06:00
..
cache_manip.c cachevol: use cachepool code for metadata size 2019-10-21 12:13:33 -05:00
lv_alloc.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lv_manip.c lvextend: fix resizing volumes of different segtype 2019-11-11 22:44:25 +01:00
lv.c writecache: use dm suffixes and lv attributes 2019-09-20 14:08:51 -05:00
lv.h Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
merge.c lvconvert: cachevol LV can have multiple segments 2019-09-20 09:59:37 -05:00
metadata-exported.h lv_manip: add lv_uniq_rename_update 2019-10-21 12:14:15 +02:00
metadata.c lvmlockd: fix cachevol locking 2019-10-25 14:08:59 -05:00
metadata.h vgck: let updatemetadata repair mismatched metadata 2019-10-11 12:57:39 -05:00
mirror.c fix dev_unset_last_byte after write error 2019-11-13 09:36:58 -06:00
pool_manip.c cachevol: move flag setting after taking archive 2019-10-17 13:03:50 +02:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_manip.c pvresize: add missing return 2018-06-08 14:36:56 +02:00
pv_map.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv_map.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.c lvmcache: renaming functions and variables 2019-08-16 13:26:11 -05:00
pv.h metadata: import device name hint from metadata 2019-09-30 11:38:10 -05:00
raid_manip.c raid: drop internal error 2019-10-31 15:31:30 +01:00
segtype.c segtype: add linear 2018-06-05 16:23:18 +02:00
segtype.h Add dm-writecache support 2018-11-06 14:18:41 -06:00
snapshot_manip.c snapshot: use single merging sequence 2019-10-26 00:49:16 +02:00
takeover_matrix.h lvconvert: add infrastructure for RaidLV reshaping support 2017-02-24 05:20:58 +01:00
thin_manip.c lv_manip: add synchronizations 2019-08-26 15:32:19 +02:00
vdo_manip.c vdo: introduce get_vdo_write_policy_name 2019-10-04 17:31:55 +02:00
vg.c improve reading and repairing vg metadata 2019-06-07 15:54:04 -05:00
vg.h metadata: include description with command in metadata areas 2019-06-20 16:09:05 -05:00
writecache_manip.c writecache: move code into new file 2019-09-24 15:51:05 -05:00