summaryrefslogtreecommitdiffstats
path: root/lib/label
Commit message (Collapse)AuthorAgeFilesLines
* The lvmetad client-side integration. Only active when use_lvmetad = 1 is set inPetr Rockai2012-02-232-1/+4
| | | | lvm.conf *and* lvmetad is running.
* Move lvmcache data structures behind an API (making the structures private toPetr Rockai2012-02-101-11/+11
| | | | lvmcache.c). No functional change.
* Use dm_list_iterate_items_safeZdenek Kabelac2012-02-081-11/+4
| | | | | And avoid direct access to list member variables. Inline _free_li().
* Report sector containing label in verbose message.Alasdair Kergon2011-06-011-2/+4
|
* Use new dev_open_readonly fn to prevent opening devices for read-write when ↵Peter Rajnoha2011-05-281-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Add dm_zalloc and use it and dm_pool_zalloc throughout.Alasdair Kergon2010-09-301-2/+1
|
* Speed up CRC32 calculations by using a larger lookup table.Alasdair Kergon2010-09-271-4/+4
| | | | Use -DDEBUG_CRC32 to revert to old function and check new one gives same result.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-6/+6
|
* Use log_error macro consistently throughout in place of log_err.Alasdair Kergon2009-07-151-1/+1
|
* Suppress warning on 64-bit big-endian computers (Sparc 64).Mikulas Patocka2009-07-131-1/+1
| | | | | | | | | | | | | xlate64 produces unsigned long long type, but PRIu64 is defined to accept argument unsigned long type (on 64-bit machines). On existing machines, both types have the same size, so it works, but it is still wrong and produces a warning. Fix it by using a cast to uint64_t --- according to the standard, PRIu64 argument matches type uint64_t. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
* Make exit paths more robust when some init function fails.Dave Wysochanski2009-07-081-1/+1
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Provide da and mda locations in debug message when writing text format label.Alasdair Kergon2009-02-201-2/+3
|
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-10/+10
|
* revert unnecessary 'stack'sAlasdair Kergon2008-09-151-1/+1
|
* Not detecing label on disc is not error, remove <backtrace> from debug logMilan Broz2008-08-281-3/+3
| | | | and report it only if device cannot be read.
* split orphan VG by format typeAlasdair Kergon2008-02-061-3/+6
|
* a couple more compiler warningsAlasdair Kergon2008-01-311-2/+2
|
* Use stack return macros throughout.Alasdair Kergon2008-01-301-16/+8
|
* Rely upon internally-cached PV labels while corresponding VG lock is held.Alasdair Kergon2008-01-291-4/+9
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-202-6/+6
|
* Add 'scan_sector' parameter to label_read and _find_labeller to addDave Wysochanski2007-04-232-13/+20
| | | | flexibility in searching for disk labels.
* Adjust some alignments for ia64 and sparc.Alasdair Kergon2006-11-302-10/+10
| | | | (Some of the changes are probably unnecessary.)
* Fix a label_verify error path.Alasdair Kergon2006-11-141-3/+1
|
* Fix an extra dev_close in a label_read error path.Alasdair Kergon2006-06-081-1/+1
|
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-092-5/+5
| | | | | | | Fix some memory leaks in error paths found by coverity. Use C99 struct initialisers. Move DEFS into configure.h. Clean-ups to remove miscellaneous compiler warnings.
* When choosing between identically-named VGs, also consider creation_host.Alasdair Kergon2006-04-131-3/+6
|
* Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct.Alasdair Kergon2006-04-121-3/+3
| | | | Add vgid to struct physical_volume and pass with vg_name to some functions.
* When scanning, also record whether or not VG is exported.Alasdair Kergon2006-04-111-3/+3
|
* Use lvmcache_update_vgname_and_id throughout.Alasdair Kergon2006-04-111-3/+3
|
* Whenever vgname is captured, also capture vgid.Alasdair Kergon2006-04-111-18/+34
|
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-161-5/+4
|
* Basic support for mirrors.Alasdair Kergon2005-06-011-10/+3
|
* Improve detection of external changes affecting internal cache.Alasdair Kergon2005-03-211-2/+10
|
* read/write may be macrosAlasdair Kergon2005-03-101-2/+2
|
* Begin to separate out segment types.Alasdair Kergon2004-05-042-1/+5
|
* Update copyright notices.Alasdair Kergon2004-03-302-4/+22
|
* Cope better when format functions are missing.Alasdair Kergon2003-08-261-2/+9
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-042-20/+18
|
* Tidy various pre-processing incl. making libdl optional.Alasdair Kergon2003-03-242-3/+2
|
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-192-3/+5
| | | | | | Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
* Some new features.Alasdair Kergon2002-11-186-778/+262
|
* Merge with text format branch.Alasdair Kergon2002-04-244-365/+403
| | | | | | | | | | | | | | | | | | | Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
* Remove a duplicate disk read (can_handle).Alasdair Kergon2002-01-161-8/+10
|
* Reduce 'no label found' message severity to debug level.Alasdair Kergon2002-01-161-2/+2
|
* o vgcfgrestore works ! (with the couple of examples I tried).Joe Thornber2002-01-152-6/+4
|
* o split the uuid -> device map out from vgcacheJoe Thornber2002-01-154-4/+110
| | | | | | | o roll vgcache back to agk's implementation, we'll revisit this as part of the cluster integration. o change the extra_info field in a label to be a void *
* Couple of typos fixed.Patrick Caulfield2002-01-112-4/+4
|
* o label.c now compiles.Joe Thornber2002-01-112-19/+19
|
* Change lvm2_label to use Joe's new label switch system.Patrick Caulfield2002-01-112-97/+133
|
* o _read_id function for import.cJoe Thornber2002-01-102-2/+2
|