diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-02-28 00:54:06 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-02-28 00:54:06 +0000 |
commit | ed82bfd2ba58eed67cb45d3182a862cbd0f2dad1 (patch) | |
tree | c9bd07fcacb5e9d2a9029940327a9ad54214073c /lib/snapshot/snapshot.c | |
parent | 8a4e6cac0a4797e3eb28a53f2eb249d22eb04548 (diff) | |
download | lvm2-ed82bfd2ba58eed67cb45d3182a862cbd0f2dad1.tar.gz lvm2-ed82bfd2ba58eed67cb45d3182a862cbd0f2dad1.tar.xz lvm2-ed82bfd2ba58eed67cb45d3182a862cbd0f2dad1.zip |
Attempt cleanup in child before execing new binary in exec_cmd()
Diffstat (limited to 'lib/snapshot/snapshot.c')
-rw-r--r-- | lib/snapshot/snapshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/snapshot/snapshot.c b/lib/snapshot/snapshot.c index 72f06ee5..29ea234f 100644 --- a/lib/snapshot/snapshot.c +++ b/lib/snapshot/snapshot.c @@ -108,15 +108,15 @@ static int _snap_target_percent(void **target_state __attribute((unused)), return 1; } -static int _snap_target_present(const struct lv_segment *seg __attribute((unused)), +static int _snap_target_present(const struct lv_segment *seg, unsigned *attributes __attribute((unused))) { static int _snap_checked = 0; static int _snap_present = 0; if (!_snap_checked) - _snap_present = target_present("snapshot", 1) && - target_present("snapshot-origin", 0); + _snap_present = target_present(seg->lv->vg->cmd, "snapshot", 1) && + target_present(seg->lv->vg->cmd, "snapshot-origin", 0); _snap_checked = 1; |