linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
To: <dsterba@suse.cz>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs-progs: btrfs-debug-tree: show the compression method string
Date: Fri, 11 Mar 2016 11:08:37 +0800	[thread overview]
Message-ID: <56E236B5.9000807@cn.fujitsu.com> (raw)
In-Reply-To: <20160310132303.GF18908@twin.jikos.cz>

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 <wangxg.fnst@cn.fujitsu.com>
>>
>> Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
>> ---
>>  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

> 
> 
> 




      reply	other threads:[~2016-03-11  3:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10  8:40 [PATCH] btrfs-progs: btrfs-debug-tree: show the compression method string Xiaoguang Wang
2016-03-10 13:23 ` David Sterba
2016-03-11  3:08   ` Xiaoguang Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56E236B5.9000807@cn.fujitsu.com \
    --to=wangxg.fnst@cn.fujitsu.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).