1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
Peter Rajnoha c08c564e21 Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary.
Before, we used vg_write_lock_held call to determnine the way a device is
opened. Unfortunately, this opened many devices in RW mode when it was not
really necessary. With the OPTIONS+="watch" rule used in the udev rules,
this could fire numerous events while closing such devices (and it caused
useless scans from within udev rules in return).

A common bug we hit with this was with the lvremove command which was unable
to remove the LV since it was being opened from within the udev rules. This
patch should minimize such situations (at least with respect to LVM handling
of devices).

Though there's still a possibility someone will open a device 'outside' in
parallel and fire the event based on the watch rule when closing a device
once opened for RW.
2011-05-28 09:48:14 +00:00
..
archive.c Various cleanups for fid mem and ref_count changes. 2011-03-11 15:08:31 +00:00
archiver.c Various cleanups for fid mem and ref_count changes. 2011-03-11 15:08:31 +00:00
archiver.h Fix remote metadata backup for clvmd 2009-04-22 09:39:45 +00:00
export.c Add missing printf attributes 2011-04-08 14:21:34 +00:00
flags.c s/MIRROR_NOTSYNCED/LV_NOTSYNCED/ - Flag will may refer to more than just mirrors 2011-03-29 12:51:57 +00:00
format-text.c Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00
format-text.h Make create_text_context fn static and move it inside create_instance fn. 2011-03-11 14:45:17 +00:00
import_vsn1.c test update without WHATS_NEW to check it gives warning now 2011-04-29 19:06:17 +00:00
import-export.h Add more strict const pointers around config tree 2010-12-20 13:12:55 +00:00
import.c Change import_vg_from_buffer to use config_tree 2011-01-10 13:13:42 +00:00
layout.h more metadataignore message/code cleanup 2010-06-30 17:13:05 +00:00
tags.c Add more strict const pointers around config tree 2010-12-20 13:12:55 +00:00
text_export.h Export function out_text_with_comment() and add outfc() macro that checks 2010-01-07 14:45:28 +00:00
text_import.h Update a few more uint64_t's related to the 64-bit status change. 2009-12-04 17:48:32 +00:00
text_label.c Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00