archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Can't get merge in background using blockdev api to work
@ 2022-01-01 18:02 Tomas Dalebjörk
  2022-01-03 15:49 ` Vojtech Trefny
  0 siblings, 1 reply; 3+ messages in thread
From: Tomas Dalebjörk @ 2022-01-01 18:02 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]


I am trying to start a merge to the previous snapshot to be started with
the "-b" flag (background). But it seems to be that the merging has not
started in the background at all.

        BDExtraArg      lv_arg = {"--background",""};
        const BDExtraArg        *extra_args[2] = {&lv_arg, NULL};

        BDPluginSpec lvm_plugin = {BD_PLUGIN_LVM, ""};
        BDPluginSpec *plugins[] = {&lvm_plugin,NULL};

        bd_switch_init_checks (FALSE, &error);
        bd_ensure_init (plugins, NULL, &error);

Couldn't find any details about how to do this using the libblockdev api,
but according to the documentation, it should be possible to add the same
flags as for the normal LVM commands.

Could you please give me a hint of what I am doing wrong?

Regards Tomas

[-- Attachment #1.2: Type: text/html, Size: 1248 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

linux-lvm mailing list
read the LVM HOW-TO at

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-05  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-01 18:02 [linux-lvm] Can't get merge in background using blockdev api to work Tomas Dalebjörk
2022-01-03 15:49 ` Vojtech Trefny
2022-01-05  8:12   ` Tomas Dalebjörk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).