diff --git a/props.c b/props.c index 22268afa..00402260 100644 --- a/props.c +++ b/props.c @@ -167,11 +167,25 @@ out: } const struct prop_handler prop_handlers[] = { - {"ro", "read-only status of a subvolume", 0, prop_object_subvol, - prop_read_only}, - {"label", "label of the filesystem", 0, - prop_object_dev | prop_object_root, prop_label}, - {"compression", "compression algorighm for the file or directory", 0, - prop_object_inode, prop_compression}, + { + .name ="ro", + .desc = "read-only status of a subvolume", + .read_only = 0, + .types = prop_object_subvol, + .handler = prop_read_only + }, + { + .name = "label", + .desc = "label of the filesystem", + .read_only = 0, + .types = prop_object_dev | prop_object_root, + .handler = prop_label + }, + { + .name = "compression", + .desc = "compression algorighm for the file or directory", + .read_only = 0, + .types = prop_object_inode, prop_compression + }, {NULL, NULL, 0, 0, NULL} };