154cf4c193
- add quota group verify patches, sent to list near end of the week starting 5/4/2014 - updates btrfsck with the ability to verify quota groups - Update the changelog with some sad version of diffstat output to meet requirements. - Added patches: * 0200-btrfs-progs-print-qgroup-excl-as-unsigned.patch * 0201-btrfs-progs-import-ulist.patch * 0202-btrfs-progs-add-quota-group-verify-code.patch OBS-URL: https://build.opensuse.org/request/show/235046 OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=159
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
From 8b40b00f23806115c9f03344227b6590cb187a96 Mon Sep 17 00:00:00 2001
|
|
From: Mark Fasheh <mfasheh@suse.de>
|
|
Date: Thu, 1 May 2014 22:35:15 -0700
|
|
Subject: [PATCH 1/3] btrfs-progs: print qgroup excl as unsigned
|
|
References: bnc#865621
|
|
Upstream: submitted
|
|
|
|
It's unsigned in the structure definition.
|
|
|
|
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
|
|
---
|
|
print-tree.c | 12 ++++++------
|
|
qgroup.c | 4 ++--
|
|
2 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/print-tree.c b/print-tree.c
|
|
index 7263b09..adef94a 100644
|
|
--- a/print-tree.c
|
|
+++ b/print-tree.c
|
|
@@ -884,18 +884,18 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
|
|
qg_info = btrfs_item_ptr(l, i,
|
|
struct btrfs_qgroup_info_item);
|
|
printf("\t\tgeneration %llu\n"
|
|
- "\t\treferenced %lld referenced compressed %lld\n"
|
|
- "\t\texclusive %lld exclusive compressed %lld\n",
|
|
+ "\t\treferenced %llu referenced compressed %llu\n"
|
|
+ "\t\texclusive %llu exclusive compressed %llu\n",
|
|
(unsigned long long)
|
|
btrfs_qgroup_info_generation(l, qg_info),
|
|
- (long long)
|
|
+ (unsigned long long)
|
|
btrfs_qgroup_info_referenced(l, qg_info),
|
|
- (long long)
|
|
+ (unsigned long long)
|
|
btrfs_qgroup_info_referenced_compressed(l,
|
|
qg_info),
|
|
- (long long)
|
|
+ (unsigned long long)
|
|
btrfs_qgroup_info_exclusive(l, qg_info),
|
|
- (long long)
|
|
+ (unsigned long long)
|
|
btrfs_qgroup_info_exclusive_compressed(l,
|
|
qg_info));
|
|
break;
|
|
diff --git a/qgroup.c b/qgroup.c
|
|
index 94d1feb..368b262 100644
|
|
--- a/qgroup.c
|
|
+++ b/qgroup.c
|
|
@@ -203,11 +203,11 @@ static void print_qgroup_column(struct btrfs_qgroup *qgroup,
|
|
print_qgroup_column_add_blank(BTRFS_QGROUP_QGROUPID, len);
|
|
break;
|
|
case BTRFS_QGROUP_RFER:
|
|
- len = printf("%lld", qgroup->rfer);
|
|
+ len = printf("%llu", qgroup->rfer);
|
|
print_qgroup_column_add_blank(BTRFS_QGROUP_RFER, len);
|
|
break;
|
|
case BTRFS_QGROUP_EXCL:
|
|
- len = printf("%lld", qgroup->excl);
|
|
+ len = printf("%llu", qgroup->excl);
|
|
print_qgroup_column_add_blank(BTRFS_QGROUP_EXCL, len);
|
|
break;
|
|
case BTRFS_QGROUP_PARENT:
|
|
--
|
|
1.8.4
|
|
|