| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
|
| |
|
|
|
|
| |
Configure option is --enable-udev_sync.
|
|
|
|
| |
Free allocated buffer in _get_split_name error path.
|
|
|
|
|
| |
Allow --noflush with dmsetup status and wait (for thin target 1.3.0 /
ioctl 4.23.0).
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Ensure _display_name() and _add_dep() would not deref NULL names.
Switch to use internal dm_basename().
|
| |
|
|
|
|
| |
alloc_policy_t, dm_string_mangling_t, percent_range_t, sign_t
|
| |
|
| |
|
|
|
|
|
| |
Segfault introduced with the patch that added dm_free(_table) at the
end of dmsetup (in this release).
|
| |
|
| |
|
| |
|
|
|
|
| |
For unimplementd canonicalize_file_name set to NULL
|
| |
|
|
|
|
|
| |
Since last character needs to be \0 for string,
pass buffer size smaller by 1 byte.
|
|
|
|
|
| |
Just remove double braces from conditions when they are not really needed.
(So it doesn't look like an assignment and comparison).
|
| |
|
|
|
|
|
|
|
|
| |
-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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Defer the test of the function return value after the string memory is released.
Otherwise in this error path the string would present memory leak.
(Thought in this case we are already out of memory...)
|
| |
|
|
|
|
|
|
| |
dmsetup --checks
libdevmapper: dm_task_enable_checks()
lvm.conf: activation/checks=1
|
| |
|
|
|
|
|
|
| |
(We still need to treat add+readhead+del as a no-op.)
Rename udev_fallback to verify_udev_operations.
Rename --udevfallback to --verifyudev
|
| |
|
|
|
|
|
| |
Old versions of libudev < 143 were experimental and unstable. Require recent
and stable versions only (version 143 is old enough anyway).
|
|
|
|
| |
Simple replacement for unsigned type - usually in for() loops.
|
| |
|
|
|
|
|
|
| |
With recent update of dm_report_field_string() API call to accept
completely const objects - we no longer need loose constness here
and keep it forwarding.
|
| |
|
|
|
|
| |
Include an implicit dm_task_update_nodes() within dm_udev_wait().
|
|
|
|
| |
Put dead assigment code into comment.
|
|
|
|
|
|
|
|
|
|
| |
Make configurable default behaviour how to deal with device node creates.
With udev system natural options should be 'resume'.
For older systems where user expect there is node in /dev/mapper immediately
after dmsetup create --notable - use 'create'
FIXME:
Code needs fixing passing this flag through udev cookie.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add new function dm_task_set_add_node() to select between 2 types
of node creation in device directory.
DM_ADD_NODE_ON_RESUME is now default and ensures node is created on
resume. Old original behavior is accessible with DM_ADD_NODE_ON_CREATE.
In this case node would be created during dmsetup create --notable.
For the user 2 new options for dmsetup create are added:
[{--addnodeonresume | --addnodeoncreate }]
Properly working node creation on resume is needed for proper operation
stacking and ability to correctly check in which state the device should
after whole udev transation.
|
|
|
|
|
| |
Variable 'r' is never read so remove it and just cast result from
_error_device function to (void).
|
| |
|
|
|
|
|
|
|
| |
Add test for NULL before passing uuid as src argument to memcpy.
As memcpy function is declared as function not accepting NULL.
Though we pass NULL only with zero length so this patch presents
no functional change to the code.
|
|
|
|
| |
Release allocated path buffer in error path.
|
|
|
|
|
| |
Fix usage of const 'data' pointer and also assign void* directly without
uneeded cast for C.
|
|
|
|
| |
Add dm_task_set_newuuid to set uuid of mapped device post-creation. (pjones)
|