search for: get_lvm_system_dir

Displaying 2 results from an estimated 2 matches for "get_lvm_system_dir".

2018 May 24
1
[PATCH] daemon: Move creating of LVM_SYSTEM_DIR into the appliance/init script.
This patch reworks how we start up LVM and lvmetad. It fixes the problem we had converting a guest which had a peculiar LVM configuration: https://bugzilla.redhat.com/show_bug.cgi?id=1581810#c14 However please note I have NOT yet tested it fully. Rich.
2018 May 24
2
[PATCH v2] daemon: Move lvmetad to early in the appliance boot process.
...- else if (!WIFEXITED (r) || WEXITSTATUS (r) != 0) - fprintf (stderr, "warning: lvmetad command failed\n"); -} - +/* Read LVM_SYSTEM_DIR environment variable, or set it to a default + * value if the environment variable is not set. + */ +static const char *lvm_system_dir; +static void get_lvm_system_dir (void) __attribute__((constructor)); static void -rm_lvm_system_dir (void) +get_lvm_system_dir (void) { - char cmd[64]; - - snprintf (cmd, sizeof cmd, "rm -rf %s", lvm_system_dir); - ignore_value (system (cmd)); + lvm_system_dir = getenv ("LVM_SYSTEM_DIR"); + if (!lvm_sys...