hello, On 03/10/2016 09:23 PM, David Sterba wrote: > On Thu, Mar 10, 2016 at 04:40:39PM +0800, Xiaoguang Wang wrote: >> From: Wang Xiaoguang <[email protected]> >> >> Signed-off-by: Wang Xiaoguang <[email protected]> >> --- >> print-tree.c | 22 ++++++++++++++++++---- >> 1 file changed, 18 insertions(+), 4 deletions(-) >> >> diff --git a/print-tree.c b/print-tree.c >> index 53a6813..5727cb9 100644 >> --- a/print-tree.c >> +++ b/print-tree.c >> @@ -286,6 +286,20 @@ static void print_uuids(struct extent_buffer *eb) >> printf("fs uuid %s\nchunk uuid %s\n", fs_uuid, chunk_uuid); >> } >> >> +static char *compress_flags_to_str(u8 flag) >> +{ >> + switch (flag) { >> + case BTRFS_COMPRESS_NONE: >> + return "none"; >> + case BTRFS_COMPRESS_ZLIB: >> + return "zlib"; >> + case BTRFS_COMPRESS_LZO: >> + return "lzo"; >> + default: >> + return "UNKNOWN"; > > would be good to print the actual value OK, new version will be sent soon.
Regards, Xiaoguang Wang > > > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
