1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_SNAPSHOT_FORMAT_H
3 #define _BCACHEFS_SNAPSHOT_FORMAT_H
11 /* corresponds to a bch_snapshot_tree in BTREE_ID_snapshot_trees */
18 LE32_BITMASK(BCH_SNAPSHOT_DELETED
, struct bch_snapshot
, flags
, 0, 1)
20 /* True if a subvolume points to this snapshot node: */
21 LE32_BITMASK(BCH_SNAPSHOT_SUBVOL
, struct bch_snapshot
, flags
, 1, 2)
26 * The snapshot_trees btree gives us persistent indentifier for each tree of
27 * bch_snapshot nodes, and allow us to record and easily find the root/master
28 * subvolume that other snapshots were created from:
30 struct bch_snapshot_tree
{
36 #endif /* _BCACHEFS_SNAPSHOT_FORMAT_H */