]> asedeno.scripts.mit.edu Git - linux.git/commit
rbd: whole-object write and zeroout should copyup when snapshots exist
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 Feb 2019 14:51:39 +0000 (15:51 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 5 Mar 2019 17:55:17 +0000 (18:55 +0100)
commit9b17eb2ce102e3274dafb3776a699969f02f7611
treecfc265860bd30c20d66c726af9c3fab32d396c61
parent89a59c1ca73b8dd43c208cdbd3658bd302cd41b4
rbd: whole-object write and zeroout should copyup when snapshots exist

Otherwise, once the parent snapshot is removed, the clone's snapshot
wouldn't reflect the state of the clone prior to whole-object write or
zeroout because a deep-copyup was never done ("rbd flatten" wouldn't do
it because the modified object would exist in HEAD).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c