Version 2.02.89 -
==================================
- Simplify code for lvm worker thread in clvmd.
+ Fix lv_info open_count test for disabled verify_udev_operations (2.02.86).
+ Simplify code for lvm worker thread in clvmd.
Use pthread_barrier to synchronize clvmd threads at startup.
Limit clvmd's thread size to 128KiB.
Reduce default preallocated stack size to 64KiB.
int r = 1;
/* Nothing to do if udev fallback is disabled. */
- if (!dm->cmd->current_settings.udev_fallback)
+ if (!dm->cmd->current_settings.udev_fallback) {
+ fs_set_create();
return 1;
+ }
while ((child = dm_tree_next_child(&handle, root, 0))) {
if (!(lvlayer = dm_tree_node_get_context(child)))
* Supports to wait for udev device settle only when needed.
*/
static uint32_t _fs_cookie = DM_COOKIE_AUTO_CREATE;
+static int _fs_create = 0;
static int _mk_dir(const char *dev_dir, const char *vg_name)
{
fsp->dev, fsp->old_lv_name, fsp->check_udev);
_del_fs_op(fsp);
}
+
+ _fs_create = 0;
}
static int _fs_op(fs_op_t type, const char *dev_dir, const char *vg_name,
_fs_cookie = cookie;
}
+void fs_set_create(void)
+{
+ _fs_create = 1;
+}
+
int fs_has_non_delete_ops(void)
{
- return _other_fs_ops(FS_DEL);
+ return _fs_create || _other_fs_ops(FS_DEL);
}
/* void fs_unlock(void); moved to activate.h */
uint32_t fs_get_cookie(void);
void fs_set_cookie(uint32_t cookie);
+void fs_set_create(void);
int fs_has_non_delete_ops(void);
#endif