Jim Meyering
c93e6b5f79
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
35b13fdb5e
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
e6edd1d7af
Move regex functions into libdevmapper.
2007-04-27 18:52:05 +00:00
Alasdair Kergon
4f2f566b06
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
41aec14ed5
also ignore mirrors
2007-01-25 23:03:48 +00:00
Alasdair Kergon
f247a4e76f
Add devices/ignore_suspended_devices to ignore suspended dm devices.
2007-01-25 21:22:30 +00:00
Alasdair Kergon
2e1b92e3ea
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
c1c16a8f01
Protect .cache manipulations with fcntl locking.
...
Change .cache timestamp comparisons to use ctime.
2006-11-04 03:34:10 +00:00
Alasdair Kergon
7089e02ce1
Remove unused #defines from filter-md.c.
2006-10-04 16:03:17 +00:00
Alasdair Kergon
0550c1b618
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
7d7736b7b4
Add dm_split_words() and dm_split_lvm_name() to libdevmapper.
2006-08-21 12:07:03 +00:00
Alasdair Kergon
72b2cb613a
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
8a2fc58645
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
436d36943d
xen xvd
2005-11-09 12:47:16 +00:00
Alasdair Kergon
352a99b95a
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
2262b32057
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
68366c99b2
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
2005-09-16 18:53:01 +00:00
Alasdair Kergon
398c74b263
Recognise aoe devices.
2005-08-08 17:54:23 +00:00
Alasdair Kergon
60f13f01d2
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
b12f3c5b9d
Add ramdisk.
2005-04-06 16:43:59 +00:00
Alasdair Kergon
e5b836d2d6
Improve detection of external changes affecting internal cache.
2005-03-21 22:40:35 +00:00
Alasdair Kergon
7e0b7fd0e5
Avoid some compiler warnings.
2005-03-10 22:34:17 +00:00
Alasdair Kergon
aa70fe8b71
Suppress 'open failed' error messages during scanning.
2005-03-03 21:54:35 +00:00
Alasdair Kergon
c44c015a2d
Recognise gnbd.
2005-01-19 18:56:01 +00:00
Alasdair Kergon
f6ab00eb54
Ignore sysfs symlinks when DT_UNKNOWN.
2004-12-21 18:29:46 +00:00
Alasdair Kergon
d46fd67fb6
Skip devices that are too small to be PVs.
2004-12-21 17:54:52 +00:00
Alasdair Kergon
09a7dce6be
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
7f1e8db796
Improve filter debug msgs.
2004-11-24 20:36:52 +00:00
Alasdair Kergon
bd46a496c7
pool debugging
2004-11-23 18:23:23 +00:00
Alasdair Kergon
8a9351000e
fix a md filter log mesg
2004-11-23 17:45:48 +00:00
Alasdair Kergon
985ef4617f
Detect partition table signature.
2004-11-23 11:44:04 +00:00
Alasdair Kergon
5ab925debf
pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
2004-11-19 19:25:07 +00:00
Alasdair Kergon
b2dd0bb1d0
Separate out md superblock detection code.
2004-11-18 20:02:21 +00:00
Alasdair Kergon
acac21c462
Recognise iseries/vd devices.
2004-08-18 19:13:01 +00:00
Alasdair Kergon
cf076dd366
Cope with DT_UNKNOWN in sysfs.
2004-08-18 18:50:21 +00:00
Alasdair Kergon
8bad033938
Fix device number handling for 2.6 kernels.
2004-07-01 15:14:29 +00:00
Alasdair Kergon
2ea0f30ffa
i2o_block
2004-06-01 18:33:50 +00:00
Alasdair Kergon
25579907fc
Support tagged config files.
2004-05-04 18:28:15 +00:00
Alasdair Kergon
01c6121ba5
Set devices/md_component_detection = 1 to ignore devices containing md
...
superblocks. [Luca Berra]
2004-04-16 16:12:04 +00:00
Alasdair Kergon
c7a7f85737
Add power2
2004-04-14 17:33:51 +00:00
Alasdair Kergon
fb53aa7bc6
Fix sysfs filter to check fs type.
2004-04-06 16:47:59 +00:00
Alasdair Kergon
6606c3ae81
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
685d88b26a
spelling corrections
2004-03-30 14:36:50 +00:00
Alasdair Kergon
23670fbe43
Tidy sysfs includes
2004-03-26 18:54:55 +00:00
Alasdair Kergon
814643d8a2
rename config file vars & always use / as separator
2004-03-08 18:28:45 +00:00
Alasdair Kergon
a8537e6f59
Sysfs block device filtering option for 2.6.
2004-02-13 14:46:04 +00:00
Alasdair Kergon
40e975869b
Add drbd.
2003-11-06 17:10:35 +00:00
Alasdair Kergon
b896caa19b
Improve build robustness.
2003-04-15 13:24:42 +00:00
Alasdair Kergon
258c50db74
Cope with intentionally missing /proc.
2003-04-15 13:21:38 +00:00
Alasdair Kergon
26e7f2e0c4
Tidy various pre-processing incl. making libdl optional.
2003-03-24 18:08:53 +00:00