btrfs-progs: props: convert to C99 initializers
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c9da5695b2
commit
c6d00c3f00
26
props.c
26
props.c
|
@ -167,11 +167,25 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct prop_handler prop_handlers[] = {
|
const struct prop_handler prop_handlers[] = {
|
||||||
{"ro", "read-only status of a subvolume", 0, prop_object_subvol,
|
{
|
||||||
prop_read_only},
|
.name ="ro",
|
||||||
{"label", "label of the filesystem", 0,
|
.desc = "read-only status of a subvolume",
|
||||||
prop_object_dev | prop_object_root, prop_label},
|
.read_only = 0,
|
||||||
{"compression", "compression algorighm for the file or directory", 0,
|
.types = prop_object_subvol,
|
||||||
prop_object_inode, prop_compression},
|
.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}
|
{NULL, NULL, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue