Re: [PATCH] btrfs-progs: btrfs-debug-tree: show the compression method string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
>>
>> Signed-off-by: Wang Xiaoguang <wangxg.fnst@xxxxxxxxxxxxxx>
>> ---
>>  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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux