Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in | Petr Rockai | 2012-02-23 | 2 | -1/+4 |
| | | | | lvm.conf *and* lvmetad is running. | ||||
* | Move lvmcache data structures behind an API (making the structures private to | Petr Rockai | 2012-02-10 | 1 | -11/+11 |
| | | | | lvmcache.c). No functional change. | ||||
* | Use dm_list_iterate_items_safe | Zdenek Kabelac | 2012-02-08 | 1 | -11/+4 |
| | | | | | And avoid direct access to list member variables. Inline _free_li(). | ||||
* | Report sector containing label in verbose message. | Alasdair Kergon | 2011-06-01 | 1 | -2/+4 |
| | |||||
* | Use new dev_open_readonly fn to prevent opening devices for read-write when ↵ | Peter Rajnoha | 2011-05-28 | 1 | -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 Kergon | 2010-09-30 | 1 | -2/+1 |
| | |||||
* | Speed up CRC32 calculations by using a larger lookup table. | Alasdair Kergon | 2010-09-27 | 1 | -4/+4 |
| | | | | Use -DDEBUG_CRC32 to revert to old function and check new one gives same result. | ||||
* | Use __attribute__ consistently throughout. | Alasdair Kergon | 2010-07-09 | 1 | -6/+6 |
| | |||||
* | Use log_error macro consistently throughout in place of log_err. | Alasdair Kergon | 2009-07-15 | 1 | -1/+1 |
| | |||||
* | Suppress warning on 64-bit big-endian computers (Sparc 64). | Mikulas Patocka | 2009-07-13 | 1 | -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 Wysochanski | 2009-07-08 | 1 | -1/+1 |
| | | | | Author: Dave Wysochanski <dwysocha@redhat.com> | ||||
* | Provide da and mda locations in debug message when writing text format label. | Alasdair Kergon | 2009-02-20 | 1 | -2/+3 |
| | |||||
* | Right, a simple build (without options) is working again. | Alasdair Kergon | 2008-11-03 | 1 | -10/+10 |
| | |||||
* | revert unnecessary 'stack's | Alasdair Kergon | 2008-09-15 | 1 | -1/+1 |
| | |||||
* | Not detecing label on disc is not error, remove <backtrace> from debug log | Milan Broz | 2008-08-28 | 1 | -3/+3 |
| | | | | and report it only if device cannot be read. | ||||
* | split orphan VG by format type | Alasdair Kergon | 2008-02-06 | 1 | -3/+6 |
| | |||||
* | a couple more compiler warnings | Alasdair Kergon | 2008-01-31 | 1 | -2/+2 |
| | |||||
* | Use stack return macros throughout. | Alasdair Kergon | 2008-01-30 | 1 | -16/+8 |
| | |||||
* | Rely upon internally-cached PV labels while corresponding VG lock is held. | Alasdair Kergon | 2008-01-29 | 1 | -4/+9 |
| | |||||
* | Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. | Alasdair Kergon | 2007-08-20 | 2 | -6/+6 |
| | |||||
* | Add 'scan_sector' parameter to label_read and _find_labeller to add | Dave Wysochanski | 2007-04-23 | 2 | -13/+20 |
| | | | | flexibility in searching for disk labels. | ||||
* | Adjust some alignments for ia64 and sparc. | Alasdair Kergon | 2006-11-30 | 2 | -10/+10 |
| | | | | (Some of the changes are probably unnecessary.) | ||||
* | Fix a label_verify error path. | Alasdair Kergon | 2006-11-14 | 1 | -3/+1 |
| | |||||
* | Fix an extra dev_close in a label_read error path. | Alasdair Kergon | 2006-06-08 | 1 | -1/+1 |
| | |||||
* | Make SIZE_SHORT the default for display_size(). | Alasdair Kergon | 2006-05-09 | 2 | -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 Kergon | 2006-04-13 | 1 | -3/+6 |
| | |||||
* | Fix vgexport/vgimport to set/reset PV exported flag so pv_attr is correct. | Alasdair Kergon | 2006-04-12 | 1 | -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 Kergon | 2006-04-11 | 1 | -3/+3 |
| | |||||
* | Use lvmcache_update_vgname_and_id throughout. | Alasdair Kergon | 2006-04-11 | 1 | -3/+3 |
| | |||||
* | Whenever vgname is captured, also capture vgid. | Alasdair Kergon | 2006-04-11 | 1 | -18/+34 |
| | |||||
* | Use hash, bitset, malloc, pool from libdevmapper. | Alasdair Kergon | 2005-10-16 | 1 | -5/+4 |
| | |||||
* | Basic support for mirrors. | Alasdair Kergon | 2005-06-01 | 1 | -10/+3 |
| | |||||
* | Improve detection of external changes affecting internal cache. | Alasdair Kergon | 2005-03-21 | 1 | -2/+10 |
| | |||||
* | read/write may be macros | Alasdair Kergon | 2005-03-10 | 1 | -2/+2 |
| | |||||
* | Begin to separate out segment types. | Alasdair Kergon | 2004-05-04 | 2 | -1/+5 |
| | |||||
* | Update copyright notices. | Alasdair Kergon | 2004-03-30 | 2 | -4/+22 |
| | |||||
* | Cope better when format functions are missing. | Alasdair Kergon | 2003-08-26 | 1 | -2/+9 |
| | |||||
* | Another sync point - numerous fixes & clean ups. | Alasdair Kergon | 2003-07-04 | 2 | -20/+18 |
| | |||||
* | Tidy various pre-processing incl. making libdl optional. | Alasdair Kergon | 2003-03-24 | 2 | -3/+2 |
| | |||||
* | Default stripesize 64k & config file setting for it; | Alasdair Kergon | 2002-12-19 | 2 | -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 Kergon | 2002-11-18 | 6 | -778/+262 |
| | |||||
* | Merge with text format branch. | Alasdair Kergon | 2002-04-24 | 4 | -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 Kergon | 2002-01-16 | 1 | -8/+10 |
| | |||||
* | Reduce 'no label found' message severity to debug level. | Alasdair Kergon | 2002-01-16 | 1 | -2/+2 |
| | |||||
* | o vgcfgrestore works ! (with the couple of examples I tried). | Joe Thornber | 2002-01-15 | 2 | -6/+4 |
| | |||||
* | o split the uuid -> device map out from vgcache | Joe Thornber | 2002-01-15 | 4 | -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 Caulfield | 2002-01-11 | 2 | -4/+4 |
| | |||||
* | o label.c now compiles. | Joe Thornber | 2002-01-11 | 2 | -19/+19 |
| | |||||
* | Change lvm2_label to use Joe's new label switch system. | Patrick Caulfield | 2002-01-11 | 2 | -97/+133 |
| | |||||
* | o _read_id function for import.c | Joe Thornber | 2002-01-10 | 2 | -2/+2 |
| |