]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: add new persistent store option to support overflow
authorMike Snitzer <snitzer@redhat.com>
Thu, 8 Oct 2015 22:05:41 +0000 (18:05 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 9 Oct 2015 20:57:03 +0000 (16:57 -0400)
commit8991efb1de0d39aeeae0aee1a8ca6b96c9708020
treed74330dcf71a599d637a7eecad8b56cdbd4487b9
parent3ad3ba1eca5f4b7301075bfcb62c659818f32432
dm snapshot: add new persistent store option to support overflow

Commit 7bbae8f46b 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: 7bbae8f46b ("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>
Documentation/device-mapper/snapshot.txt
drivers/md/dm-exception-store.c
drivers/md/dm-exception-store.h
drivers/md/dm-snap-persistent.c
drivers/md/dm-snap-transient.c
drivers/md/dm-snap.c