commit 0313184

Michael Forney  ·  2026-05-03 01:01:37 +0000 UTC
parent 633b656
e2fsprogs: Fix type compatibility bug
2 files changed,  +30, -1
+29, -0
 1@@ -0,0 +1,29 @@
 2+From 4afa9df2337512bb53e44b0e43153f786e0d36f7 Mon Sep 17 00:00:00 2001
 3+From: Michael Forney <mforney@mforney.org>
 4+Date: Sat, 2 May 2026 17:48:38 -0700
 5+Subject: [PATCH] libsupport: fix type compatibility between prototype and
 6+ definition
 7+
 8+quota_write_inode was changed to take a qtype bitmask in 2d2d799c
 9+(Clean up codes for adding new quota type), but the prototype was
10+updated incorrectly to use the enum type.
11+---
12+ lib/support/quotaio.h | 2 +-
13+ 1 file changed, 1 insertion(+), 1 deletion(-)
14+
15+diff --git a/lib/support/quotaio.h b/lib/support/quotaio.h
16+index 60689700..3e054ee8 100644
17+--- a/lib/support/quotaio.h
18++++ b/lib/support/quotaio.h
19+@@ -223,7 +223,7 @@ void quota_data_add(quota_ctx_t qctx, struct ext2_inode_large *inode,
20+ 		    ext2_ino_t ino, qsize_t space);
21+ void quota_data_sub(quota_ctx_t qctx, struct ext2_inode_large *inode,
22+ 		    ext2_ino_t ino, qsize_t space);
23+-errcode_t quota_write_inode(quota_ctx_t qctx, enum quota_type qtype);
24++errcode_t quota_write_inode(quota_ctx_t qctx, unsigned int qtype_bits);
25+ errcode_t quota_update_limits(quota_ctx_t qctx, ext2_ino_t qf_ino,
26+ 			      enum quota_type type);
27+ errcode_t quota_compute_usage(quota_ctx_t qctx);
28+-- 
29+2.49.0
30+
+1, -1
1@@ -1 +1 @@
2-1.46.4 r1
3+1.46.4 r2