diff options
author | Mike Snitzer <snitzer@redhat.com> | 2015-10-09 00:05:41 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-10-09 22:57:03 +0200 |
commit | b0d3cc011e532d8c9db76cf717bcafa53c135595 (patch) | |
tree | d74330dcf71a599d637a7eecad8b56cdbd4487b9 /drivers/md/dm-snap-transient.c | |
parent | dm cache: fix NULL pointer when switching from cleaner policy (diff) | |
download | linux-b0d3cc011e532d8c9db76cf717bcafa53c135595.tar.xz linux-b0d3cc011e532d8c9db76cf717bcafa53c135595.zip |
dm snapshot: add new persistent store option to support overflow
Commit 76c44f6d80 introduced the possibly for "Overflow" to be reported
by the snapshot device's status. Older userspace (e.g. lvm2) does not
handle the "Overflow" status response.
Fix this incompatibility by requiring newer userspace code, that can
cope with "Overflow", request the persistent store with overflow support
by using "PO" (Persistent with Overflow) for the snapshot store type.
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Fixes: 76c44f6d80 ("dm snapshot: don't invalidate on-disk image on snapshot write overflow")
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap-transient.c')
-rw-r--r-- | drivers/md/dm-snap-transient.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-snap-transient.c b/drivers/md/dm-snap-transient.c index 1ce9a2586e41..9b7c8c8049d6 100644 --- a/drivers/md/dm-snap-transient.c +++ b/drivers/md/dm-snap-transient.c @@ -70,8 +70,7 @@ static void transient_usage(struct dm_exception_store *store, *metadata_sectors = 0; } -static int transient_ctr(struct dm_exception_store *store, - unsigned argc, char **argv) +static int transient_ctr(struct dm_exception_store *store, char *options) { struct transient_c *tc; |