diff mbox series

[2/3] Rename dev_item.type in flags in the command output.

Message ID 86bac5161db5a240cdfbd30cde9d045da1237757.1643313144.git.kreijack@inwind.it (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: get/set allocation_hint for an unmounted filesystem | expand

Commit Message

Goffredo Baroncelli Jan. 27, 2022, 7:57 p.m. UTC
From: Goffredo Baroncelli <kreijack@inwind.it>

As did in the kernel, rename the device->type to device->flags
in the printf() functions.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
---
 kernel-shared/print-tree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/kernel-shared/print-tree.c b/kernel-shared/print-tree.c
index 9bb0bd42..3bab0709 100644
--- a/kernel-shared/print-tree.c
+++ b/kernel-shared/print-tree.c
@@ -293,7 +293,7 @@  static void print_dev_item(struct extent_buffer *eb,
 			   BTRFS_UUID_SIZE);
 	uuid_unparse(fsid, fsid_str);
 	printf("\t\tdevid %llu total_bytes %llu bytes_used %llu\n"
-	       "\t\tio_align %u io_width %u sector_size %u type %llu\n"
+	       "\t\tio_align %u io_width %u sector_size %u flags %llu\n"
 	       "\t\tgeneration %llu start_offset %llu dev_group %u\n"
 	       "\t\tseek_speed %hhu bandwidth %hhu\n"
 	       "\t\tuuid %s\n"
@@ -2051,7 +2051,7 @@  void btrfs_print_superblock(struct btrfs_super_block *sb, int full)
 	printf("dev_item.fsid\t\t%s %s\n", buf,
 	       cmp_res ? "[match]" : "[DON'T MATCH]");
 
-	printf("dev_item.type\t\t%llu\n", (unsigned long long)
+	printf("dev_item.flags\t\t%llu\n", (unsigned long long)
 	       btrfs_stack_device_flags(&sb->dev_item));
 	printf("dev_item.total_bytes\t%llu\n", (unsigned long long)
 	       btrfs_stack_device_total_bytes(&sb->dev_item));