projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2dc5f
)
bcachefs: Add flags to subvolume_to_text()
author
Kent Overstreet <kent.overstreet@linux.dev>
Mon, 2 Jun 2025 21:23:49 +0000
(17:23 -0400)
committer
Kent Overstreet <kent.overstreet@linux.dev>
Wed, 4 Jun 2025 20:45:41 +0000
(16:45 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/subvolume.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/subvolume.c
b/fs/bcachefs/subvolume.c
index 77ba50df2ff4906168d0cf9f90d9ef12d0b1cfde..60c10365c285741f5a7db695860bd106cdba5470 100644
(file)
--- a/
fs/bcachefs/subvolume.c
+++ b/
fs/bcachefs/subvolume.c
@@
-255,6
+255,13
@@
void bch2_subvolume_to_text(struct printbuf *out, struct bch_fs *c,
prt_printf(out, " creation_parent %u", le32_to_cpu(s.v->creation_parent));
prt_printf(out, " fs_parent %u", le32_to_cpu(s.v->fs_path_parent));
}
+
+ if (BCH_SUBVOLUME_RO(s.v))
+ prt_printf(out, " ro");
+ if (BCH_SUBVOLUME_SNAP(s.v))
+ prt_printf(out, " snapshot");
+ if (BCH_SUBVOLUME_UNLINKED(s.v))
+ prt_printf(out, " unlinked");
}
static int subvolume_children_mod(struct btree_trans *trans, struct bpos pos, bool set)