~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-03-03 12:33:47 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130303123347-smfwei6dodkdth55
Tags: 2.02.98-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "log.h"
17
17
 
18
18
#include "lvm2cmd.h"
19
 
#include "errors.h"
20
 
#include "libdevmapper-event.h"
21
19
#include "dmeventd_lvm.h"
22
20
 
23
21
#include <pthread.h>
160
158
                return 0;
161
159
        }
162
160
 
 
161
        /* strip off the mirror component designations */
 
162
        layer = strstr(lv, "_mlog");
 
163
        if (layer)
 
164
                *layer = '\0';
 
165
 
163
166
        r = dm_snprintf(buffer, size, "%s %s/%s", cmd, vg, lv);
164
167
 
165
168
        dm_pool_free(mem, vg);