Skip to contentSkip to conversation

btrfs-progs: props: init compression prop_handlers with field name

PATCH In review Sidong Yang 2 participants 2 messages Sep 6, 2021 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: props: init compression prop_handlers with field name

Compression prop_handler is initialized without field name. This patch corrects that it's initialized with field name.

---
 props.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
props.c +2 -1
index aeb48679..81509e48 100644
@@ -186,7 +186,8 @@ const struct prop_handler prop_handlers[] = {
 		.name = "compression",
 		.desc = "compression algorithm for the file or directory",
 		.read_only = 0,
-	 	.types = prop_object_inode, prop_compression
+		.types = prop_object_inode,
+		.handler = prop_compression
 	},
 	{NULL, NULL, 0, 0, NULL}
 };
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Sidong Yang

Compression prop_handler is initialized without field name. This patch corrects that it's initialized with field name.

Thanks, added to devel.