Skip to content

Commit bfaac2c

Browse files
author
Kent Overstreet
committed
bcachefs: Add flags to subvolume_to_text()
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 9f2dc5f commit bfaac2c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/bcachefs/subvolume.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ void bch2_subvolume_to_text(struct printbuf *out, struct bch_fs *c,
255255
prt_printf(out, " creation_parent %u", le32_to_cpu(s.v->creation_parent));
256256
prt_printf(out, " fs_parent %u", le32_to_cpu(s.v->fs_path_parent));
257257
}
258+
259+
if (BCH_SUBVOLUME_RO(s.v))
260+
prt_printf(out, " ro");
261+
if (BCH_SUBVOLUME_SNAP(s.v))
262+
prt_printf(out, " snapshot");
263+
if (BCH_SUBVOLUME_UNLINKED(s.v))
264+
prt_printf(out, " unlinked");
258265
}
259266

260267
static int subvolume_children_mod(struct btree_trans *trans, struct bpos pos, bool set)

0 commit comments

Comments
 (0)