summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-file.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop unreachable codeZdenek Kabelac2012-02-081-1/+0
|
* Add dm_device_has_holders fn to to check use of the device by another device.Peter Rajnoha2011-09-221-0/+20
| | | | | | | | Add dm_device_has_mounted_fs fn to check mounted filesystem on a device. This requires sysfs directory to be correctly set via dm_set_sysfs_dir (/sys by default). If sysfs dir is not used or it's set incorrectly, dm_device_has_{holders,mounted_fs} will return 0!
* Add missing check for allocation failureZdenek Kabelac2011-08-041-0/+5
| | | | Static analyzer discovered missing check.
* Fix some unmatching sign comparation gcc warningsZdenek Kabelac2011-04-081-1/+1
| | | | Simple replacement for unsigned type - usually in for() loops.
* Implement dmeventd -R, allowing dmeventd to be restarted without losingPetr Rockai2010-10-201-3/+10
| | | | monitoring state.
* Fix dm_create_lockfile error paths - incorrectly unlinked in-use lockfile.Alasdair Kergon2010-07-271-11/+20
| | | | (Jan Friesse)
* It's not enough to check for the kernel module in the case of clusterJonathan Earl Brassow2010-07-211-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | mirrors, we must also check that the log daemon (cmirrord) is running. The log module can be auto-loaded, but the daemon cannot be "auto-started". Failing to check for the daemon produces cryptic messages that customers have a hard time deciphering. (The system messages do report that the log daemon is not running, but people don't seem to find this message easily.) Here are examples of what is printed when the module is available, but the log daemon has not been started. [root@bp-01 LVM2]# lvcreate -m1 -l1 -n lv vg Shared cluster mirrors are not available. [root@bp-01 LVM2]# lvcreate -m1 -l1 -n lv vg -v Setting logging type to disk Finding volume group "vg" Archiving volume group "vg" metadata (seqno 3). Creating logical volume lv Executing: /sbin/modprobe dm-log-userspace Cluster mirror log daemon is not running Shared cluster mirrors are not available. Creating volume group backup "/etc/lvm/backup/vg" (seqno 4).
* Add dm_create_lockfile to libdm to handle pidfiles for all daemons.Fabio M. Di Nitto2010-07-131-0/+82
| | | | | | Switch dmeventd to use dm_create_lockfile and drop duplicate code. Allow clvmd pidfile to be configurable. Switch cmirrord and clvmd to use dm_create_lockfile.
* more tweaking to get things to compile - dmlib.h for log fns, list.hAlasdair Kergon2008-11-031-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-211-4/+3
|
* Export dm_create_dir (was create_dir) to help fix LVM2 link errorJim Meyering2007-07-281-1/+1
| | | | | | | | | * lib/libdm-file.c (dm_create_dir): Rename from create_dir. * lib/libdevmapper.h (dm_create_dir): Declare. * lib/.exported_symbols: Add dm_create_dir. * lib/ioctl/libdm-iface.c (_create_control): Update sole use. Patch by Jun'ichi Nomura. Details in http://www.redhat.com/archives/lvm-devel/2007-July/msg00040.html
* Make the libdevmapper version of create_dir equivalent to the LVM2 one.Jim Meyering2007-07-281-2/+4
| | | | | (_create_dir_recursive): Refrain from logging a mkdir failure due to EROFS. Patch by Jun'ichi Nomura.
* Introduce log_sys_* macros from LVM2.Jim Meyering2007-07-281-4/+2
| | | | | Convert existing "<string>: <function> failed: <strerror>" type messages to use this macro. Patch by Jun'ichi Nomura.
* dm_fclose: new functionJim Meyering2007-07-241-0/+13
| | | | | | * lib/libdevmapper.h: Declare it. * lib/libdm-file.c (dm_fclose): Define it. * lib/.exported_symbols: Add dm_fclose.
* coverity fixesAlasdair Kergon2006-05-101-6/+8
|
* Rename _log to dm_log and export.Alasdair Kergon2006-01-311-7/+3
| | | | Fix misc compile-time warnings.
* Add option to compile without ioctl for testing.Alasdair Kergon2005-01-271-1/+4
|
* Attempt to fix /dev/mapper/control transparently if it's wrong.Alasdair Kergon2005-01-061-0/+73