diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-20 14:57:24 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-24 16:39:32 +0200 |
commit | 298de1f5c3c2a84eb4c12f4697c110016a98237e (patch) | |
tree | ab651514b6b6431454b54c28df2ddb7cbed7638d /lib/snapshot | |
parent | 784c216d2beb21bf793d33d1ebf600ab30454bb7 (diff) | |
download | lvm2-298de1f5c3c2a84eb4c12f4697c110016a98237e.tar.gz |
segments: mark more of them unzeroable
Use segment flags to avoid zeroing of cache, cache pool
snapshot and thin pool segments.
We never want to zero these segment types.
Note:
Snapshot COW and Cache origin are created as stripes
thus are then properly zeroed.
Diffstat (limited to 'lib/snapshot')
-rw-r--r-- | lib/snapshot/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/snapshot/snapshot.c b/lib/snapshot/snapshot.c index 18e811172..aefab3ac9 100644 --- a/lib/snapshot/snapshot.c +++ b/lib/snapshot/snapshot.c @@ -262,7 +262,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd) segtype->ops = &_snapshot_ops; segtype->name = "snapshot"; segtype->private = NULL; - segtype->flags = SEG_SNAPSHOT; + segtype->flags = SEG_SNAPSHOT | SEG_CANNOT_BE_ZEROED; #ifdef DEVMAPPER_SUPPORT # ifdef DMEVENTD |