summaryrefslogtreecommitdiffstats
path: root/lib/uuid/uuid.c
Commit message (Collapse)AuthorAgeFilesLines
* Const fixingZdenek Kabelac2011-02-181-1/+1
| | | | | | | | | | | | | | | | Fixing some const warnings - with API change in: int vg_extend(struct volume_group *vg, int pv_count, const char *const *pv_names, Change is needed - as lvm2api expects const behaviour here. So vg_extend() is doing local strdup for unescaping. skip_dev_dir return const char* from const char* vg_name. Rest of the patch is cleanup of related warnings. Also using dm_report_filed_string() API change to simplify casting in _string_disp and _lvname_disp.
* Avoid rebuilding of uuid validation tableZdenek Kabelac2011-01-281-0/+1
| | | | Small CPU relax...
* Add id_format_and_copy() common function and call from _uuid_disp.Dave Wysochanski2010-09-301-0/+15
| | | | | Add supporting uuid function to allocate memory and call id_write_format. Call id_format_and_copy from _uuid_disp.
* Use log_error macro consistently throughout in place of log_err.Alasdair Kergon2009-07-151-4/+5
|
* Add generic function to read /dev/urandom, used in uuid calculation.Dave Wysochanski2008-12-071-12/+2
|
* more fixesAlasdair Kergon2008-11-041-0/+1
|
* Add ctype.h header file to silence compile warning on 'isdigit'.Dave Wysochanski2008-08-291-0/+1
| | | | uuid/uuid.c:86: warning: implicit declaration of function 'isdigit'
* Fix vgconvert logical volume id metadata validation.Milan Broz2008-08-281-0/+18
| | | | | If volume group is downconverted to lvm1 format, check if lvid has supported format for conversion to lv_num in lvm1.
* added const and saved relocation entryZdenek Kabelac2008-08-071-2/+2
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-5/+5
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Fix uuid_from_num() buffer overrun.Alasdair Kergon2006-05-101-2/+0
|
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-5/+6
| | | | | | | 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.
* Always fail if random id generation fails.Alasdair Kergon2005-01-201-7/+7
|
* Update copyright notices.Alasdair Kergon2004-03-301-2/+11
|
* spelling correctionsAlasdair Kergon2004-03-301-1/+1
|
* If PV/VG uuids are missing, generate them from the pv/vg numbers.Alasdair Kergon2004-01-091-0/+12
| | | | | [This situation could occur if the uuids were oritinally created by LVM1 on a system without /dev/urandom.]
* Don't use !# in randomly-generated uuids.Alasdair Kergon2003-09-151-1/+5
|
* Some tidyups and minor fixes.Alasdair Kergon2003-08-201-1/+1
|
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-191-12/+12
| | | | | | 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
* Refactoring.Alasdair Kergon2002-11-181-2/+1
|
* Merge with text format branch.Alasdair Kergon2002-04-241-1/+9
| | | | | | | | | | | | | | | | | | | 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.
* o Use new LCK_HOLD flag to indicate whether lock should be held on returnAlasdair Kergon2002-03-051-4/+8
| | | | | | | | | from lock_vol() - otherwise it now attempts to acquire the lock and then immediately releases it. o Extend the id field in struct logical_volume to hold VG uuid + LV uuid for format1. This unique lvid can be used directly when calling lock_vol(). o Add the VG uuid to vgcache to make VG uuid lookups possible. (Another step towards using them instead of VG names internally.)
* Generate LV uuid from lv_number when reading in LVs.Alasdair Kergon2002-02-211-0/+26
|
* o split the uuid -> device map out from vgcacheJoe Thornber2002-01-151-2/+2
| | | | | | | 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 *
* Missing close() in error case.Alasdair Kergon2002-01-071-0/+1
|
* o Revert to the 6-4-4-4-4-4-6 format for uuid'sJoe Thornber2002-01-041-13/+35
| | | | o When reading a uuid all -'s are stripped, wherever they are.
* o Added a quick vgcfgbackup, needs parameters as yet.Joe Thornber2001-12-201-1/+2
|
* o sync backup changesJoe Thornber2001-12-201-1/+1
|
* o silly bugsJoe Thornber2001-12-121-2/+3
|
* o Pretty print and read for uuid'sJoe Thornber2001-12-111-1/+63
|
* o LGPL list implementationJoe Thornber2001-10-311-1/+1
|
* o pvcreateJoe Thornber2001-10-121-0/+49
o added uuid unit o stubbed partition stuff