Alasdair Kergon
3f507a26fb
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Alasdair Kergon
d5a46396b0
Add ps3disk devices.
2007-07-26 13:28:32 +00:00
Jim Meyering
5e84cb560d
Detect stream write failure reliably; new fn: lvm_fclose; use dm_fclose
...
* lib/misc/lvm-file.c (lvm_fclose): New function.
* lib/misc/lvm-file.h (lvm_fclose): Declare it.
* lib/config/config.c (write_config_file): Use the new function to detect
and diagnose unlikely write failure.
* lib/filters/filter-persistent.c (persistent_filter_dump): Likewise.
* lib/format_text/archive.c (archive_vg): Likewise.
* lib/format_text/format-text.c (_vg_write_file): Likewise.
* lib/log/log.c (fin_log): Similar, but use dm_fclose directly.
Include "\n" at end of each fprintf format string.
2007-07-24 17:48:08 +00:00
Jim Meyering
fa28cea152
Introduce is_same_inode macro, now including a comparison of st_dev.
...
* lib/misc/lvm-file.h (is_same_inode): Define.
* lib/filters/filter-persistent.c (persistent_filter_dump): Use is_same_inode
in place of a direct st_ino-only comparison.
* lib/locking/file_locking.c (_release_lock, _lock_file): Likewise.
2007-07-20 15:22:46 +00:00
Patrick Caulfield
505a0a8718
Add SUN's LDOM virtual block device to filters
...
Thanks to Fabio Massimo Di Nitto
2007-07-19 07:06:47 +00:00
Alasdair Kergon
d04e972d65
Move regex functions into libdevmapper.
2007-04-27 18:52:05 +00:00
Alasdair Kergon
dcdbbb3ecb
Add devices/preferred_names config regex list for displayed device names.
...
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
2007-04-26 16:44:59 +00:00
Alasdair Kergon
f9ee4395b0
also ignore mirrors
2007-01-25 23:03:48 +00:00
Alasdair Kergon
71f06d51ed
Add devices/ignore_suspended_devices to ignore suspended dm devices.
2007-01-25 21:22:30 +00:00
Alasdair Kergon
f813d41a76
Add some missing close() and fclose() return code checks.
...
Fix exit statuses of reporting tools (2.02.19).
2007-01-25 14:37:48 +00:00
Alasdair Kergon
6531e88761
Protect .cache manipulations with fcntl locking.
...
Change .cache timestamp comparisons to use ctime.
2006-11-04 03:34:10 +00:00
Alasdair Kergon
ff05e2e30d
Remove unused #defines from filter-md.c.
2006-10-04 16:03:17 +00:00
Alasdair Kergon
b0b60fafd5
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
a93fe79bc4
Add dm_split_words() and dm_split_lvm_name() to libdevmapper.
2006-08-21 12:07:03 +00:00
Alasdair Kergon
45dca55fc8
Make SIZE_SHORT the default for display_size().
...
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.
2006-05-09 21:23:51 +00:00
Alasdair Kergon
70e45ad37b
Check for libsepol.
...
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-19 15:33:07 +00:00
Alasdair Kergon
4e2c3a579d
xen xvd
2005-11-09 12:47:16 +00:00
Alasdair Kergon
bcc400dafa
Use dm_is_dm_major instead of local copy.
...
Allow mapped devices to be used as PVs safely.
2005-10-25 19:08:21 +00:00
Alasdair Kergon
67eb7723d6
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
b526f86b49
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
2005-09-16 18:53:01 +00:00
Alasdair Kergon
08771f9c89
Recognise aoe devices.
2005-08-08 17:54:23 +00:00
Alasdair Kergon
99df4f892d
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
20c4b1cbec
Add ramdisk.
2005-04-06 16:43:59 +00:00
Alasdair Kergon
8b6d584529
Improve detection of external changes affecting internal cache.
2005-03-21 22:40:35 +00:00
Alasdair Kergon
0a7a1eff3f
Avoid some compiler warnings.
2005-03-10 22:34:17 +00:00
Alasdair Kergon
e703342179
Suppress 'open failed' error messages during scanning.
2005-03-03 21:54:35 +00:00
Alasdair Kergon
23d84b2310
Recognise gnbd.
2005-01-19 18:56:01 +00:00
Alasdair Kergon
bfc9550e4e
Ignore sysfs symlinks when DT_UNKNOWN.
2004-12-21 18:29:46 +00:00
Alasdair Kergon
3dce4ed6f1
Skip devices that are too small to be PVs.
2004-12-21 17:54:52 +00:00
Alasdair Kergon
7e44dcc5bf
Additional device-handling debug messages.
...
Additional verbosity level -vvvv includes line numbers and backtraces.
Verbose messages now go to stderr not stdout.
Close any stray file descriptors before starting.
Refine partitionable checks for certain device types.
Allow devices/types to override built-ins.
2004-12-10 16:01:35 +00:00
Alasdair Kergon
b3e621dd9f
Improve filter debug msgs.
2004-11-24 20:36:52 +00:00
Alasdair Kergon
16521a6feb
pool debugging
2004-11-23 18:23:23 +00:00
Alasdair Kergon
cf2ec1229d
fix a md filter log mesg
2004-11-23 17:45:48 +00:00
Alasdair Kergon
f5b96ddf01
Detect partition table signature.
2004-11-23 11:44:04 +00:00
Alasdair Kergon
99249cff04
pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
2004-11-19 19:25:07 +00:00
Alasdair Kergon
0cdf7b0613
Separate out md superblock detection code.
2004-11-18 20:02:21 +00:00
Alasdair Kergon
9a2a702f3f
Recognise iseries/vd devices.
2004-08-18 19:13:01 +00:00
Alasdair Kergon
753a5edc4f
Cope with DT_UNKNOWN in sysfs.
2004-08-18 18:50:21 +00:00
Alasdair Kergon
0ac430892e
Fix device number handling for 2.6 kernels.
2004-07-01 15:14:29 +00:00
Alasdair Kergon
5bf92ced1a
i2o_block
2004-06-01 18:33:50 +00:00
Alasdair Kergon
c3941941ce
Support tagged config files.
2004-05-04 18:28:15 +00:00
Alasdair Kergon
8fa3bdd025
Set devices/md_component_detection = 1 to ignore devices containing md
...
superblocks. [Luca Berra]
2004-04-16 16:12:04 +00:00
Alasdair Kergon
3fed20d06a
Add power2
2004-04-14 17:33:51 +00:00
Alasdair Kergon
af9828e819
Fix sysfs filter to check fs type.
2004-04-06 16:47:59 +00:00
Alasdair Kergon
66ed5f82c4
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
529686d965
spelling corrections
2004-03-30 14:36:50 +00:00
Alasdair Kergon
eff6ba429a
Tidy sysfs includes
2004-03-26 18:54:55 +00:00
Alasdair Kergon
8703ca623f
rename config file vars & always use / as separator
2004-03-08 18:28:45 +00:00
Alasdair Kergon
3b3d0ea9eb
Sysfs block device filtering option for 2.6.
2004-02-13 14:46:04 +00:00
Alasdair Kergon
50f641e627
Add drbd.
2003-11-06 17:10:35 +00:00