summaryrefslogtreecommitdiffstats
path: root/WHATS_NEW_DM
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch to using built-in blkid in 13-dm-disk.rules.Peter Rajnoha2012-02-161-0/+1
| | | | Available in udev since version 176.
* Add watch rule to 13-dm-disk.rules.Peter Rajnoha2012-02-151-0/+1
| | | | | | | | We don't have anything better yet... The problems the watch rule caused when removing devices should be covered now with the "retry remove" logic. It's also better to have this maintained by us, rather than having this rule anywhere else without proper control.
* Detect failing fifoZdenek Kabelac2012-02-151-0/+1
| | | | | If the fifo died because of dmeventd restart - do not wait for 20s in select - it will not get better and return error immediately.
* Add DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.Peter Rajnoha2012-02-151-0/+2
| | | | | Just in case of emergency when name mangling code causes any problems so we can override the default value and switch off the mangling globally.
* Replace any '\' char with '\\' in table specification on input.Peter Rajnoha2012-02-151-0/+1
| | | | | | | | | | | | | | | Device-mapper in kernel uses '\' as escape character so it's better to double it to avoid any confusion when using existing device names with '\' in the table specification. For example: dmsetup create x --table "0 8 linear /dev/mapper/a\x20b 0" should pass just fine now without a need to explicitly escape the '\' char like this: dmsetup create x --table "0 8 linear /dev/mapper/a\\x20b 0"
* Add mangle command to dmsetup to provide renaming to correct mangled form.Peter Rajnoha2012-02-151-0/+1
|
* Add 'mangled_name' and 'unmangled_name' fields to dmsetup info -c -o.Peter Rajnoha2012-02-151-0/+1
|
* Add --manglename option to dmsetup to select the name mangling mode.Peter Rajnoha2012-02-151-0/+1
|
* Add dm_task_get_name_mangled/unmangled to libdevmapper.Peter Rajnoha2012-02-151-0/+1
| | | | | | | | | dm_task_get_name_mangled will always return mangled form of the name while the dm_task_get_name_unmangled will always return unmangled form of the name irrespective of the global setting (dm_set/get_name_mangling_mode). This is handy in situations where we need to detect whether the name is already mangled or not. Also display functions make use of it.
* Mangle device name on dm_task_set_name/newname call if necessary.Peter Rajnoha2012-02-151-0/+2
| | | | | | | | | | If dm_task_set_name/newname is called, the name provided will be automatically translated to correct encoded form with the hex enconding so any character not on udev whitelist will be mangled with \xNN format where NN is hex value of the character used. By default, the name mangling mode used is the one set during configure with the '--with-default-name-mangling' option.
* Add configure --with-default-name-mangling.Peter Rajnoha2012-02-151-0/+1
| | | | | | | | | | This option configures the default name mangling mode used, one of: AUTO, NONE and HEX. The name mangling is primarily used to support udev character whitelist (0-9, A-Z, a-z, #*-.:=@_) so any character that is not on udev whitelist will get translated into an encoded form \xNN where NN is the hex value of the character.
* Make sure dereferenced words[0] and words[1] are definedZdenek Kabelac2012-02-131-0/+1
|
* Ensure allocated device does not leak on error pathZdenek Kabelac2012-02-131-0/+1
| | | | For unimplementd canonicalize_file_name set to NULL
* Check for missing reply_uuidZdenek Kabelac2012-02-131-0/+1
|
* Check for allocation failureZdenek Kabelac2012-02-131-0/+1
|
* Add few missing allocation failures testsZdenek Kabelac2012-02-131-0/+1
|
* Do not write to -1 buffer addressZdenek Kabelac2012-02-131-0/+1
| | | | | | | | | | In case of zero bytes would be read from sysfs, it would store '\0' on temp_buf[-1] address. Simplify some buffer length calculation and use strcpy if we've just checked string fits in give buffer. Replace jump label error: with bad: commonly used in libdm.
* post-releaseAlasdair Kergon2012-02-131-0/+3
|
* pre-releaseAlasdair Kergon2012-02-121-2/+2
|
* Fix message checkZdenek Kabelac2012-02-101-0/+1
| | | | | Check pointer from strchr for NULL instead of crash later. Badly formated message would have crash dmeventd otherwise.
* Check for deps pointer before dererenceZdenek Kabelac2012-02-101-1/+2
| | | | As _deps() call may return NULL - check for it.
* Add validation of name and uuidZdenek Kabelac2012-02-101-0/+1
| | | | Do not accept NULL pointers.
* Do not crash for NULL sort_keyZdenek Kabelac2012-02-101-0/+1
| | | | | Guard against NULL pointer for sort_key and let it behave like an empty string would have been passed in (i.e. no key).
* Return error for failing allocationZdenek Kabelac2012-02-101-0/+1
| | | | | Fix case, where final strdup would have failed and it would miss to return failure for this case and return success and NULL pointer.
* Add test for failing allocationZdenek Kabelac2012-02-101-0/+1
| | | | Avoid memcpy to NULL if realloc fails.
* Add test for memory allocation failuresZdenek Kabelac2012-02-101-0/+1
| | | | | | Replace asserts with test for failing memory allocation. Add at least stack traces. Index counter starts from 1 (0 reserved for error), so replacing fingerprint.
* Use dm_asprintf to simplify codeZdenek Kabelac2012-02-081-0/+1
|
* Set all parameters to 0Zdenek Kabelac2012-02-081-0/+1
| | | | | | | | | | | | | Since the function dm_get_next_target() returns NULL as 'next' pointer so it's not a 'real' error - set 0 to all parameters when NULL is returned because of missing head. i.e. one of use case:: do { next = dm_get_next_target(dmt, next, &start, &length, &target_type, &params); size += length; } while (next);
* Fix fd resource leak in error pathZdenek Kabelac2012-02-081-0/+1
| | | | Use 'goto bad' to cleanup fd on error path.
* Ensure strncpy() function always ends with '\0'Zdenek Kabelac2012-02-081-0/+1
| | | | | Since last character needs to be \0 for string, pass buffer size smaller by 1 byte.
* post-releaseAlasdair Kergon2012-02-011-0/+3
|
* pre-releaseAlasdair Kergon2012-02-011-1/+2
|
* post-releaseAlasdair Kergon2012-01-271-0/+3
|
* pre-releaseAlasdair Kergon2012-01-261-0/+1
|
* pre-releaseAlasdair Kergon2012-01-261-9/+9
|
* Ensure whole info is initialisedZdenek Kabelac2012-01-251-0/+1
| | | | | Since _create_dm_tree_node is copying whole structure, make sure all members are initialized.
* Add dmsetup 'wipe_table' to replace table with one that uses error target.Alasdair Kergon2012-01-181-0/+1
|
* Support different device name types on output of dmsetup deps, ls and info ↵Peter Rajnoha2012-01-111-0/+3
| | | | | | | | -c command. Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o. Add 'blkdevname' option to dmsetup ls --tree to see block device names. Add '-o options' to dmsetup deps and ls to select device name type on output.
* Add dm_device_get_name to get map name or block device name for given devno.Peter Rajnoha2012-01-111-0/+1
| | | | | | | | | | | | | This is accomplished by reading associated sysfs information. For a dm device, this is /sys/dev/block/major:minor/dm/name (supported in kernel version >= 2.6.29, for older kernels, the behaviour is the same as for non-dm devices). For a non-dm device, this is a readlink on /sys/dev/block/major:minor, e.g. /sys/dev/block/253:0 --> ../../devices/virtual/block/dm-0. The last component of the path is a proper kernel name (block device name). One can request to read only kernel names by setting the 'prefer_kernel_name' argument if needed.
* Add dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-codedAlasdair Kergon2012-01-101-1/+3
| | | | | | | LVM- prefix. Try harder not to leave stray empty devices around (locally or remotely) when reverting changes after failures while there are inactive tables.
* Improve readahead in dmsetup man pageZdenek Kabelac2012-01-091-0/+1
|
* Use sysfs to set/get of read-aheadZdenek Kabelac2012-01-091-0/+1
| | | | | | | | If we know major:minor number of device (which is known after resume) we will try to use sysfs to set/get read ahead parameters of device. This avoid potential problem of blocking commands like 'dmsetup info' awaiting for device being usable for open/close - i.e. overfilled thin pool may block such command.
* Add dm_config_find_str_allow_emptyZdenek Kabelac2011-12-211-1/+1
| | | | Support empty string values.
* Fix lvm2-monitor init script to use normalized output when using vgs.Peter Rajnoha2011-12-071-0/+1
|
* Check target type name for DM_MAX_TYPE_NAME lengthZdenek Kabelac2011-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | Avoid creation of target type name when it's longer then DM_MAX_TYPE_NAME (noticed by static analyzer where the sp.target_type might be missing '\0' at the end.) Before patch: $> dmsetup create long 0 1000 looooooooooooooooooooooooooong ^D device-mapper: reload ioctl failed: Invalid argument After patch: $> dmsetup create xxx 0 1000 looooooooooooooooooooooooooong Target type name looooooooooooooooooooooooooong is too long. Command failed
* Include a copy of kernel DM documentation in doc/kernelAlasdair Kergon2011-11-151-0/+1
|
* Update dmsetup man pageZdenek Kabelac2011-11-121-0/+1
| | | | | | | Use standard manpage style. Keep options and commands in alphabetic order. Added at least a very simply info about some other targets. TODO: documenting targest needs far more work...
* Fix _get_proc_number to be tolerant of malformed /proc/misc entries.Mike Snitzer2011-11-081-0/+1
| | | | Fixes issue reported here: http://lkml.org/lkml/2011/11/8/190
* Add "ExecReload" to dm-event.service for systemd to reload dmeventd properly.Peter Rajnoha2011-10-311-0/+1
| | | | | | | | | | | | | Normally, restart simply means "stop and start" for systemd. However, if we're installing new versions of the dmeventd binary/libdevmapper, we need to restart dmeventd. This fails if we have some devices monitored - we need to call "dmeventd -R" instead. The "ExecReload" did not work quite well in some old versions of systemd, systemd assumed that only the configuration is reloaded on "ExecReload", not the whole binary itself so it lost track of dmeventd daemon (it lost new dmeventd PID). This is fixed and seems to be working fine now with recent versions of dmeventd.
* Add find_config_tree_str_allow_emptyZdenek Kabelac2011-10-281-0/+1
| | | | | Add function to allow read of empty strings as valid arguments. Add a warning message if string argument has ignored value.