1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib
Dave Wysochanski afcd9399a9 Add an open_mode to the vg struct for liblvm - enforce read / write semantics.
For now, a simple way to enforce the read/write semantics is to just save the
open mode of the VG.  If the caller uses lvm_vg_create, the mode is write.
The caller using lvm_vg_open can use either read or write to open the VG.
Once we have this, we enforce the permissions on each API call and don't allow
a caller to modify a VG that has not been opened properly.

This may be better combined with the locking mode, but I view that as future
cleanup, past this initial release.  The intial release should enforce the
basic object semantics though, as described in the lvm.h file.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2009-07-28 15:14:56 +00:00
..
activate Fix backward compatibility for major:minor query. 2009-06-17 20:55:24 +00:00
cache Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
commands Pass struct cmd_context as a first argument to init_multiple_segtypes. 2009-07-21 20:00:02 +00:00
config Rename _override_settings into override_config_tree_from_string and move. 2009-07-27 21:01:56 +00:00
datastruct Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
device Cast MINOR() in _md_sysfs_attribute_snprintf()'s dm_snprintf() call. 2009-07-20 18:44:13 +00:00
display Update display.c to use vg_free(vg) instead of duplicating the calculation. 2009-07-27 10:18:31 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Add extended device (blkext) and MD partition (mdp) types to filters. 2009-07-09 22:34:02 +00:00
format1 Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
format_pool Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
format_text Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Add global/wait_for_locks to lvm.conf so blocking on locks can be disabled. 2009-07-24 23:28:55 +00:00
log Fix so only log_error and log_fatal set EUNCLASSIFIED. 2009-07-16 13:13:33 +00:00
metadata Add an open_mode to the vg struct for liblvm - enforce read / write semantics. 2009-07-28 15:14:56 +00:00
mirror Fix confusing metadata syntax error messages. 2009-07-09 11:29:00 +00:00
misc Add an API version number, LVM_LIBAPI, to the VERSION string. 2009-07-22 20:01:28 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report Refactor a few report field calculations into separate functions. 2009-07-26 12:41:09 +00:00
snapshot Fix snapshot segment import to not use duplicate segments & replace. 2009-05-13 21:21:58 +00:00
striped Fix confusing metadata syntax error messages. 2009-07-09 11:29:00 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Build shared parts with 'make' command (mpatocka) 2009-06-03 11:31:06 +00:00