Lines Matching full:snapshot
9 #include "snapshot.h"
22 struct bch_snapshot snapshot; in check_subvol() local
30 snapid = le32_to_cpu(subvol.v->snapshot); in check_subvol()
31 ret = bch2_snapshot_lookup(trans, snapid, &snapshot); in check_subvol()
34 bch_err(c, "subvolume %llu points to nonexistent snapshot %u", in check_subvol()
46 u32 snapshot_root = bch2_snapshot_root(c, le32_to_cpu(subvol.v->snapshot)); in check_subvol()
57 "%s: snapshot tree %u not found", __func__, snapshot_tree); in check_subvol()
64 "subvolume %llu is not set as snapshot but is not master subvolume", in check_subvol()
111 prt_printf(out, "root %llu snapshot id %u", in bch2_subvolume_to_text()
113 le32_to_cpu(s.v->snapshot)); in bch2_subvolume_to_text()
159 int bch2_snapshot_get_subvol(struct btree_trans *trans, u32 snapshot, in bch2_snapshot_get_subvol() argument
164 return bch2_snapshot_lookup(trans, snapshot, &snap) ?: in bch2_snapshot_get_subvol()
184 *snapid = le32_to_cpu(subvol.v->snapshot); in bch2_subvolume_get_snapshot()
214 * Separate from the snapshot tree in the snapshots btree, we record the tree
215 * structure of how snapshot subvolumes were created - the parent subvolume of
216 * each snapshot subvolume.
236 * Delete subvolume, mark snapshot ID as deleted, queue up snapshot
256 snapid = le32_to_cpu(subvol.v->snapshot); in __bch2_subvolume_delete()
386 /* Creating a snapshot: */ in bch2_subvolume_create()
398 parent = le32_to_cpu(src_subvol->v.snapshot); in bch2_subvolume_create()
408 src_subvol->v.snapshot = cpu_to_le32(new_nodes[1]); in bch2_subvolume_create()
420 new_subvol->v.snapshot = cpu_to_le32(new_nodes[0]); in bch2_subvolume_create()