mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
lvremove: check for handle
Get lvremove_params from non NULL handle.
Introduced in commit 47f8bda05
.
TODO: any more thing needed ?
This commit is contained in:
parent
c496cfa99a
commit
80fa3511be
@ -4807,7 +4807,7 @@ static void _lvremove_save_uuid(struct cmd_context *cmd, struct logical_volume *
|
||||
int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
struct processing_handle *handle)
|
||||
{
|
||||
struct lvremove_params *lp = (struct lvremove_params *) handle->custom_handle;
|
||||
struct lvremove_params *lp = (handle) ? (struct lvremove_params *) handle->custom_handle : NULL;
|
||||
|
||||
/*
|
||||
* Single force is equivalent to single --yes
|
||||
|
Loading…
Reference in New Issue
Block a user