Project

General

Profile

Actions

action #11792

closed

Feature 313516: implement image based snapshotting for btrfs analog to zfs send/receive

Added by maritawerner about 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
2016-05-04
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

For details see https://fate.suse.com/313516

Testcase:

The way the send/receive feature is used is like this:
Populate a filesystem/subvolume;
Create a snapshot A of a filesystem/subvolume;
Use a full send operation to send that snapshot to some other filesystem;
Verify that every single file and directory that exists in the source snapshot/filesystem also exists at the destination filesystem/snapshot, that the files have exactly the same data and metadata (owner, permissions, xattrs, etc);
Do changes in the source filesystem/subvolume (create new files/directories, delete files/directories, write data to files, add/remove xattrs, change owner, permissions, etc)
Create a snapshot B of the source filesystem/subvolume;
Now do an incremental send operation using snapshot A as parent and B as the send snapshot and receive it in the destination filesystem. This sends only the differences between snapshots A and B;
Verify that snapshot B on the destination filesystem as exactly the same content as in the source filesystem (do the same checks that were done in step 4);
Do more changes in the source filesystem;
Create snapshot C on the source filesystem;
Do an incremental send using B as parent and C and send snapshot;
repeat the logic to verify the snapshots in the source and destination filesystems have exactly the same files/data/metadata
and so on
See also: https://git.kernel.org/cgit/fs/xfs/xfstests-dev.git/tree/tests/btrfs/007 https://git.kernel.org/cgit/fs/xfs/xfstests-dev.git/tree/tests/btrfs/group


Checklist

  • SLES
  • TW
Actions

Also available in: Atom PDF