btrfs-progs: use escaped format for subvolume path strings in json
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
70ae158ec8
commit
7ed79f2b3b
|
@ -47,7 +47,7 @@
|
|||
|
||||
const struct rowspec btrfs_subvolume_rowspec[] = {
|
||||
{ .key = "ID", .fmt = "%llu", .out_json = "id" },
|
||||
{ .key = "name", .fmt = "%s", .out_json = "name" },
|
||||
{ .key = "name", .fmt = "str", .out_json = "name" },
|
||||
{ .key = "gen", .fmt = "%llu", .out_json = "generation" },
|
||||
{ .key = "cgen", .fmt = "%llu", .out_json = "cgeneration" },
|
||||
{ .key = "parent", .fmt = "%llu", .out_json = "parent" },
|
||||
|
@ -56,13 +56,13 @@ const struct rowspec btrfs_subvolume_rowspec[] = {
|
|||
{ .key = "parent_uuid", .fmt = "uuid", .out_json = "parent_uuid" },
|
||||
{ .key = "received_uuid", .fmt = "uuid", .out_json = "received_uuid" },
|
||||
{ .key = "uuid", .fmt = "uuid", .out_json = "uuid" },
|
||||
{ .key = "path", .fmt = "%s", .out_json = "path" },
|
||||
{ .key = "path", .fmt = "str", .out_json = "path" },
|
||||
{ .key = "flag-list-item", .fmt = "%s" },
|
||||
{ .key = "stransid", .fmt = "%llu", .out_json = "stransid" },
|
||||
{ .key = "stime", .fmt = "date-time", .out_json = "stime" },
|
||||
{ .key = "rtransid", .fmt = "%llu", .out_json = "rtransid" },
|
||||
{ .key = "rtime", .fmt = "date-time", .out_json = "rtime" },
|
||||
{ .key = "snapshot-list-item", .fmt = "%s" },
|
||||
{ .key = "snapshot-list-item", .fmt = "str" },
|
||||
{ .key = "quota-qgroup", .fmt = "qgroupid", .out_json = "qgroupid" },
|
||||
{ .key = "quota-ref", .fmt = "%llu", .out_json = "referenced" },
|
||||
{ .key = "quota-excl", .fmt = "%llu", .out_json = "exclusive" },
|
||||
|
|
Loading…
Reference in New Issue