summaryrefslogtreecommitdiffstats
path: root/WHATS_NEW_DM
Commit message (Collapse)AuthorAgeFilesLines
* config: require dm_config_create_value for dm_config_node's valuePeter Rajnoha2012-08-271-0/+1
| | | | | | | | | | | | | | | | | If we were defining a section (which is a node without a value) and the value was created automatically on dm_config_create_node call, we were wasting resources as the next step after creating the config node itself was assigning NULL for the node's value. The dm_config_node_create + dm_config_create_value sequence should be used instead for settings and dm_config_node_create alone for sections. The majority of the code already used the correct sequence. Though with dm_config_node_create fn creating the value as well, the pool memory was being trashed this way. This patch removes the node value initialization on dm_config_create_node fn call and keeps it for the direct dm_config_create_value fn call.
* dmsetup: check if new_name is non NULLZdenek Kabelac2012-08-231-0/+1
|
* dmsetup: fix memleak in _get_split_nameZdenek Kabelac2012-08-231-0/+4
| | | | Free allocated buffer in _get_split_name error path.
* thin: use discards as plural rather than singularAlasdair G Kergon2012-08-071-1/+1
| | | | Global change from --discard to --discards, as that feels more natural.
* release: update version/WHATS_NEWAlasdair G Kergon2012-08-071-4/+9
|
* dmsetup: allow --noflush with status/wait for thinAlasdair G Kergon2012-07-271-0/+1
| | | | | Allow --noflush with dmsetup status and wait (for thin target 1.3.0 / ioctl 4.23.0).
* config: fix one-node dumpconfig, add dm_config_write_one_nodePeter Rajnoha2012-07-201-0/+1
| | | | | | | | | | | | | | | | | | A regression introduced in 2.02.89 (11e520256b3005ed813ce83f8770aaab74edef3f) caused the lvm dumpconfig <node> to print out the node as well as its subsequent siblings. The information about "only_one" mode got lost. Before this patch (just an example node): # lvm dumpconfig global/use_lvmetad use_lvmetad=1 thin_check_executable="/usr/sbin/thin_check" thin_check_options="-q" (...all nodes to the end of the section) With this patch applied: # lvm dumpconfig global/use_lvmetad use_lvmetad=1
* libdm: support reserve and release metadata snap msgZdenek Kabelac2012-07-181-0/+1
| | | | Add support for new message types for thinp target 1.1
* libdm: add support for external origin and discardZdenek Kabelac2012-07-181-0/+1
|
* udev: udev rules cleanupPeter Rajnoha2012-06-271-0/+2
| | | | | | | | | | | | | | | | Remove executable path detection in udev rules and use sbindir that is configured, but still provide the original functionality by means of 'configure --enable-udev-rule-exec-detection'. Normally, the exec path for the tools called in udev rules should not differ from the sbindir used, however, there are cases this is necessary. For example different environments could be assembled in a way that these path differ for some reason (distribution installer, initrd ...). This functionality is kept for compatibility only. Any environment moving the binaries around and using different paths should be fixed eventually!
* configure: run directory configuration cleanupPeter Rajnoha2012-06-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were several hard-coded values for run directory around the code. Also, some tools are DM specific only, others are LVM specific and there was no distinction made here before. With this patch applied, we have this cleaned up a bit (subsystem in brackets, defaults in parentheses): [common] configurable PID_DIR (/var/run) lvm [lvm] configurable RUN_DIR (/var/run/lvm) configurable locking dir (/var/lock/lvm) clvmd [lvm] configurable pid file (PID_DIR/clvmd.pid) socket (RUN_DIR/clvmd.sock) lvmetad [lvm] configurable pid file (PID_DIR/lvmetad.pid) socket (RUN_DIR/lvmetad.socket) dm [dm] configurable DM_RUN_DIR (/var/run) cmirrord [dm] configurable pid file (PID_DIR/cmirrord.pid) dmeventd [dm] configurable pid file (PID_DIR/dmeventd.pid) server fifo (DM_RUN_DIR/dmeventd-server) client fifo (DM_RUN_DIR/dmeventd-client) The changes briefly: - added configure --with-default-pid-dir - added configure --with-default-dm-run-dir - added configure --with-lvmetad-pidfile - by default, using one common pid directory for everything (only lvmetad was not following this before)
* systemd: Add Documentation referencesPeter Rajnoha2012-06-201-0/+1
| | | | These documentation references show up in "systemctl status" output.
* veritysetup: Remove code as now in cryptsetup.Alasdair G Kergon2012-06-111-0/+1
| | | | | The veritysetup code has moved to the cryptsetup package. http://code.google.com/p/cryptsetup/
* release: post-release update versionAlasdair G Kergon2012-06-091-0/+3
|
* WHATS_NEW_DM: Update for release.Alasdair G Kergon2012-06-081-8/+8
|
* Upstream source repo move to fedorahosted.org git.Alasdair G Kergon2012-06-061-0/+1
| | | | Change version number suffix from -cvs to -git.
* Remove unsupported udev_get_dev_path libudev call used for checking udev dir.Peter Rajnoha2012-05-291-0/+1
| | | | | | | | | | | | With latest changes in the udev, some deprecated functions were removed from libudev amongst which there was the "udev_get_dev_path" function we used to compare a device directory used in udev and directore set in libdevmapper. The "/dev" is hardcoded in udev now (udev version >= 183). Amongst other changes and from packager's point of view, it's also important to note that the libudev development library ("libudev-devel") could now be a part of the systemd development library ("systemd-devel") because of the udev + systemd merge.
* Set delay_resume_if_new on deptree snapshot origin.Alasdair Kergon2012-05-151-0/+1
| | | | (Must avoid activating snapshot origin more than once concurrently.)
* Log value chosen in _find_config_bool like other variable types do.Alasdair Kergon2012-05-081-0/+1
|
* Synchronize with self-destruction of dmeventdZdenek Kabelac2012-04-241-0/+1
| | | | | | | | In some occasional case dmevent restart was experiencing problems with obtaining pid lockfile. So this patch tries to send several more kill message until daemon kills itself so there is would reponse. With this small loop the restart seems to work reliable, although the loopsize and usleep are just randomly picked for now.
* Also rename DevNos header to DevNosUsed in dmsetup info -c output.Peter Rajnoha2012-04-241-1/+1
|
* Rename (Blk)DevNames header to (Blk)DevNamesUsed in dmsetup info -c output.Peter Rajnoha2012-04-241-0/+1
| | | | | | | | | | | | | | | Just to make it clearer since there is the "dmsetup info -c -o blkdevname" as well that shows the "block device name for this mapping", having a "BlkDevName" header on output. It's a bit confusing then if the "dmsetup info -c -o devs_used,blkdevs_used" is named with a plural "DevNames"/"BlkDevNames" but at the same time having a totally different meaning than the singular form "BlkDevName". DevNames --> DevNamesUsed BlkDevNames --> BlkDevNamesUsed ...makes it much more comprehensible.
* First veritysetup version using configure --with-veritysetup.Alasdair Kergon2012-03-241-0/+1
|
* Fix check for passed in path for dmeventd startupZdenek Kabelac2012-03-201-0/+1
| | | | | Check passed in executable path for dmeventd instead of predefined compiled in path which is not the thing to be executed.
* Remove dmeventd fifos on exit if they are not managed by systemd.Peter Rajnoha2012-03-151-0/+1
|
* Use SD_ACTIVATION env. var. in systemd units to better detect systemd in use.Peter Rajnoha2012-03-141-0/+1
| | | | | | | | LISTEN_PID and LISTEN_FDS environment variables are defined only during systemd "start" action. But we still need to know whether we're activated during "reload" action as well - we use the reload action to call "dmeventd -R"/"lvmetad -R" for statefull daemon restart. We can't use normal "restart" as that is simply composed of "stop" and "start" and we would lose any state the daemon has.
* Do not run a new dmeventd instance on restart if there's no existing one.Peter Rajnoha2012-03-141-0/+1
|
* We need longer window for checking read from fifo.Zdenek Kabelac2012-03-121-0/+1
| | | | | Seems like some dmeventd startups are taking more time then expected, so make the time window longer here.
* post-releaseAlasdair Kergon2012-03-061-0/+3
|
* pre-releaseAlasdair Kergon2012-03-061-2/+2
|
* Check for multiple mangled names in auto mangling mode.Peter Rajnoha2012-03-051-0/+1
| | | | | Auto mode can't deal with multiple mangled names. We can do that while working in hex mode, but in auto mode, this would lead to device name ambiguity.
* Fix dm_task_get_name_unmangled to not unmangle already unmangled name.Peter Rajnoha2012-03-051-0/+1
| | | | | In 'auto' and 'hex' mode, these names are already unmangled on ioctl return. There's no point on trying to do that once again (actually it's a bug!).
* Check whether device names are properly mangled on ioctl return.Peter Rajnoha2012-03-051-0/+1
| | | | | | | Be more strict when unmangling names on ioctl return - require the name to be properly mangled in 'auto' and 'hex' mode. There really should not be any blacklisted character since the names should be renamed already (by means of renaming it directly or running 'dmsetup mangle' for automatic rename).
* Validate udev structuresZdenek Kabelac2012-03-041-0/+1
| | | | | | Avoid using NULL pointers from udev. It seems like some older versions of udev were improperly returning NULL in some case, so do not silently break here, and give at least a warning to the user.
* post-releaseAlasdair Kergon2012-03-031-0/+3
|
* pre-releaseAlasdair Kergon2012-03-031-4/+4
|
* List _thread_registry missed mutexZdenek Kabelac2012-03-021-0/+2
| | | | | Operation on _thread_registry needs to be covered by mutex. Cosmetic move a die code after free for valgind short leak list.
* Added dm_tree_node_set_callback() for preload and deactivation hooksZdenek Kabelac2012-03-021-0/+1
| | | | | Run users hook after preload for the node is finished, or after the node has been deactivated.
* Remove support for TRIM messageZdenek Kabelac2012-03-021-0/+1
| | | | | | It's been unsupporte for now - and it's not going to be implemented for thin pool kernel driver - so dropping appearence of TRIM from libdm and lvm.
* Improve loggingZdenek Kabelac2012-03-011-0/+1
| | | | | Use %m for strerror. Switch to use 0 for fail return code.
* Add some more pointer validationZdenek Kabelac2012-03-011-0/+1
| | | | | Ensure _display_name() and _add_dep() would not deref NULL names. Switch to use internal dm_basename().
* Check for version string bufferZdenek Kabelac2012-03-011-0/+1
| | | | | | Since lvm seems to call driver_version(NULL, 0) this would lead to crash. Though the combination of the code is probably very hard to hit. If the user doesn't supply version buffer, just skip printing to buffer.
* Log fail of pthread_joinZdenek Kabelac2012-03-011-0/+1
| | | | Syslog error outside of mutex section.
* Fix empty string warning logic in _find_config_str. (1.02.68)Alasdair Kergon2012-02-281-0/+1
| | | | | | | | pvcreate gives WARNING: Ignoring unsupported value for metadata/pvmetadataignore. It was warning if there is no config file entry instead of only if the node exists but is empty.
* Fix dm_task_set_name to properly resolve path to dm name.Peter Rajnoha2012-02-281-0/+1
| | | | Wrong variable was checked in _dm_task_set_name_from_path.
* Introduce dm_strncpyZdenek Kabelac2012-02-231-0/+1
| | | | | | | Should be faster then strncpy - since we could avoid clearing 4KB pages with each strncpy(...,PATH_MAX). Also it's easy to check whether string fit - and eventually avoid to continue working we incomplete string.
* post-releaseAlasdair Kergon2012-02-231-0/+3
|
* pre-releaseAlasdair Kergon2012-02-231-1/+1
|
* Limit number of mem allocs and copiesZdenek Kabelac2012-02-231-0/+1
| | | | | | | | If we have good enough glibc to return number of needed chars, do not loop try to reach good size, but use this size directly for allocation, saving also last strdup. Since now we start with 16 bytes - skip buffer realloc for shorter string.
* post-releaseAlasdair Kergon2012-02-201-1/+4
|